index.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
  2. <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  3. <channel>
  4. <title>Coding on Infusion</title>
  5. <link>https://heydon.github.io/infusion/patterns/coding/</link>
  6. <description>Recent content in Coding on Infusion</description>
  7. <generator>Hugo -- gohugo.io</generator>
  8. <language>en-us</language>
  9. <atom:link href="https://heydon.github.io/infusion/patterns/coding/index.xml" rel="self" type="application/rss+xml" />
  10. <item>
  11. <title>Code blocks</title>
  12. <link>https://heydon.github.io/infusion/patterns/coding/code-blocks/</link>
  13. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  14. <guid>https://heydon.github.io/infusion/patterns/coding/code-blocks/</guid>
  15. <description>Markdown already supports code samples both inline (using single backticks like `some code here`) and in blocks. Infusion will syntax highlight HTML, CSS, and JavaScript if you provide the correct language in the formulation of the block.
  16. So, this&amp;hellip;
  17. ```html &amp;lt;button aria-pressed=&#34;false&#34;toggle me&amp;lt;/button ``` &amp;hellip; will result in this:
  18. &amp;lt;button aria-pressed=&amp;quot;false&amp;quot;&amp;gt;toggle me&amp;lt;/button&amp;gt; Note that the syntax highlighting uses a greyscale theme. Infusion is careful not to use color as part of its own design, because these colors may clash with those of the design being illustrated and discussed.</description>
  19. </item>
  20. <item>
  21. <title>CodePen embedding</title>
  22. <link>https://heydon.github.io/infusion/patterns/coding/codepen-embedding/</link>
  23. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  24. <guid>https://heydon.github.io/infusion/patterns/coding/codepen-embedding/</guid>
  25. <description>Sometimes just pictures of the pattern you&amp;rsquo;re documenting aren&amp;rsquo;t enough. Interactive patterns benefit from live demos, so that readers can test their functionality.
  26. Infusion offers a couple of ways to do this. The first is by embedding CodePen demos into the content. The codePen shortcode takes just one argument: the codePen&amp;rsquo;s ID.
  27. &amp;#x7b;{% codePen VpVNKW %}} This will embed the identified codePen into the content wherever you placed the shortcode, with the result view showing by default:</description>
  28. </item>
  29. <item>
  30. <title>Writing inline demos</title>
  31. <link>https://heydon.github.io/infusion/patterns/coding/writing-inline-demos/</link>
  32. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  33. <guid>https://heydon.github.io/infusion/patterns/coding/writing-inline-demos/</guid>
  34. <description>There are some issues with CodePen embedding , like them not working offline. They also come with CodePen branding, which will clash with the pattern you&amp;rsquo;re trying to illustrate.
  35. Infusion offers another option: a special demo shortcode that allows you to write HTML, CSS, and JavaScript directly into the markdown file. The outputted demo is encapsulated using Shadow DOM, so you don&amp;rsquo;t have to worry about broken styles and global JS.</description>
  36. </item>
  37. <item>
  38. <title>Color palettes</title>
  39. <link>https://heydon.github.io/infusion/patterns/coding/color-palettes/</link>
  40. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  41. <guid>https://heydon.github.io/infusion/patterns/coding/color-palettes/</guid>
  42. <description>There&amp;rsquo;s no reason why your Infusion-powered pattern library has to be all about functionality. You can include style guide-like information such as color palettes too. The colors shortcode makes it easy to exhibit colors and their values together. Just supply a comma-separated list of CSS color values.
  43. &amp;#x7b;{% colors &#34;#111111, #cccccc, #ffffff&#34; %}} The result is a one row strip showing each color supplied in order. The colors for Infusion are greyscale:</description>
  44. </item>
  45. </channel>
  46. </rss>