print version archetype and doc change

This commit is contained in:
Heydon Pickering 2017-07-29 22:54:56 +01:00
parent 859e8f0801
commit 074c01a0ee
11 changed files with 36 additions and 21 deletions

View File

@ -8,13 +8,15 @@ Before you can set about documenting patterns, you need to know where everything
{{% fileTree %}}
* content
* \_index.md
* print-version.md
* patterns
* name-of-my-pattern.md
* name-of-my-other-pattern.md
{{% /fileTree %}}
* **/content** - This is where all of your content lives. You won't need to visit any other folders very frequently.
* **_index.md** — This is the content for your home page.
* **_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. Leave this file as it is.
* **/patterns** — This is the folder where individual pattern files are kept.
## Subsections

View File

@ -1,6 +1,8 @@
+++
date = "2017-07-29T22:48:43+01:00"
title = "Infusion"
type = "print-version"
+++
You don't want to edit this file :-)

View File

@ -30,7 +30,7 @@ So, this…
<guid>https://heydon.github.io/infusion/patterns/writing/library-structure/</guid>
<description>Before you can set about documenting patterns, you need to know where everything goes. The simplest folder structure looks like this:
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>
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>
</item>
<item>
@ -75,6 +75,15 @@ 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>
<item>
<title>Infusion</title>
<link>https://heydon.github.io/infusion/print-version/</link>
<pubDate>Sat, 29 Jul 2017 22:48:43 +0100</pubDate>
<guid>https://heydon.github.io/infusion/print-version/</guid>
<description>You don&amp;rsquo;t want to edit this file :-)</description>
</item>
<item>
<title>Color palettes</title>
<link>https://heydon.github.io/infusion/patterns/coding/color-palettes/</link>
@ -129,15 +138,6 @@ The file tree is described using a markdown nested list structure:
&amp;#x7b;{&amp;lt;youtube w7Ft2ymGmfc}} </description>
</item>
<item>
<title>Infusion</title>
<link>https://heydon.github.io/infusion/print-version/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://heydon.github.io/infusion/print-version/</guid>
<description>You don&amp;rsquo;t want to edit this file :-)</description>
</item>
<item>
<title>Installation</title>
<link>https://heydon.github.io/infusion/patterns/installation/</link>

View File

@ -17,7 +17,7 @@
<guid>https://heydon.github.io/infusion/patterns/writing/library-structure/</guid>
<description>Before you can set about documenting patterns, you need to know where everything goes. The simplest folder structure looks like this:
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>
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>
</item>
<item>

View File

@ -307,6 +307,7 @@
<ul>
<li>_index.md</li>
<li>print-version.md</li>
<li>patterns
<ul>
@ -321,7 +322,8 @@
<ul>
<li><strong>/content</strong> - This is where all of your content lives. You won&rsquo;t need to visit any other folders very frequently.</li>
<li><strong>_index.md</strong> — This is the content for your home page.</li>
<li><strong>_index.md</strong> — This is the content file for your home page.</li>
<li><strong>print-version.md</strong> — This is a placeholder for the single-page / print-friendly version of you library. Leave this file as it is.</li>
<li><strong>/patterns</strong> — This is the folder where individual pattern files are kept.</li>
</ul>

View File

@ -467,6 +467,7 @@ theme = "infusion"
<ul>
<li>_index.md</li>
<li>print-version.md</li>
<li>patterns
<ul>
@ -481,7 +482,8 @@ theme = "infusion"
<ul>
<li><strong>/content</strong> - This is where all of your content lives. You won&rsquo;t need to visit any other folders very frequently.</li>
<li><strong>_index.md</strong> — This is the content for your home page.</li>
<li><strong>_index.md</strong> — This is the content file for your home page.</li>
<li><strong>print-version.md</strong> — This is a placeholder for the single-page / print-friendly version of you library. Leave this file as it is.</li>
<li><strong>/patterns</strong> — This is the folder where individual pattern files are kept.</li>
</ul>

File diff suppressed because one or more lines are too long

View File

@ -34,6 +34,11 @@
<loc>https://heydon.github.io/infusion/patterns/writing/expandable-sections/</loc>
</url>
<url>
<loc>https://heydon.github.io/infusion/print-version/</loc>
<lastmod>2017-07-29T22:48:43+01:00</lastmod>
</url>
<url>
<loc>https://heydon.github.io/infusion/</loc>
<lastmod>2017-06-26T18:27:58+01:00</lastmod>
@ -68,10 +73,6 @@
<loc>https://heydon.github.io/infusion/patterns/media/including-videos/</loc>
</url>
<url>
<loc>https://heydon.github.io/infusion/print-version/</loc>
</url>
<url>
<loc>https://heydon.github.io/infusion/patterns/installation/</loc>
</url>

View File

@ -6,7 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"serve": "hugo server --baseURL http://localhost:1313",
"clean": "rm -rf content && mkdir content && mkdir content/patterns && hugo new patterns/pattern.md && hugo new _index.md",
"clean": "rm -rf content && mkdir content && mkdir content/patterns && hugo new patterns/pattern.md && hugo new _index.md && hugo new print-version.md --kind print-version",
"build": "rm -rfv docs/* && hugo && sw-precache --root=docs && git add -A"
},
"pre-commit": [

View File

@ -6,5 +6,5 @@ tags = ["example tag", "another tag"]
You can just write **markdown** here. But don't forget there are lots of shortcodes to help you with writing and showing off code too. See [the documentation for **Infusion**](https://heydon.github.io/infusion/) for full details.
{{% note %}}
Here's an example of a note shortcode, for adding little "oh and also" bits to your patterns' documentation.
Here's an example of a note shortcode for adding little "oh and also" notes to your patterns' documentation.
{{% /note %}}

View File

@ -0,0 +1,6 @@
+++
title = "Infusion"
type = "print-version"
+++
You don't want to edit this file :-)