Skip to content

Commit 079d0fa

Browse files
author
Rob Dodson
committed
Add deep linking to docs template
1 parent 6105248 commit 079d0fa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

site-resources/element.tpl.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
1818
<link rel="stylesheet" href="../styles/main.css" />
1919

20-
<h1>{{=it.title}}</h1>
20+
<h1 id="element">{{=it.title}}</h1>
2121
<section class="intro">
2222
{{=it.markdown(it.readFile(`elements/${it.title}/README.md`))}}
2323
</section>
24-
<h2>Demo</h2>
24+
<h2 id="demo">Demo</h2>
2525
<iframe src="demo.html" class="demo" aria-label="live demo" role="region"></iframe>
26-
<h2>Example usage</h2>
26+
<h2 id="example-usage">Example usage</h2>
2727
<ul class="literate demo" id="{{=it.title}}_demo">
2828
{{ for (let section of it.demoSections) { }}
2929
<li class="{{=section.commentType.toLowerCase()}} {{? (section.commentText.length <= 0) && (section.codeText.length <= 0)}}empty{{?}}">
@@ -32,7 +32,7 @@ <h2>Example usage</h2>
3232
</li>
3333
{{ } }}
3434
</ul>
35-
<h2>Code</h2>
35+
<h2 id="code">Code</h2>
3636
<ul class="literate code" id="{{=it.title}}_impl">
3737
{{ for (let section of it.sections) { }}
3838
<li class="{{=section.commentType.toLowerCase()}} {{? (section.commentText.length <= 0) && (section.codeText.length <= 0)}}empty{{?}}">

0 commit comments

Comments
 (0)