2021-03-17 15:58:17 +00:00
|
|
|
{{page-title 'Engineering Docs - Consul' separator=' - '}}
|
|
|
|
|
|
|
|
{{document-attrs class="is-debug"}}
|
2021-03-08 12:22:01 +00:00
|
|
|
<App class="docs" id="wrapper">
|
2021-11-24 18:14:07 +00:00
|
|
|
|
|
|
|
<:notifications as |app|>
|
|
|
|
{{#each flashMessages.queue as |flash|}}
|
|
|
|
{{#if flash.dom}}
|
|
|
|
<app.Notification
|
|
|
|
@delay={{sub flash.timeout flash.extendedTimeout}}
|
|
|
|
@sticky={{flash.sticky}}
|
|
|
|
>
|
|
|
|
{{{flash.dom}}}
|
|
|
|
</app.Notification>
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
|
|
|
</:notifications>
|
|
|
|
|
2021-03-08 12:22:01 +00:00
|
|
|
<:main-nav>
|
2021-03-17 15:58:17 +00:00
|
|
|
|
|
|
|
<DocfyOutput as |node|>
|
|
|
|
<ul>
|
2021-11-23 18:32:11 +00:00
|
|
|
|
|
|
|
{{!hardcode in docs first}}
|
2021-03-17 15:58:17 +00:00
|
|
|
<li role="separator">Docs</li>
|
|
|
|
{{#each node.children as |child|}}
|
|
|
|
{{#each child.pages as |child|}}
|
|
|
|
<li
|
|
|
|
class={{if (is-href (to-route child.url)) 'is-active'}}
|
|
|
|
>
|
|
|
|
<DocfyLink @to={{child.url}}>
|
2021-04-22 11:16:56 +00:00
|
|
|
{{classify child.title}}
|
2021-03-17 15:58:17 +00:00
|
|
|
</DocfyLink>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
2021-11-23 18:32:11 +00:00
|
|
|
|
|
|
|
{{!hardcode in styles next}}
|
|
|
|
{{#let (find-by 'label' 'styles' child.children) as |section|}}
|
|
|
|
<li role="separator">{{section.label}}</li>
|
|
|
|
{{#each (flatten-property section 'pages') as |child|}}
|
|
|
|
<li
|
|
|
|
class={{concat
|
|
|
|
(slugify section.label) ' '
|
|
|
|
(if (is-href (to-route child.url)) 'is-active')
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<DocfyLink @to={{child.url}}>
|
|
|
|
{{classify child.title}}
|
|
|
|
</DocfyLink>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
{{/let}}
|
|
|
|
|
|
|
|
{{!print out the rest}}
|
2021-03-17 15:58:17 +00:00
|
|
|
{{#each child.children as |section|}}
|
2021-11-23 18:32:11 +00:00
|
|
|
{{#if (not-eq section.label 'styles')}}
|
2021-03-17 15:58:17 +00:00
|
|
|
<li role="separator">{{section.label}}</li>
|
|
|
|
{{#each (flatten-property section 'pages') as |child|}}
|
|
|
|
<li
|
|
|
|
class={{concat
|
|
|
|
(slugify section.label) ' '
|
|
|
|
(if (eq child.frontmatter.class 'ember') 'ember-component') ' '
|
2021-06-21 10:40:14 +00:00
|
|
|
(if (eq child.frontmatter.class 'css') 'css-component') ' '
|
2021-03-17 15:58:17 +00:00
|
|
|
(if (is-href (to-route child.url)) 'is-active')
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<DocfyLink @to={{child.url}}>
|
2021-04-22 11:16:56 +00:00
|
|
|
{{classify child.title}}
|
2021-03-17 15:58:17 +00:00
|
|
|
</DocfyLink>
|
|
|
|
</li>
|
2021-03-08 12:22:01 +00:00
|
|
|
{{/each}}
|
2021-11-23 18:32:11 +00:00
|
|
|
{{/if}}
|
2021-03-17 15:58:17 +00:00
|
|
|
{{/each}}
|
|
|
|
{{/each}}
|
2021-11-23 18:32:11 +00:00
|
|
|
|
2021-03-17 15:58:17 +00:00
|
|
|
</ul>
|
|
|
|
</DocfyOutput>
|
2021-03-08 12:22:01 +00:00
|
|
|
|
|
|
|
</:main-nav>
|
|
|
|
<:main>
|
2021-03-17 15:58:17 +00:00
|
|
|
<DocfyOutput @fromCurrentURL={{true}} as |page|>
|
|
|
|
{{outlet}}
|
|
|
|
</DocfyOutput>
|
2021-03-08 12:22:01 +00:00
|
|
|
</:main>
|
|
|
|
</App>
|
|
|
|
|