Merge pull request #14306 from poettering/markdown-category

beef up systemd.io pages with simple categorization
This commit is contained in:
Lennart Poettering 2019-12-11 11:43:31 +01:00 committed by GitHub
commit b65cb5cb7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 41 additions and 3 deletions

View file

@ -1,5 +1,6 @@
--- ---
title: Automatic Boot Assessment title: Automatic Boot Assessment
category: Booting
--- ---
# Automatic Boot Assessment # Automatic Boot Assessment

View file

@ -1,5 +1,6 @@
--- ---
title: Locking Block Device Access title: Locking Block Device Access
category: Interfaces
--- ---
# Locking Block Device Access # Locking Block Device Access

View file

@ -1,5 +1,6 @@
--- ---
title: The Boot Loader Interface title: The Boot Loader Interface
category: Booting
--- ---
# The Boot Loader Interface # The Boot Loader Interface

View file

@ -1,5 +1,6 @@
--- ---
title: The Boot Loader Specification title: The Boot Loader Specification
category: Booting
--- ---
# The Boot Loader Specification # The Boot Loader Specification

View file

@ -1,5 +1,6 @@
--- ---
title: Control Group APIs and Delegation title: Control Group APIs and Delegation
category: Interfaces
--- ---
# Control Group APIs and Delegation # Control Group APIs and Delegation

View file

@ -1,5 +1,6 @@
--- ---
title: The systemd Community Conduct Guidelines title: The systemd Community Conduct Guidelines
category: Contributing
--- ---
# The systemd Community Conduct Guidelines # The systemd Community Conduct Guidelines

View file

@ -1,5 +1,6 @@
--- ---
title: Code Quality Tools title: Code Quality Tools
category: Contributing
--- ---
# Code Quality Tools # Code Quality Tools

View file

@ -1,5 +1,6 @@
--- ---
title: Coding Style title: Coding Style
category: Contributing
--- ---
# Coding Style # Coding Style

View file

@ -1,5 +1,6 @@
--- ---
title: Contributing title: Contributing
category: Contributing
--- ---
# Contributing # Contributing

View file

@ -1,5 +1,6 @@
--- ---
title: Porting systemd To New Distributions title: Porting systemd To New Distributions
category: Concepts
--- ---
# Porting systemd To New Distributions # Porting systemd To New Distributions

View file

@ -1,5 +1,6 @@
--- ---
title: Known Environment Variables title: Known Environment Variables
category: Interfaces
--- ---
# Known Environment Variables # Known Environment Variables

View file

@ -1,5 +1,6 @@
--- ---
title: Hacking on systemd title: Hacking on systemd
category: Contributing
--- ---
# Hacking on systemd # Hacking on systemd

View file

@ -1,5 +1,6 @@
--- ---
title: Portable Services Introduction title: Portable Services Introduction
category: Concepts
--- ---
# Portable Services Introduction # Portable Services Introduction

View file

@ -1,5 +1,6 @@
--- ---
title: Predictable Network Interface Names title: Predictable Network Interface Names
category: Concepts
--- ---
# Predictable Network Interface Names # Predictable Network Interface Names

View file

@ -1,5 +1,6 @@
--- ---
title: Random Seeds title: Random Seeds
category: Concepts
--- ---
# Random Seeds # Random Seeds

View file

@ -1,5 +1,6 @@
--- ---
title: Steps to a Successful Release title: Steps to a Successful Release
category: Contributing
--- ---
# Steps to a Successful Release # Steps to a Successful Release

View file

@ -1,5 +1,6 @@
--- ---
title: Reporting of security vulnerabilities title: Reporting of security vulnerabilities
category: Contributing
--- ---
# Reporting of security vulnerabilities # Reporting of security vulnerabilities

View file

@ -1,5 +1,6 @@
--- ---
title: Using /tmp/ And /var/tmp/ Safely title: Using /tmp/ And /var/tmp/ Safely
category: Interfaces
--- ---
# Using `/tmp/` And `/var/tmp/` Safely # Using `/tmp/` And `/var/tmp/` Safely

View file

@ -1,5 +1,6 @@
--- ---
title: Testing systemd using sanitizers title: Testing systemd using sanitizers
category: Contributing
--- ---
# Testing systemd using sanitizers # Testing systemd using sanitizers

View file

@ -1,5 +1,6 @@
--- ---
title: What settings are currently available for transient units? title: What settings are currently available for transient units?
category: Interfaces
--- ---
# What settings are currently available for transient units? # What settings are currently available for transient units?

View file

@ -1,5 +1,6 @@
--- ---
title: Notes for Translators title: Notes for Translators
category: Contributing
--- ---
# Notes for Translators # Notes for Translators

View file

@ -1,5 +1,6 @@
--- ---
title: Users, Groups, UIDs and GIDs on `systemd` Systems title: Users, Groups, UIDs and GIDs on `systemd` Systems
category: Concepts
--- ---
# Users, Groups, UIDs and GIDs on `systemd` Systems # Users, Groups, UIDs and GIDs on `systemd` Systems

View 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" }
]

View file

@ -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 %}