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 @@ -
- +