Make doc menus more reusable
This commit is contained in:
parent
ea94e5dd1c
commit
7f3b35191c
|
@ -0,0 +1,43 @@
|
||||||
|
- title: Getting Started
|
||||||
|
docs:
|
||||||
|
- home
|
||||||
|
- quickstart
|
||||||
|
- installation
|
||||||
|
- usage
|
||||||
|
- structure
|
||||||
|
- configuration
|
||||||
|
|
||||||
|
- title: Your Content
|
||||||
|
docs:
|
||||||
|
- frontmatter
|
||||||
|
- posts
|
||||||
|
- drafts
|
||||||
|
- pages
|
||||||
|
- variables
|
||||||
|
- datafiles
|
||||||
|
- migrations
|
||||||
|
|
||||||
|
- title: Customization
|
||||||
|
docs:
|
||||||
|
- templates
|
||||||
|
- permalinks
|
||||||
|
- pagination
|
||||||
|
- plugins
|
||||||
|
- extras
|
||||||
|
|
||||||
|
- title: Deployment
|
||||||
|
docs:
|
||||||
|
- github-pages
|
||||||
|
- deployment-methods
|
||||||
|
|
||||||
|
- title: Miscellaneous
|
||||||
|
docs:
|
||||||
|
- troubleshooting
|
||||||
|
- sites
|
||||||
|
- resources
|
||||||
|
- upgrading
|
||||||
|
|
||||||
|
- title: Meta
|
||||||
|
docs:
|
||||||
|
- contributing
|
||||||
|
- history
|
|
@ -1,16 +1,8 @@
|
||||||
<div class="unit one-fifth hide-on-mobiles">
|
<div class="unit one-fifth hide-on-mobiles">
|
||||||
<aside>
|
<aside>
|
||||||
<h4>Getting Started</h4>
|
{% for section in site.data.docs %}
|
||||||
{% include docs_ul.html items='home quickstart installation usage structure configuration' %}
|
<h4>{{ section.title }}</h4>
|
||||||
<h4>Your Content</h4>
|
{% include docs_ul.html items=section.docs %}
|
||||||
{% include docs_ul.html items='frontmatter posts drafts pages variables datafiles migrations' %}
|
{% endfor %}
|
||||||
<h4>Customization</h4>
|
|
||||||
{% include docs_ul.html items='templates permalinks pagination plugins extras' %}
|
|
||||||
<h4>Deployment</h4>
|
|
||||||
{% include docs_ul.html items='github-pages deployment-methods' %}
|
|
||||||
<h4>Miscellaneous</h4>
|
|
||||||
{% include docs_ul.html items='troubleshooting sites resources upgrading' %}
|
|
||||||
<h4>Meta</h4>
|
|
||||||
{% include docs_ul.html items='contributing history' %}
|
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,23 +1,10 @@
|
||||||
<div class="docs-nav-mobile unit whole show-on-mobiles">
|
<div class="docs-nav-mobile unit whole show-on-mobiles">
|
||||||
<select onchange="if (this.value) window.location.href=this.value">
|
<select onchange="if (this.value) window.location.href=this.value">
|
||||||
<option value="">Navigate the docs…</option>
|
<option value="">Navigate the docs…</option>
|
||||||
<optgroup label="Getting started">
|
{% for section in site.data.docs %}
|
||||||
{% include docs_option.html items='home quickstart installation usage structure configuration' %}
|
<optgroup label="{{ section.title }}">
|
||||||
</optgroup>
|
{% include docs_option.html items=section.docs %}
|
||||||
<optgroup label="Your Content">
|
|
||||||
{% include docs_option.html items='frontmatter posts drafts pages variables datafiles migrations' %}
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="Customization">
|
|
||||||
{% include docs_option.html items='templates permalinks pagination plugins extras' %}
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="Deployment">
|
|
||||||
{% include docs_option.html items='github-pages deployment-methods' %}
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="Miscellaneous">
|
|
||||||
{% include docs_option.html items='troubleshooting sites resources upgrading' %}
|
|
||||||
</optgroup>
|
|
||||||
<optgroup label="Meta">
|
|
||||||
{% include docs_option.html items='contributing history' %}
|
|
||||||
</optgroup>
|
</optgroup>
|
||||||
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% assign items = include.items | split: ' ' %}
|
{% assign items = include.items %}
|
||||||
|
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
{% assign item_url = item | prepend:'/docs/' | append:'/' %}
|
{% assign item_url = item | prepend:'/docs/' | append:'/' %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% assign items = include.items | split: ' ' %}
|
{% assign items = include.items %}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
|
@ -16,5 +16,5 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue