From 2a487173c40bcde796ef87db010012457a067d60 Mon Sep 17 00:00:00 2001 From: Heydon Pickering Date: Sat, 29 Jul 2017 10:18:45 +0100 Subject: [PATCH] one page WIP --- content/onepage.md | 4 + content/patterns/writing/library-structure.md | 1 - docs/css/styles.css | 57 ++- docs/index.html | 355 ++++++++-------- docs/index.xml | 9 + docs/{tags/stuff => onepage}/index.html | 368 ++++++++-------- docs/patterns/coding/code-blocks/index.html | 355 ++++++++-------- .../patterns/coding/color-palettes/index.html | 355 ++++++++-------- docs/patterns/coding/command-line/index.html | 355 ++++++++-------- .../patterns/coding/demo-embedding/index.html | 355 ++++++++-------- docs/patterns/coding/file-trees/index.html | 355 ++++++++-------- docs/patterns/coding/index.html | 355 ++++++++-------- docs/patterns/coding/tested/index.html | 355 ++++++++-------- .../coding/writing-inline-demos/index.html | 355 ++++++++-------- docs/patterns/index.html | 355 ++++++++-------- docs/patterns/installation/index.html | 355 ++++++++-------- docs/patterns/library-setup/index.html | 355 ++++++++-------- .../media/including-images/index.html | 355 ++++++++-------- .../media/including-videos/index.html | 355 ++++++++-------- docs/patterns/media/index.html | 355 ++++++++-------- docs/patterns/serving/index.html | 355 ++++++++-------- .../writing/expandable-sections/index.html | 355 ++++++++-------- docs/patterns/writing/index.html | 355 ++++++++-------- .../writing/library-structure/index.html | 395 ++++++++---------- .../writing/markdown-and-metadata/index.html | 355 ++++++++-------- .../writing/notes-and-warnings/index.html | 355 ++++++++-------- docs/patterns/writing/references/index.html | 355 ++++++++-------- .../writing/tables-of-contents/index.html | 355 ++++++++-------- docs/service-worker.js | 2 +- docs/sitemap.xml | 15 +- docs/tags/index.xml | 27 -- docs/tags/library/index.html | 315 -------------- docs/tags/library/index.xml | 24 -- docs/tags/markdown/index.html | 355 ++++++++-------- docs/tags/metadata/index.html | 355 ++++++++-------- docs/tags/structure/index.html | 315 -------------- docs/tags/structure/index.xml | 24 -- docs/tags/stuff/index.xml | 24 -- themes/infusion/layouts/_default/baseof.html | 103 ++--- themes/infusion/layouts/onepage/single.html | 43 ++ themes/infusion/static/css/styles.css | 57 ++- 41 files changed, 4915 insertions(+), 5388 deletions(-) create mode 100644 content/onepage.md rename docs/{tags/stuff => onepage}/index.html (57%) delete mode 100644 docs/tags/library/index.html delete mode 100644 docs/tags/library/index.xml delete mode 100644 docs/tags/structure/index.html delete mode 100644 docs/tags/structure/index.xml delete mode 100644 docs/tags/stuff/index.xml create mode 100644 themes/infusion/layouts/onepage/single.html diff --git a/content/onepage.md b/content/onepage.md new file mode 100644 index 0000000..f373920 --- /dev/null +++ b/content/onepage.md @@ -0,0 +1,4 @@ ++++ +title = "Infusion" +type = "onepage" ++++ diff --git a/content/patterns/writing/library-structure.md b/content/patterns/writing/library-structure.md index f6c73f1..6f9fd60 100644 --- a/content/patterns/writing/library-structure.md +++ b/content/patterns/writing/library-structure.md @@ -1,7 +1,6 @@ +++ title = "Library structure" weight = 1 -tags = ['structure', 'library', 'stuff'] +++ Before you can set about documenting patterns, you need to know where everything goes. The simplest folder structure looks like this: diff --git a/docs/css/styles.css b/docs/css/styles.css index b19da54..053fe60 100644 --- a/docs/css/styles.css +++ b/docs/css/styles.css @@ -836,7 +836,53 @@ h1 svg { border: 0; } -@media (max-width: 45em) { +/* Single page layout */ + +.wrapper.one-page .main-and-footer { + margin-left: 0; +} + +.wrapper.one-page .intro-and-nav { + position: static; + border: 0; + width: auto; + text-align: center; + display: flex; + align-items: center; + justify-content: center; +} + +.wrapper.one-page main { + min-height: 0; +} + +.wrapper.one-page .library-desc { + font-size: 1rem; +} + +.wrapper.one-page .intro-and-nav > div { + height: auto; +} + +.wrapper.one-page #patterns-list { + margin-left: 0; + margin-top: 1.5rem; + display: block; +} + +.wrapper.one-page .toc { + font-size: 1rem; +} + +.wrapper.one-page .toc h2 { + font-size: 1.66rem; +} + +.wrapper.one-page #patterns-list h3 { + font-size: 1.25rem; +} + +@media screen and (max-width: 45em) { [role="banner"] { position: static; @@ -920,7 +966,8 @@ h1 svg { @media print { - .intro-and-nav, [role="contentinfo"] { + .wrapper:not(.one-page) .intro-and-nav, + .wrapper:not(.one-page) [role="contentinfo"] { display: none; } @@ -932,15 +979,11 @@ h1 svg { border: 0; } - a::after { + main a::after { content:" (" attr(href) ")"; word-break: break-word; } - nav a::after, .tags a::after { - content: ''; - } - .cmd { background: #fff; color: #111; diff --git a/docs/index.html b/docs/index.html index ae62d34..4255938 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,7 +33,9 @@ - skip to content + + skip to content + @@ -104,179 +106,182 @@ -
- + - + + + diff --git a/docs/index.xml b/docs/index.xml index 022df83..a1c3e1c 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -129,6 +129,15 @@ The file tree is described using a markdown nested list structure: {{<youtube w7Ft2ymGmfc}} + + Infusion + https://heydon.github.io/infusion/onepage/ + Mon, 01 Jan 0001 00:00:00 +0000 + + https://heydon.github.io/infusion/onepage/ + + + Installation https://heydon.github.io/infusion/patterns/installation/ diff --git a/docs/tags/stuff/index.html b/docs/onepage/index.html similarity index 57% rename from docs/tags/stuff/index.html rename to docs/onepage/index.html index 622ae68..1f338a7 100644 --- a/docs/tags/stuff/index.html +++ b/docs/onepage/index.html @@ -4,7 +4,7 @@ - + @@ -27,12 +27,12 @@ - Patterns tagged Stuff | Infusion + Infusion - skip to content + @@ -103,202 +103,184 @@ -
- + - + diff --git a/docs/patterns/coding/code-blocks/index.html b/docs/patterns/coding/code-blocks/index.html index b722719..95695cf 100644 --- a/docs/patterns/coding/code-blocks/index.html +++ b/docs/patterns/coding/code-blocks/index.html @@ -34,7 +34,9 @@ - skip to content + + skip to content + @@ -105,179 +107,182 @@ -
- +