From 215f6b015f9016853a6dfb43a351f346f25df259 Mon Sep 17 00:00:00 2001 From: Heydon Pickering Date: Fri, 14 Jul 2017 18:33:53 +0100 Subject: [PATCH] compressed TOC code example --- content/patterns/writing/tables-of-contents.md | 16 ++++------------ docs/index.xml | 2 +- docs/patterns/writing/index.xml | 2 +- .../writing/tables-of-contents/index.html | 16 ++++------------ docs/service-worker.js | 2 +- 5 files changed, 11 insertions(+), 27 deletions(-) diff --git a/content/patterns/writing/tables-of-contents.md b/content/patterns/writing/tables-of-contents.md index 305c124..aed39fe 100644 --- a/content/patterns/writing/tables-of-contents.md +++ b/content/patterns/writing/tables-of-contents.md @@ -9,24 +9,16 @@ Pattern pages in **Infusion** that have two or more subheadings — `

`s —

Table of contents

  1. - - “Cleaning” the content folder - + “Cleaning” the content folder
  2. - - The setup command - + The setup command
  3. - - The config file - + The config file
  4. - - Including a logo - + Including a logo
diff --git a/docs/index.xml b/docs/index.xml index 48e4bab..24cb740 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -164,7 +164,7 @@ npm run serve This will serve your working library from localhost:1313 (the exac https://heydon.github.io/infusion/patterns/writing/tables-of-contents/ Pattern pages in Infusion that have two or more subheadings — &lt;h2&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 &ldquo;Table of contents&rdquo; label and uses an ordered list. The table of contents markup for the Library setup page looks something like this: -&lt;nav class=&quot;toc&quot; aria-labelledby=&quot;toc-heading&quot;&gt; &lt;h2 id=&quot;toc-heading&quot;&gt;Table of contents&lt;/h2&gt; &lt;ol&gt; &lt;li&gt; &lt;a href=&quot;#cleaning-the-content-folder&quot;&gt; “Cleaning” the content folder &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#the-setup-command&quot;&gt; The setup command &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#the-config-file&quot;&gt; The config file &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#including-a-logo&quot;&gt; Including a logo &lt;/a&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/nav&gt; Tables of contents are a neat way to break down the content of the page and give users a navigable overview. +&lt;nav class=&quot;toc&quot; aria-labelledby=&quot;toc-heading&quot;&gt; &lt;h2 id=&quot;toc-heading&quot;&gt;Table of contents&lt;/h2&gt; &lt;ol&gt; &lt;li&gt; &lt;a href=&quot;#cleaning-the-content-folder&quot;&gt;“Cleaning” the content folder&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#the-setup-command&quot;&gt;The setup command&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#the-config-file&quot;&gt;The config file&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#including-a-logo&quot;&gt;Including a logo&lt;/a&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/nav&gt; Tables of contents are a neat way to break down the content of the page and give users a navigable overview. diff --git a/docs/patterns/writing/index.xml b/docs/patterns/writing/index.xml index 9e2e61b..4b6e933 100644 --- a/docs/patterns/writing/index.xml +++ b/docs/patterns/writing/index.xml @@ -68,7 +68,7 @@ I can reference the &#x7b;{% pattern "Notes & warnings" %}} patt https://heydon.github.io/infusion/patterns/writing/tables-of-contents/ Pattern pages in Infusion that have two or more subheadings — &lt;h2&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 &ldquo;Table of contents&rdquo; label and uses an ordered list. The table of contents markup for the Library setup page looks something like this: -&lt;nav class=&quot;toc&quot; aria-labelledby=&quot;toc-heading&quot;&gt; &lt;h2 id=&quot;toc-heading&quot;&gt;Table of contents&lt;/h2&gt; &lt;ol&gt; &lt;li&gt; &lt;a href=&quot;#cleaning-the-content-folder&quot;&gt; “Cleaning” the content folder &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#the-setup-command&quot;&gt; The setup command &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#the-config-file&quot;&gt; The config file &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#including-a-logo&quot;&gt; Including a logo &lt;/a&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/nav&gt; Tables of contents are a neat way to break down the content of the page and give users a navigable overview. +&lt;nav class=&quot;toc&quot; aria-labelledby=&quot;toc-heading&quot;&gt; &lt;h2 id=&quot;toc-heading&quot;&gt;Table of contents&lt;/h2&gt; &lt;ol&gt; &lt;li&gt; &lt;a href=&quot;#cleaning-the-content-folder&quot;&gt;“Cleaning” the content folder&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#the-setup-command&quot;&gt;The setup command&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#the-config-file&quot;&gt;The config file&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=&quot;#including-a-logo&quot;&gt;Including a logo&lt;/a&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/nav&gt; Tables of contents are a neat way to break down the content of the page and give users a navigable overview. diff --git a/docs/patterns/writing/tables-of-contents/index.html b/docs/patterns/writing/tables-of-contents/index.html index 14bb4cb..5249daf 100644 --- a/docs/patterns/writing/tables-of-contents/index.html +++ b/docs/patterns/writing/tables-of-contents/index.html @@ -271,24 +271,16 @@ <h2 id="toc-heading">Table of contents</h2> <ol> <li> - <a href="#cleaning-the-content-folder"> - “Cleaning” the content folder - </a> + <a href="#cleaning-the-content-folder">“Cleaning” the content folder</a> </li> <li> - <a href="#the-setup-command"> - The setup command - </a> + <a href="#the-setup-command">The setup command</a> </li> <li> - <a href="#the-config-file"> - The config file - </a> + <a href="#the-config-file">The config file</a> </li> <li> - <a href="#including-a-logo"> - Including a logo - </a> + <a href="#including-a-logo">Including a logo</a> </li> </ol> </nav> diff --git a/docs/service-worker.js b/docs/service-worker.js index ca2bd9e..79cf593 100644 --- a/docs/service-worker.js +++ b/docs/service-worker.js @@ -37,7 +37,7 @@ /* eslint-disable indent, no-unused-vars, no-multiple-empty-lines, max-nested-callbacks, space-before-function-paren, quotes, comma-spacing */ 'use strict'; -var precacheConfig = [["browserconfig.xml","67c3113b1574fecc6015d56d774e1d38"],["categories/index.xml","0ac1d02cfbcad2fcc8c13b2c54715338"],["css/fonts/miriamlibre-bold.woff","96496f6f06535d25b3bcba876917ca35"],["css/fonts/miriamlibre-bold.woff2","668defa44d9a74dd709ce0c826a5eb11"],["css/fonts/pt_sans-web-bold.woff","f83c22b548d2d684e24e315d81f7d22b"],["css/fonts/pt_sans-web-bold.woff2","84520c22e6ebf1b30b6f17251d65fff7"],["css/fonts/pt_sans-web-italic.woff","31f09f09a1d3fbe6c8de19644ef0e614"],["css/fonts/pt_sans-web-italic.woff2","df128e1d5a449fc0506fc1b48aac0184"],["css/fonts/pt_sans-web-regular.woff","32100f6ebf01af64d4a71416561c072d"],["css/fonts/pt_sans-web-regular.woff2","b6d4ede9a3a5dbe4d5ac242ae4b0ecc2"],["css/images/icon-tick.svg","35d4d4728ea80d254508b2bca4109d70"],["css/images/stripe.svg","fa3f32a026b6a1bb04ee98d963432e15"],["css/prism.css","004029c8c70ed2bbaa5d9debcf14f8c7"],["css/styles.css","e57f2b72a91e67ab2a5581fbcf72a7d0"],["images/android-icon-144x144.png","43e1f47f182b13d0dee15f510213e928"],["images/android-icon-192x192.png","4c07782e52e0ab714074e6d3d69dc3ec"],["images/android-icon-36x36.png","3b2cd8c925a66bf84c89b68bb30e5f62"],["images/android-icon-48x48.png","45dc386eea1d8a46216a8b6de9b156c6"],["images/android-icon-72x72.png","b04c64637efed2b04fa900ddfcbfe75d"],["images/android-icon-96x96.png","bd9c126a4d6baf7ce442122ce0e89e11"],["images/apple-icon-114x114.png","72e127d6f01dfcd2ba2340141babc536"],["images/apple-icon-120x120.png","bc7cd9e36869e66aaca78412207bf723"],["images/apple-icon-144x144.png","43e1f47f182b13d0dee15f510213e928"],["images/apple-icon-152x152.png","567c64205576865b5e5d06c849613ca2"],["images/apple-icon-180x180.png","6b8734c446bf02ab50be598b4c01ec9c"],["images/apple-icon-57x57.png","f8c586086752c78870820b6190d6b42b"],["images/apple-icon-60x60.png","6e88df111e506bcd5501bed4ff10542e"],["images/apple-icon-72x72.png","b04c64637efed2b04fa900ddfcbfe75d"],["images/apple-icon-76x76.png","d8666e0ac256f39f8c5c628486bd71fb"],["images/apple-icon-precomposed.png","725f6cec25256abb1db10385e0724400"],["images/apple-icon.png","725f6cec25256abb1db10385e0724400"],["images/browser-Chrome-Android.svg","3100b2a9c5f0e34982c717fc2aa46d73"],["images/browser-Chrome.svg","fa39b4be6727525330e928f582fbe80a"],["images/browser-Edge.svg","9e8265ab8f6a701587a4271dd3aa6a73"],["images/browser-Firefox-Android.svg","452df7b9e83c70a07e8e03b4e8dab9c4"],["images/browser-Firefox.svg","d3093eda664be3d0cc6d791e1386420f"],["images/browser-IE.svg","13e192cf2b3fe17e7049a49b7d085caa"],["images/browser-Opera.svg","95d65630c9f7deef6a3098af8f5baf9f"],["images/browser-Safari-iOS.svg","f729e629ec998ec40d313495d7257741"],["images/browser-Safari.svg","523ee9491f5a937b8975f4d23aa77f62"],["images/favicon-16x16.png","7a99c20d6c00babddd26d03607b8721d"],["images/favicon-32x32.png","129881474a1bf130027bff7a1e89febd"],["images/favicon-96x96.png","bd9c126a4d6baf7ce442122ce0e89e11"],["images/favicon.ico","81c46feedbfcc6c6dc9495e4fd5adfad"],["images/icon-info.svg","53a6c555ce41f818556c71ab0dfc533b"],["images/icon-tag.svg","f067bbbc072941b2a0335679300bfc6c"],["images/icon-warning.svg","2a4322abbee9aed694fadb50e98a1f61"],["images/logo.png","0134d77c2c6b01eabb425990bab7ce9a"],["images/ms-icon-144x144.png","43e1f47f182b13d0dee15f510213e928"],["images/ms-icon-150x150.png","e73370837ab9060772a18d62aaacd0f0"],["images/ms-icon-310x310.png","8a7143516b929702e3309bb537a99c5c"],["images/ms-icon-70x70.png","d7c6e7368733d53b5f979546d5aa4fe9"],["images/open_in_desktop.png","e899d6679b011aa7b0e783683d90d99b"],["images/serve_from_docs.png","15ae9eac3737a21593ebe00a9312bf9e"],["images/steve_faulkner.jpg","b90382f2b505ce6f6b1e08657637395e"],["index.html","5a0267c4095b6a6851a2a8825053cc7a"],["index.xml","dbf42b2ee916e9b57511d76f9ef92438"],["js/dom-scripts.js","9956fb927a1097a05d07f48cdfbb9140"],["js/prism.js","0c1fb8d3a69ee7c91dbf0f361ded7763"],["js/service-worker-registration.js","d60f01dc1393cbaaf4f7435339074d5e"],["js/webcomponents.js","c5f6fe397db634cde89f66c2f1bc2f62"],["manifest.json","4e77b7f1253442852a2f185822f1b4d8"],["patterns/coding/code-blocks/index.html","ba8574de1814df1633ce093c0f448fe7"],["patterns/coding/codepen-embedding/index.html","7f9e6c1b6227b9ab3eae9ec33424a2b0"],["patterns/coding/color-palettes/index.html","7ae21a206ad5d8deeee9d77a57bae4c9"],["patterns/coding/index.html","0f7888ba74ad3012f450baa7b75e5486"],["patterns/coding/index.xml","e05792f5d471e69af658fcfe0d949e05"],["patterns/coding/tested/index.html","fc75ec2965ba554d1cd5ff7ecc924bbf"],["patterns/coding/writing-inline-demos/index.html","b3cc17bfcdf243e058dc8c5ce4f2f9e1"],["patterns/index.html","d8a7d1531fdc33125ddb73dba0607548"],["patterns/index.xml","dc1e5b6741587e830722d77a7f88d22f"],["patterns/installation/index.html","f955032ee962883a212a4c181221bdaf"],["patterns/library-setup/index.html","a66baa28ece291d5542687f837f73b02"],["patterns/media/including-images/index.html","a2c819e409c2a0c770ce240210c0990c"],["patterns/media/including-videos/index.html","eeb0ba3943cbb019217acb04e3c92181"],["patterns/media/index.html","7dbd872072b3221e50ed1baa8ac347b1"],["patterns/media/index.xml","4a9c518cde77c958c19472b4f6980fd6"],["patterns/serving/index.html","448f1a59990139bf8e5e61c8138aa8ea"],["patterns/writing/expandable-sections/index.html","7215479bfdab51fe44117d9538f40d6b"],["patterns/writing/index.html","e8acf1d72503cbebfee47cf2ec9ab10d"],["patterns/writing/index.xml","4df8e70bce37e4e695563a67f5ff2cfd"],["patterns/writing/library-structure/index.html","ce6adc5ce47902af42e32b6be5239edb"],["patterns/writing/markdown-and-metadata/index.html","53a85095e412b62cf19f028d8be445ae"],["patterns/writing/notes-and-warnings/index.html","1d14e46563376bd1c86ba3ae4ad26ea1"],["patterns/writing/references/index.html","1e8a9fc79f83c17944f7eb543b9eeb46"],["patterns/writing/tables-of-contents/index.html","21afc4584103d1c234c9a942da54104e"],["sitemap.xml","85e08796b1c8c18551a4c2ac407eff66"],["tags/index.xml","c49e6e2b318d5ee86534194441e4dc1e"]]; +var precacheConfig = [["browserconfig.xml","67c3113b1574fecc6015d56d774e1d38"],["categories/index.xml","0ac1d02cfbcad2fcc8c13b2c54715338"],["css/fonts/miriamlibre-bold.woff","96496f6f06535d25b3bcba876917ca35"],["css/fonts/miriamlibre-bold.woff2","668defa44d9a74dd709ce0c826a5eb11"],["css/fonts/pt_sans-web-bold.woff","f83c22b548d2d684e24e315d81f7d22b"],["css/fonts/pt_sans-web-bold.woff2","84520c22e6ebf1b30b6f17251d65fff7"],["css/fonts/pt_sans-web-italic.woff","31f09f09a1d3fbe6c8de19644ef0e614"],["css/fonts/pt_sans-web-italic.woff2","df128e1d5a449fc0506fc1b48aac0184"],["css/fonts/pt_sans-web-regular.woff","32100f6ebf01af64d4a71416561c072d"],["css/fonts/pt_sans-web-regular.woff2","b6d4ede9a3a5dbe4d5ac242ae4b0ecc2"],["css/images/icon-tick.svg","35d4d4728ea80d254508b2bca4109d70"],["css/images/stripe.svg","fa3f32a026b6a1bb04ee98d963432e15"],["css/prism.css","004029c8c70ed2bbaa5d9debcf14f8c7"],["css/styles.css","e57f2b72a91e67ab2a5581fbcf72a7d0"],["images/android-icon-144x144.png","43e1f47f182b13d0dee15f510213e928"],["images/android-icon-192x192.png","4c07782e52e0ab714074e6d3d69dc3ec"],["images/android-icon-36x36.png","3b2cd8c925a66bf84c89b68bb30e5f62"],["images/android-icon-48x48.png","45dc386eea1d8a46216a8b6de9b156c6"],["images/android-icon-72x72.png","b04c64637efed2b04fa900ddfcbfe75d"],["images/android-icon-96x96.png","bd9c126a4d6baf7ce442122ce0e89e11"],["images/apple-icon-114x114.png","72e127d6f01dfcd2ba2340141babc536"],["images/apple-icon-120x120.png","bc7cd9e36869e66aaca78412207bf723"],["images/apple-icon-144x144.png","43e1f47f182b13d0dee15f510213e928"],["images/apple-icon-152x152.png","567c64205576865b5e5d06c849613ca2"],["images/apple-icon-180x180.png","6b8734c446bf02ab50be598b4c01ec9c"],["images/apple-icon-57x57.png","f8c586086752c78870820b6190d6b42b"],["images/apple-icon-60x60.png","6e88df111e506bcd5501bed4ff10542e"],["images/apple-icon-72x72.png","b04c64637efed2b04fa900ddfcbfe75d"],["images/apple-icon-76x76.png","d8666e0ac256f39f8c5c628486bd71fb"],["images/apple-icon-precomposed.png","725f6cec25256abb1db10385e0724400"],["images/apple-icon.png","725f6cec25256abb1db10385e0724400"],["images/browser-Chrome-Android.svg","3100b2a9c5f0e34982c717fc2aa46d73"],["images/browser-Chrome.svg","fa39b4be6727525330e928f582fbe80a"],["images/browser-Edge.svg","9e8265ab8f6a701587a4271dd3aa6a73"],["images/browser-Firefox-Android.svg","452df7b9e83c70a07e8e03b4e8dab9c4"],["images/browser-Firefox.svg","d3093eda664be3d0cc6d791e1386420f"],["images/browser-IE.svg","13e192cf2b3fe17e7049a49b7d085caa"],["images/browser-Opera.svg","95d65630c9f7deef6a3098af8f5baf9f"],["images/browser-Safari-iOS.svg","f729e629ec998ec40d313495d7257741"],["images/browser-Safari.svg","523ee9491f5a937b8975f4d23aa77f62"],["images/favicon-16x16.png","7a99c20d6c00babddd26d03607b8721d"],["images/favicon-32x32.png","129881474a1bf130027bff7a1e89febd"],["images/favicon-96x96.png","bd9c126a4d6baf7ce442122ce0e89e11"],["images/favicon.ico","81c46feedbfcc6c6dc9495e4fd5adfad"],["images/icon-info.svg","53a6c555ce41f818556c71ab0dfc533b"],["images/icon-tag.svg","f067bbbc072941b2a0335679300bfc6c"],["images/icon-warning.svg","2a4322abbee9aed694fadb50e98a1f61"],["images/logo.png","0134d77c2c6b01eabb425990bab7ce9a"],["images/ms-icon-144x144.png","43e1f47f182b13d0dee15f510213e928"],["images/ms-icon-150x150.png","e73370837ab9060772a18d62aaacd0f0"],["images/ms-icon-310x310.png","8a7143516b929702e3309bb537a99c5c"],["images/ms-icon-70x70.png","d7c6e7368733d53b5f979546d5aa4fe9"],["images/open_in_desktop.png","e899d6679b011aa7b0e783683d90d99b"],["images/serve_from_docs.png","15ae9eac3737a21593ebe00a9312bf9e"],["images/steve_faulkner.jpg","b90382f2b505ce6f6b1e08657637395e"],["index.html","5a0267c4095b6a6851a2a8825053cc7a"],["index.xml","28f2540e972c035cb70bef8b4e7a9ce1"],["js/dom-scripts.js","9956fb927a1097a05d07f48cdfbb9140"],["js/prism.js","0c1fb8d3a69ee7c91dbf0f361ded7763"],["js/service-worker-registration.js","d60f01dc1393cbaaf4f7435339074d5e"],["js/webcomponents.js","c5f6fe397db634cde89f66c2f1bc2f62"],["manifest.json","4e77b7f1253442852a2f185822f1b4d8"],["patterns/coding/code-blocks/index.html","ba8574de1814df1633ce093c0f448fe7"],["patterns/coding/codepen-embedding/index.html","7f9e6c1b6227b9ab3eae9ec33424a2b0"],["patterns/coding/color-palettes/index.html","7ae21a206ad5d8deeee9d77a57bae4c9"],["patterns/coding/index.html","0f7888ba74ad3012f450baa7b75e5486"],["patterns/coding/index.xml","e05792f5d471e69af658fcfe0d949e05"],["patterns/coding/tested/index.html","fc75ec2965ba554d1cd5ff7ecc924bbf"],["patterns/coding/writing-inline-demos/index.html","b3cc17bfcdf243e058dc8c5ce4f2f9e1"],["patterns/index.html","d8a7d1531fdc33125ddb73dba0607548"],["patterns/index.xml","dc1e5b6741587e830722d77a7f88d22f"],["patterns/installation/index.html","f955032ee962883a212a4c181221bdaf"],["patterns/library-setup/index.html","a66baa28ece291d5542687f837f73b02"],["patterns/media/including-images/index.html","a2c819e409c2a0c770ce240210c0990c"],["patterns/media/including-videos/index.html","eeb0ba3943cbb019217acb04e3c92181"],["patterns/media/index.html","7dbd872072b3221e50ed1baa8ac347b1"],["patterns/media/index.xml","4a9c518cde77c958c19472b4f6980fd6"],["patterns/serving/index.html","448f1a59990139bf8e5e61c8138aa8ea"],["patterns/writing/expandable-sections/index.html","7215479bfdab51fe44117d9538f40d6b"],["patterns/writing/index.html","e8acf1d72503cbebfee47cf2ec9ab10d"],["patterns/writing/index.xml","c481c10923ab6ae8b182091cdef989cd"],["patterns/writing/library-structure/index.html","ce6adc5ce47902af42e32b6be5239edb"],["patterns/writing/markdown-and-metadata/index.html","53a85095e412b62cf19f028d8be445ae"],["patterns/writing/notes-and-warnings/index.html","1d14e46563376bd1c86ba3ae4ad26ea1"],["patterns/writing/references/index.html","1e8a9fc79f83c17944f7eb543b9eeb46"],["patterns/writing/tables-of-contents/index.html","679b56897f32752fbd0490b9aeff9a0e"],["sitemap.xml","85e08796b1c8c18551a4c2ac407eff66"],["tags/index.xml","c49e6e2b318d5ee86534194441e4dc1e"]]; var cacheName = 'sw-precache-v3-sw-precache-' + (self.registration ? self.registration.scope : '');