cupper-hugo-theme/docs/index.xml

248 lines
19 KiB
XML
Raw Normal View History

2017-07-03 13:43:14 +02:00
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>The Infusion Pattern Library Builder on Infusion</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/</link>
2017-07-03 13:43:14 +02:00
<description>Recent content in The Infusion Pattern Library Builder on Infusion</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Mon, 26 Jun 2017 18:27:58 +0100</lastBuildDate>
2017-08-07 23:20:49 +02:00
<atom:link href="https://thepaciellogroup.github.io/infusion/index.xml" rel="self" type="application/rss+xml" />
2017-07-03 13:43:14 +02:00
2017-07-04 12:17:09 +02:00
<item>
<title>Code blocks</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/coding/code-blocks/</link>
2017-07-04 12:17:09 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/coding/code-blocks/</guid>
2017-07-04 12:17:09 +02:00
<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.
So, this&amp;hellip;
```html &amp;lt;button aria-pressed=&#34;false&#34;toggle me&amp;lt;/button ``` &amp;hellip; will result in this:
&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>
</item>
2017-08-02 10:23:48 +02:00
<item>
<title>Installation</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/installation/</link>
2017-08-02 10:23:48 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/installation/</guid>
2017-09-07 10:31:52 +02:00
<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 everything installed step-by-step.
2017-08-02 10:23:48 +02:00
Install Hugo First you need to install Hugo globally.
OSX users If you are a Mac user and have Homebrew on your system, installing Hugo is simple:
brew install hugo Alternatively, you can manually install Hugo from a package. You can verify the installation was successful by typing:</description>
</item>
2017-07-03 13:43:14 +02:00
<item>
2017-09-07 10:31:52 +02:00
<title>Project structure</title>
<link>https://thepaciellogroup.github.io/infusion/patterns/writing/project-structure/</link>
2017-07-03 13:43:14 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-09-07 10:31:52 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/writing/project-structure/</guid>
2017-09-06 21:13:09 +02:00
<description>Before you can set about making documentation, you need to know where everything goes. The simplest folder structure looks like this:
2017-07-29 23:54:56 +02:00
content _index.md print-version.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 file for your home page. print-version.md — This is a placeholder for the single-page / print-friendly version of you library.</description>
2017-07-03 13:43:14 +02:00
</item>
2017-07-04 12:17:09 +02:00
<item>
2017-07-26 16:53:09 +02:00
<title>Demo embedding</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/coding/demo-embedding/</link>
2017-07-04 12:17:09 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/coding/demo-embedding/</guid>
2017-07-04 12:17:09 +02:00
<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.
2017-07-26 16:53:09 +02:00
CodePen 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.
2017-07-04 12:17:09 +02:00
&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>
</item>
2017-08-02 10:23:48 +02:00
<item>
2017-09-07 10:31:52 +02:00
<title>Setup</title>
<link>https://thepaciellogroup.github.io/infusion/patterns/setup/</link>
2017-08-02 10:23:48 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-09-07 10:31:52 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/setup/</guid>
2017-08-03 13:16:24 +02:00
<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.
2017-09-07 10:31:52 +02:00
&amp;ldquo;Cleaning&amp;rdquo; the content folder Before you can start writing documentation, 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 the content you&amp;rsquo;re reading right now.</description>
2017-08-02 10:23:48 +02:00
</item>
2017-07-03 13:43:14 +02:00
<item>
<title>Markdown &amp; metadata</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/writing/markdown-and-metadata/</link>
2017-07-03 13:43:14 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/writing/markdown-and-metadata/</guid>
2017-09-06 21:13:09 +02:00
<description>In Infusion everything is documented using markdown, as a &amp;ldquo;pattern&amp;rdquo;. To create a new pattern file, just add a file with the .md extension to the content/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: username.github.io/your-library/patterns/menu-button.
2017-07-03 13:43:14 +02:00
If you&amp;rsquo;re not familiar with writing markdown, there are a number of tutorials available.</description>
</item>
2017-08-02 10:23:48 +02:00
<item>
<title>Serving</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/serving/</link>
2017-08-02 10:23:48 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/serving/</guid>
2017-09-07 10:31:52 +02:00
<description>Serving locally While you&amp;rsquo;re creating content for your project, 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:
npm run serve This will serve your working project from localhost:1313. Whenever you make changes to your files, the site will automatically rebuild. No need to refresh the web page!
Publishing on Github Pages Infusion creates a /docs folder containing the latest version of your site whenever you do an npm run build or a git commit.</description>
2017-08-02 10:23:48 +02:00
</item>
2017-07-04 12:17:09 +02:00
<item>
<title>Writing inline demos</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/coding/writing-inline-demos/</link>
2017-07-04 12:17:09 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/coding/writing-inline-demos/</guid>
2017-07-26 16:53:09 +02:00
<description>There are some issues with , like them not working offline. They also come with CodePen branding, which will clash with the pattern you&amp;rsquo;re trying to illustrate.
2017-07-04 12:17:09 +02:00
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>
</item>
2017-08-02 10:23:48 +02:00
<item>
<title>Printing</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/printing/</link>
2017-08-02 10:23:48 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/printing/</guid>
2017-08-03 13:16:24 +02:00
<description>Infusion&amp;rsquo;s output site includes a one-page Print version of the generated library, available at /print-version. So, if your library base URL is https://yourName.github.io/your-library, you can print the whole library — to PDF if wanted — from the following address:
2017-09-07 10:31:52 +02:00
https://yourName.github.io/your-library/print-version Print styles are also provided for individual pattern pages so, if you wanted to print off a single pattern document, you can!
2017-08-02 10:23:48 +02:00
</description>
</item>
2017-09-03 14:30:01 +02:00
<item>
<title>Updating Infusion</title>
<link>https://thepaciellogroup.github.io/infusion/patterns/updating/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://thepaciellogroup.github.io/infusion/patterns/updating/</guid>
<description>The core of Infusion&amp;rsquo;s functionality is in its Hugo theme, also called Infusion. This is found in the theme folder.
content docs lib snippets static themes infusion Do not &amp;ldquo;hack the core&amp;rdquo;. If you have any issues with Infusion, please report them to the Infusion Github repository and they will be dealt with ASAP.
Infusion is undergoing constant development, so keep an eye out for new releases.</description>
</item>
2017-07-03 13:43:14 +02:00
<item>
<title>Expandable sections</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/writing/expandable-sections/</link>
2017-07-03 13:43:14 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/writing/expandable-sections/</guid>
2017-07-03 13:43:14 +02:00
<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.
The expandable shortcode takes three parameters:
label — This is the label for the the section heading. level — This is the heading level (e.</description>
</item>
2017-07-29 23:54:56 +02:00
<item>
2017-08-02 10:23:48 +02:00
<title>Print version</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/print-version/</link>
2017-07-29 23:54:56 +02:00
<pubDate>Sat, 29 Jul 2017 22:48:43 +0100</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/print-version/</guid>
2017-07-29 23:54:56 +02:00
<description>You don&amp;rsquo;t want to edit this file :-)</description>
</item>
2017-07-03 13:43:14 +02:00
<item>
<title>Color palettes</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/coding/color-palettes/</link>
2017-07-03 13:43:14 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/coding/color-palettes/</guid>
2017-07-03 13:43:14 +02:00
<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.
&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>
</item>
2017-07-15 10:28:17 +02:00
<item>
<title>Command line</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/coding/command-line/</link>
2017-07-15 10:28:17 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/coding/command-line/</guid>
2017-07-15 10:28:17 +02:00
<description>Your pattern documentation may need to include commands for installing packages or using CLIs. Infusion offers the cmd shortcode for making code blocks look like terminal commands.
Here&amp;rsquo;s how you write it:
&amp;#x7b;{&amp;lt;cmd}} npm run start &amp;#x7b;{&amp;lt;/cmd}} And here&amp;rsquo;s how it looks:
npm run start The cmd shortcode currently only supports single commands. If you want to show multiple, successive commands use separate cmd blocks.
</description>
</item>
2017-07-16 17:49:20 +02:00
<item>
<title>File trees</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/coding/file-trees/</link>
2017-07-16 17:49:20 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/coding/file-trees/</guid>
2017-07-16 17:49:20 +02:00
<description>Representing folder/file structures is simple and accessible in Infusion. Which is just as well, because some components may need to conform to a certain folder structure.
The file tree is described using a markdown nested list structure:
2017-07-17 09:57:57 +02:00
&amp;#x7b;{% fileTree %}} * Level 1 folder * Level 2 file * Level 2 folder * Level 3 file * Level 3 folder * Level 4 file * Level 3 folder * Level 4 file * Level 4 file * Level 3 file * Level 2 folder * Level 3 file * Level 3 file * Level 3 file * Level 2 file * Level 1 file &amp;#x7b;{% /fileTree %}} This is drawn in the following fashion, but preserves the underlying nested list structure for assistive technologies such as screen readers:</description>
2017-07-16 17:49:20 +02:00
</item>
2017-07-03 13:43:14 +02:00
<item>
<title>Including images</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/media/including-images/</link>
2017-07-03 13:43:14 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/media/including-images/</guid>
2017-07-03 13:43:14 +02:00
<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.
2017-08-01 13:50:02 +02:00
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>
2017-07-03 13:43:14 +02:00
</item>
2017-07-12 16:20:00 +02:00
<item>
<title>Including videos</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/media/including-videos/</link>
2017-07-12 16:20:00 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/media/including-videos/</guid>
2017-07-12 16:20:00 +02:00
<description>Infusion has a lot of its own shortcodes, but you can still use Hugo&amp;rsquo;s built in shortcodes. These include a simple shortcode for including YouTube videos in your content. The shortcode takes just one parameter — the video&amp;rsquo;s id.
2017-07-17 16:21:46 +02:00
&amp;#x7b;{&amp;lt;youtube w7Ft2ymGmfc}} </description>
2017-07-12 16:20:00 +02:00
</item>
2017-07-03 13:43:14 +02:00
<item>
<title>Notes &amp; warnings</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/writing/notes-and-warnings/</link>
2017-07-03 13:43:14 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/writing/notes-and-warnings/</guid>
2017-07-03 13:43:14 +02:00
<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.
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>
</item>
<item>
<title>References</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/writing/references/</link>
2017-07-03 13:43:14 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/writing/references/</guid>
2017-09-07 10:31:52 +02:00
<description>Cross-references Infusion identifies the main content files in your documentation as patterns, and they&amp;rsquo;re kept in the content/ patterns folder. It&amp;rsquo;s easy to cross-reference patterns 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:
2017-07-03 13:43:14 +02:00
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>
</item>
2017-08-15 18:47:49 +02:00
<item>
<title>Snippets</title>
<link>https://thepaciellogroup.github.io/infusion/patterns/writing/snippets/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://thepaciellogroup.github.io/infusion/patterns/writing/snippets/</guid>
2017-09-07 10:31:52 +02:00
<description>A lot of the time, your larger documentation patterns will share some common techniques and utilities. For this reason, Infusion lets you save snippets of markdown in a snippets folder, alongside the main content folder.
2017-08-15 18:47:49 +02:00
The example visually-hidden.md snippet describes the CSS needed to create content that is visually hidden but still available to screen readers. Since this is a technique/utility you are likely to use often, it&amp;rsquo;s nice to be able to just drop a snippet into your markdown content.</description>
</item>
2017-07-14 18:26:35 +02:00
<item>
<title>Tables of contents</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/writing/tables-of-contents/</link>
2017-07-14 18:26:35 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/writing/tables-of-contents/</guid>
2017-09-07 10:31:52 +02:00
<description>Pattern pages in Infusion that have two or more subheadings (&amp;lt;h2&amp;gt;s) automatically get a table of contents: a list of links to the main subsections for the page. This feature is made accessible as a navigation region with the &amp;ldquo;Table of contents&amp;rdquo; label and uses an ordered list. The table of contents markup for the Setup page looks something like this:
&amp;lt;nav class=&amp;quot;toc&amp;quot; aria-labelledby=&amp;quot;toc-heading&amp;quot;&amp;gt; &amp;lt;h2 id=&amp;quot;toc-heading&amp;quot;&amp;gt;Table of contents&amp;lt;/h2&amp;gt; &amp;lt;ol&amp;gt; &amp;lt;li&amp;gt; &amp;lt;a href=&amp;quot;#cleaning-the-content-folder&amp;quot;&amp;gt;“Cleaning” the content folder&amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt; &amp;lt;li&amp;gt; &amp;lt;a href=&amp;quot;#the-setup-command&amp;quot;&amp;gt;The setup command&amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt; &amp;lt;li&amp;gt; &amp;lt;a href=&amp;quot;#the-config-file&amp;quot;&amp;gt;The config file&amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt; &amp;lt;li&amp;gt; &amp;lt;a href=&amp;quot;#including-a-logo&amp;quot;&amp;gt;Including a logo&amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt; &amp;lt;/ol&amp;gt; &amp;lt;/nav&amp;gt; Tables of content are a neat way to break down the content of the page and give users a navigable overview.</description>
2017-07-14 18:26:35 +02:00
</item>
2017-07-08 13:21:43 +02:00
<item>
<title>Tested using...</title>
2017-08-07 23:20:49 +02:00
<link>https://thepaciellogroup.github.io/infusion/patterns/coding/tested/</link>
2017-07-08 13:21:43 +02:00
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
2017-08-07 23:20:49 +02:00
<guid>https://thepaciellogroup.github.io/infusion/patterns/coding/tested/</guid>
2017-07-08 13:21:43 +02:00
<description>When you&amp;rsquo;re an inclusive designer, it&amp;rsquo;s pertinent to do some testing. Following specs is one thing, but you need to verify that your component works okay for users.
2017-08-16 11:30:51 +02:00
Infusion provided a tested shortcode that lets you show which browsers and assistive technologies you&amp;rsquo;ve tried your design out in. Here&amp;rsquo;s an example. Note the commas and &amp;ldquo;+&amp;rdquo; signs.
2017-07-17 17:46:15 +02:00
&amp;#x7b;{% tested using=&#34;Firefox + JAWS, Chrome, Safari iOS + Voiceover, Edge&#34; %}} This outputs:</description>
2017-07-08 13:21:43 +02:00
</item>
2017-07-03 13:43:14 +02:00
</channel>
</rss>