index.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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>The Infusion Pattern Library Builder on Infusion</title>
  5. <link>https://heydon.github.io/infusion/</link>
  6. <description>Recent content in The Infusion Pattern Library Builder on Infusion</description>
  7. <generator>Hugo -- gohugo.io</generator>
  8. <language>en-us</language>
  9. <lastBuildDate>Mon, 26 Jun 2017 18:27:58 +0100</lastBuildDate>
  10. <atom:link href="https://heydon.github.io/infusion/index.xml" rel="self" type="application/rss+xml" />
  11. <item>
  12. <title>Library structure</title>
  13. <link>https://heydon.github.io/infusion/patterns/writing/library-structure/</link>
  14. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  15. <guid>https://heydon.github.io/infusion/patterns/writing/library-structure/</guid>
  16. <description>Before you can set about documenting patterns, you need to know where everything goes. The simplest folder structure looks like this:
  17. └── content ├── _index.md └── patterns ├── name-of-my-pattern.md └── name-of-my-other-pattern.md /content - This is where all of your content lives. You won&amp;rsquo;t need to visit any other folders very frequently. _index.md — This is the content for your home page. /patterns — This is the folder where individual pattern files are kept.</description>
  18. </item>
  19. <item>
  20. <title>Markdown &amp; metadata</title>
  21. <link>https://heydon.github.io/infusion/patterns/writing/markdown-and-metadata/</link>
  22. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  23. <guid>https://heydon.github.io/infusion/patterns/writing/markdown-and-metadata/</guid>
  24. <description>In Infusion, design patterns are documented using markdown. To create a new pattern file, just add a file with the .md extension to the /patterns folder. It&amp;rsquo;s recommended you use &amp;ldquo;kebab case&amp;rdquo; to name the file ( words separated by hyphens). For example, a pattern with the title &amp;ldquo;Menu button&amp;rdquo; should probably have the filename menu-button. Then you get a nice clean URL: your-company.com/patterns/menu-button.
  25. If you&amp;rsquo;re not familiar with writing markdown, there are a number of tutorials available.</description>
  26. </item>
  27. <item>
  28. <title>Expandable sections</title>
  29. <link>https://heydon.github.io/infusion/patterns/writing/expandable-sections/</link>
  30. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  31. <guid>https://heydon.github.io/infusion/patterns/writing/expandable-sections/</guid>
  32. <description>In some cases, where there is a lot of content, it&amp;rsquo;s helpful to collapse certain sections. That way, readers get an overview of what&amp;rsquo;s in the content and can choose where to focus in. Infusion provides a shortcode method for creating expandable sections which generates accessible markup using aria-expanded.
  33. The expandable shortcode takes three parameters:
  34. label — This is the label for the the section heading. level — This is the heading level (e.</description>
  35. </item>
  36. <item>
  37. <title>Code blocks</title>
  38. <link>https://heydon.github.io/infusion/patterns/code/code-blocks/</link>
  39. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  40. <guid>https://heydon.github.io/infusion/patterns/code/code-blocks/</guid>
  41. <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.
  42. So, this&amp;hellip;
  43. ```html &amp;lt;button aria-pressed=&#34;false&#34;toggle me&amp;lt;/button ``` &amp;hellip; will result in this:
  44. &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>
  45. </item>
  46. <item>
  47. <title>CodePen embedding</title>
  48. <link>https://heydon.github.io/infusion/patterns/code/codepen-embedding/</link>
  49. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  50. <guid>https://heydon.github.io/infusion/patterns/code/codepen-embedding/</guid>
  51. <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.
  52. 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.
  53. &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>
  54. </item>
  55. <item>
  56. <title>Color palettes</title>
  57. <link>https://heydon.github.io/infusion/patterns/code/color-palettes/</link>
  58. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  59. <guid>https://heydon.github.io/infusion/patterns/code/color-palettes/</guid>
  60. <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.
  61. &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>
  62. </item>
  63. <item>
  64. <title>Including images</title>
  65. <link>https://heydon.github.io/infusion/patterns/writing/including-images/</link>
  66. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  67. <guid>https://heydon.github.io/infusion/patterns/writing/including-images/</guid>
  68. <description>From time to time, you&amp;rsquo;ll be wanting to include images illustrating the documented pattern in hand. Images live in the static folder, which is a sibling of the /content folder you&amp;rsquo;ll be mostly working in.
  69. ├── content └── static └── images ├── logo.png └── menu-button.gif When you first make a copy of Infusion, Infusion&amp;rsquo;s own logo will be included. You should replace this with your own company or project logo.</description>
  70. </item>
  71. <item>
  72. <title>Installation</title>
  73. <link>https://heydon.github.io/infusion/patterns/installation/</link>
  74. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  75. <guid>https://heydon.github.io/infusion/patterns/installation/</guid>
  76. <description>Infusion is built using the static site engine, Hugo, and NPM. The codebase is available to download on Github. Let&amp;rsquo;s get set up step-by-step.
  77. 1. Install Hugo First we need to install Hugo globally.
  78. OSX users If you are a Mac user and have Homebrew on your system, installing Hugo is simple:
  79. brew install hugo Alternatively, you can manually install Hugo from a package. You can verify the installation was successful by typing:</description>
  80. </item>
  81. <item>
  82. <title>Library setup</title>
  83. <link>https://heydon.github.io/infusion/patterns/library-setup/</link>
  84. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  85. <guid>https://heydon.github.io/infusion/patterns/library-setup/</guid>
  86. <description>By now, you should have followed the Installation instructions. You should have Hugo and Node installed, and a local copy of a forked version of Infusion. You should also have run npm install in the root of that codebase.
  87. &amp;ldquo;Cleaning&amp;rdquo; the content folder Before you can start documenting patterns, there are a few things still to do in order to get set up. At the moment, your version of Infusion is a facsimile of the original, containing all this documentation content.</description>
  88. </item>
  89. <item>
  90. <title>Notes &amp; warnings</title>
  91. <link>https://heydon.github.io/infusion/patterns/writing/notes-and-warnings/</link>
  92. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  93. <guid>https://heydon.github.io/infusion/patterns/writing/notes-and-warnings/</guid>
  94. <description>Infusion acknowledges that simple markdown is limiting when it comes to writing compelling documentation, so it provides a number of &amp;ldquo;shortcodes&amp;rdquo;. Shortcodes offer a simple syntax for including rich content. For example, Infusion provides shortcodes for including notes and warnings.
  95. Notes You may wish to pick out some content in your pattern&amp;rsquo;s documentation as a note — an aside to the main thrust of the pattern&amp;rsquo;s description. This is possible using the following syntax:</description>
  96. </item>
  97. <item>
  98. <title>References</title>
  99. <link>https://heydon.github.io/infusion/patterns/writing/references/</link>
  100. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  101. <guid>https://heydon.github.io/infusion/patterns/writing/references/</guid>
  102. <description>Cross-references Infusion provides an easy mechanism to cross-reference patterns, by title, using the pattern shortcode. For example, I can reference the Notes &amp;amp; warnings pattern. Here&amp;rsquo;s what the markdown looks like, including the shortcode:
  103. I can reference the &amp;#x7b;{% pattern &#34;Notes &amp; warnings&#34; %}} pattern here. This saves you having to worry about pathing and decorates the generated link with a bookmark icon, identifying the link as a pattern reference visually.</description>
  104. </item>
  105. <item>
  106. <title>Serving</title>
  107. <link>https://heydon.github.io/infusion/patterns/serving/</link>
  108. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  109. <guid>https://heydon.github.io/infusion/patterns/serving/</guid>
  110. <description>Serving locally While you&amp;rsquo;re creating content for your library, you&amp;rsquo;ll probably want to see what the finished product looks like. Fortunately, Infusion is easy to serve locally using the serve command:
  111. npm run serve This will serve your working library from localhost:1313 (the exact URL will be determined by what&amp;rsquo;s in your baseURL and will be revealed to you by your terminal). Whenever you make changes to your library&amp;rsquo;s files, the site will automatically rebuild.</description>
  112. </item>
  113. <item>
  114. <title>Test</title>
  115. <link>https://heydon.github.io/infusion/patterns/code/test/</link>
  116. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  117. <guid>https://heydon.github.io/infusion/patterns/code/test/</guid>
  118. <description>Nothing to see here.</description>
  119. </item>
  120. <item>
  121. <title>Writing inline demos</title>
  122. <link>https://heydon.github.io/infusion/patterns/code/writing-inline-demos/</link>
  123. <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
  124. <guid>https://heydon.github.io/infusion/patterns/code/writing-inline-demos/</guid>
  125. <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.
  126. 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>
  127. </item>
  128. </channel>
  129. </rss>