From aba81a27e5f8b29c81a0f059f9523dbe1552b11a Mon Sep 17 00:00:00 2001 From: Heydon Pickering Date: Fri, 30 Jun 2017 17:14:15 +0100 Subject: [PATCH] persist nav scroll position --- package.json | 1 + .../writing/expandable-sections/index.html | 7 +++++++ themes/infusion/layouts/_default/baseof.html | 2 +- themes/infusion/static/js/dom-scripts.js | 14 +++++++++++--- themes/infusion/static/js/webcomponents.js | 2 ++ 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5c61224..0266a32 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "An inclusive pattern library builder for documenting inclusive interface design", "main": "index.js", "scripts": { + "getURL": "git remote -v | sed -n '/push/p' | awk '{print $2}' | sed 's/.*:\\(.*\\).git/\\1/' | awk -F\"/\" '{print $1\".github.io/\"$2}'", "test": "echo \"Error: no test specified\" && exit 1", "serve": "hugo server", "clean": "rm -rf content && mkdir content && mkdir content/patterns && hugo new patterns/pattern.md && hugo new _index.md", diff --git a/public/patterns/writing/expandable-sections/index.html b/public/patterns/writing/expandable-sections/index.html index a64bb29..45c6226 100644 --- a/public/patterns/writing/expandable-sections/index.html +++ b/public/patterns/writing/expandable-sections/index.html @@ -273,6 +273,13 @@ Here is some markdown including [a link](https://twitter.com/heydonworks). Donec

Unfortunately, it is not currently possible to include shortcodes inside other shortcodes, using the “%” notation (which is designated for markdown content). If you use the angle brackets notation (illustrated below) it is possible, but markdown will no longer be permitted. You will have to code HTML inside such a section manually.

+

+{{<expandable label="A section of dummy text" level="2">}}
+<p>Here is a pattern reference shortcode: {{% pattern "Writing inline demos" %}}.</p>
+{{</expandable>}}
+
+ +