mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 01:55:22 +03:00
docs: beef up entrypoint documentation page
Let's use the rough categorization of the markdown pages to add basic sections, via Jeykll templating. Also, add in a couple of additional links via a JSON array that lists them. So much web development, so much wow!
This commit is contained in:
parent
4cdca0af11
commit
5d3f5e4081
10
docs/_data/extra_pages.json
Normal file
10
docs/_data/extra_pages.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[
|
||||||
|
{ "category": "Project", "title": "Brand", "url": "https://brand.systemd.io/" },
|
||||||
|
{ "category": "Project", "title": "Releases", "url": "https://github.com/systemd/systemd/releases" },
|
||||||
|
{ "category": "Project", "title": "GitHub Project Page", "url": "https://github.com/systemd/systemd" },
|
||||||
|
{ "category": "Project", "title": "Issues", "url": "https://github.com/systemd/systemd/issues" },
|
||||||
|
{ "category": "Project", "title": "Pull Requests", "url": "https://github.com/systemd/systemd/pulls" },
|
||||||
|
{ "category": "Project", "title": "Mailing List", "url": "https://lists.freedesktop.org/mailman/listinfo/systemd-devel" },
|
||||||
|
{ "category": "Manual Pages", "title": "Index", "url": "https://www.freedesktop.org/software/systemd/man/" },
|
||||||
|
{ "category": "Manual Pages", "title": "Directives", "url": "https://www.freedesktop.org/software/systemd/man/systemd.directives.html" }
|
||||||
|
]
|
@ -4,8 +4,14 @@ title: systemd Documentation
|
|||||||
|
|
||||||
# systemd Documentation
|
# systemd Documentation
|
||||||
|
|
||||||
{% for p in site.pages %}
|
{% assign by_category = site.pages | group_by:"category" %}
|
||||||
{% if p.url != page.url and p.title %}
|
{% assign extra_pages = site.data.extra_pages | group_by:"category" %}
|
||||||
* [{{ p.title }}]({{ p.url | relative_url }})
|
{% assign merged = by_category | concat: extra_pages | sort:"name" %}
|
||||||
|
|
||||||
|
{% for pair in merged %}
|
||||||
|
{% if pair.name != "" %}
|
||||||
|
## {{ pair.name }}
|
||||||
|
{% assign sorted = pair.items | sort:"title" %}{% for page in sorted %}
|
||||||
|
* [{{ page.title }}]({{ page.url | relative_url }}){% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user