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
category: Booting
---
# Automatic Boot Assessment

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,6 @@
---
title: Users, Groups, UIDs and GIDs on `systemd` Systems
category: Concepts
---
# 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
{% for p in site.pages %}
{% if p.url != page.url and p.title %}
* [{{ p.title }}]({{ p.url | relative_url }})
{% assign by_category = site.pages | group_by:"category" %}
{% assign extra_pages = site.data.extra_pages | group_by:"category" %}
{% 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 %}
{% endfor %}