From 0e67edaf76e812dd3852101b6e50d4eea6f3d2ce Mon Sep 17 00:00:00 2001 From: Heydon Pickering Date: Tue, 4 Jul 2017 11:17:09 +0100 Subject: [PATCH] better starter pattern --- content/patterns/code/_index.md | 3 - content/patterns/coding/_index.md | 3 + .../patterns/{code => coding}/code-blocks.md | 1 + .../{code => coding}/codepen-embedding.md | 1 + .../{code => coding}/color-palettes.md | 0 .../{code => coding}/writing-inline-demos.md | 1 + content/patterns/library-setup.md | 1 + docs/index.html | 18 +- docs/index.xml | 70 +++--- .../{code => coding}/code-blocks/index.html | 16 +- .../codepen-embedding/index.html | 74 +++--- .../color-palettes/index.html | 16 +- docs/patterns/{code => coding}/index.html | 32 +-- docs/patterns/{code => coding}/index.xml | 40 ++-- .../writing-inline-demos/index.html | 38 +-- docs/patterns/index.html | 14 +- docs/patterns/installation/index.html | 18 +- docs/patterns/library-setup/index.html | 54 ++++- docs/patterns/serving/index.html | 18 +- .../writing/expandable-sections/index.html | 14 +- .../writing/including-images/index.html | 14 +- docs/patterns/writing/index.html | 14 +- .../writing/library-structure/index.html | 18 +- .../writing/markdown-and-metadata/index.html | 14 +- .../writing/notes-and-warnings/index.html | 14 +- docs/patterns/writing/references/index.html | 18 +- docs/sitemap.xml | 32 ++- docs/tags/example-tag/index.html | 220 ++++++++++++++++++ docs/tags/example-tag/index.xml | 24 ++ docs/tags/index.xml | 18 ++ docs/tags/quickstart/index.html | 220 ++++++++++++++++++ docs/tags/quickstart/index.xml | 24 ++ themes/infusion/archetypes/patterns.md | 10 +- themes/infusion/layouts/patterns/single.html | 16 +- themes/infusion/theme.toml | 1 - 35 files changed, 841 insertions(+), 248 deletions(-) delete mode 100644 content/patterns/code/_index.md create mode 100644 content/patterns/coding/_index.md rename content/patterns/{code => coding}/code-blocks.md (99%) rename content/patterns/{code => coding}/codepen-embedding.md (98%) rename content/patterns/{code => coding}/color-palettes.md (100%) rename content/patterns/{code => coding}/writing-inline-demos.md (99%) rename docs/patterns/{code => coding}/code-blocks/index.html (98%) rename docs/patterns/{code => coding}/codepen-embedding/index.html (98%) rename docs/patterns/{code => coding}/color-palettes/index.html (98%) rename docs/patterns/{code => coding}/index.html (96%) rename docs/patterns/{code => coding}/index.xml (76%) rename docs/patterns/{code => coding}/writing-inline-demos/index.html (98%) create mode 100644 docs/tags/example-tag/index.html create mode 100644 docs/tags/example-tag/index.xml create mode 100644 docs/tags/quickstart/index.html create mode 100644 docs/tags/quickstart/index.xml diff --git a/content/patterns/code/_index.md b/content/patterns/code/_index.md deleted file mode 100644 index e369b94..0000000 --- a/content/patterns/code/_index.md +++ /dev/null @@ -1,3 +0,0 @@ -+++ -title = "Exhibiting code" -+++ diff --git a/content/patterns/coding/_index.md b/content/patterns/coding/_index.md new file mode 100644 index 0000000..1fac364 --- /dev/null +++ b/content/patterns/coding/_index.md @@ -0,0 +1,3 @@ ++++ +title = "Coding" ++++ diff --git a/content/patterns/code/code-blocks.md b/content/patterns/coding/code-blocks.md similarity index 99% rename from content/patterns/code/code-blocks.md rename to content/patterns/coding/code-blocks.md index 4f3c395..bd2464c 100644 --- a/content/patterns/code/code-blocks.md +++ b/content/patterns/coding/code-blocks.md @@ -1,5 +1,6 @@ +++ title = "Code blocks" +weight = 1 +++ 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. diff --git a/content/patterns/code/codepen-embedding.md b/content/patterns/coding/codepen-embedding.md similarity index 98% rename from content/patterns/code/codepen-embedding.md rename to content/patterns/coding/codepen-embedding.md index ad7c7d2..956fd09 100644 --- a/content/patterns/code/codepen-embedding.md +++ b/content/patterns/coding/codepen-embedding.md @@ -1,5 +1,6 @@ +++ title = "CodePen embedding" +weight = 2 +++ Sometimes just pictures of the pattern you're documenting aren't enough. Interactive patterns benefit from live demos, so that readers can test their functionality. diff --git a/content/patterns/code/color-palettes.md b/content/patterns/coding/color-palettes.md similarity index 100% rename from content/patterns/code/color-palettes.md rename to content/patterns/coding/color-palettes.md diff --git a/content/patterns/code/writing-inline-demos.md b/content/patterns/coding/writing-inline-demos.md similarity index 99% rename from content/patterns/code/writing-inline-demos.md rename to content/patterns/coding/writing-inline-demos.md index 5e336b2..2818d13 100644 --- a/content/patterns/code/writing-inline-demos.md +++ b/content/patterns/coding/writing-inline-demos.md @@ -1,5 +1,6 @@ +++ title = "Writing inline demos" +weight = 3 +++ There are some issues with {{% pattern "CodePen embedding" %}}, like them not working offline. They also come with CodePen branding, which will clash with the pattern you're trying to illustrate. diff --git a/content/patterns/library-setup.md b/content/patterns/library-setup.md index d2a810a..c2bffee 100644 --- a/content/patterns/library-setup.md +++ b/content/patterns/library-setup.md @@ -1,5 +1,6 @@ +++ title = "Library setup" +tags = ["example tag", "quickstart"] +++ By now, you should have followed the {{% pattern "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. diff --git a/docs/index.html b/docs/index.html index 8503478..c5c7ec1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -141,34 +141,34 @@
  • -

    Exhibiting code

    +

    Coding