mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Automatically collect all files in the doc folder
This commit is contained in:
parent
757acae2fa
commit
a86c62d658
3 changed files with 28 additions and 8 deletions
|
|
@ -36,3 +36,7 @@ collections:
|
||||||
output: true
|
output: true
|
||||||
caption: Developers
|
caption: Developers
|
||||||
sidebar_index: 5
|
sidebar_index: 5
|
||||||
|
doc:
|
||||||
|
output: true
|
||||||
|
caption: Other
|
||||||
|
sidebar_index: 6
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,23 @@ layout: default
|
||||||
{% assign collections = site.collections | sort: "sidebar_index" %}
|
{% assign collections = site.collections | sort: "sidebar_index" %}
|
||||||
{% for coll in collections %}
|
{% for coll in collections %}
|
||||||
{% if coll.sidebar_index %}
|
{% if coll.sidebar_index %}
|
||||||
<div class="list-group">
|
{% assign count = coll.docs | size %}
|
||||||
<a class="list-group-item active">{{ coll.caption }}</a>
|
{% if count <= 5 %}
|
||||||
{% for doc in coll.docs %}
|
<div class="list-group">
|
||||||
<a class="list-group-item"
|
<a class="list-group-item active">{{ coll.caption }}</a>
|
||||||
href="{% include link.html url=doc.url %}">
|
{% for doc in coll.docs %}
|
||||||
{% include title.html doc=doc coll=coll %}</a>
|
<a class="list-group-item"
|
||||||
{% endfor %}
|
href="{% include link.html url=doc.url %}">
|
||||||
</div>
|
{% include title.html doc=doc coll=coll %}</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
{% capture url %}../{{ coll.label }}{% endcapture %}
|
||||||
|
<div class="list-group">
|
||||||
|
<a class="list-group-item active"
|
||||||
|
href="{% include link.html url=url %}">{{ coll.caption }}</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
7
doc.md
Normal file
7
doc.md
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
title: Other documents
|
||||||
|
---
|
||||||
|
|
||||||
|
{% for p in site.doc %}
|
||||||
|
* [{{ p.title }}]({% include link.html url=p.url %})
|
||||||
|
{% endfor %}
|
||||||
Loading…
Reference in a new issue