Skip to content

Commit

Permalink
Add deep linking to docs template
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson committed Oct 10, 2017
1 parent 6105248 commit 079d0fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions site-resources/element.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<link rel="stylesheet" href="../styles/main.css" />

<h1>{{=it.title}}</h1>
<h1 id="element">{{=it.title}}</h1>
<section class="intro">
{{=it.markdown(it.readFile(`elements/${it.title}/README.md`))}}
</section>
<h2>Demo</h2>
<h2 id="demo">Demo</h2>
<iframe src="demo.html" class="demo" aria-label="live demo" role="region"></iframe>
<h2>Example usage</h2>
<h2 id="example-usage">Example usage</h2>
<ul class="literate demo" id="{{=it.title}}_demo">
{{ for (let section of it.demoSections) { }}
<li class="{{=section.commentType.toLowerCase()}} {{? (section.commentText.length <= 0) && (section.codeText.length <= 0)}}empty{{?}}">
Expand All @@ -32,7 +32,7 @@ <h2>Example usage</h2>
</li>
{{ } }}
</ul>
<h2>Code</h2>
<h2 id="code">Code</h2>
<ul class="literate code" id="{{=it.title}}_impl">
{{ for (let section of it.sections) { }}
<li class="{{=section.commentType.toLowerCase()}} {{? (section.commentText.length <= 0) && (section.codeText.length <= 0)}}empty{{?}}">
Expand Down

0 comments on commit 079d0fa

Please sign in to comment.