From: hulkoba Date: Wed, 24 Jan 2024 13:25:10 +0000 (+0100) Subject: Website: Rename Categories and change order X-Git-Tag: v21~84^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2324%2Fhead;p=thirdparty%2Fmkosi.git Website: Rename Categories and change order --- diff --git a/docs/_data/documentation_page.json b/docs/_data/documentation_page.json new file mode 100644 index 000000000..cb8e33171 --- /dev/null +++ b/docs/_data/documentation_page.json @@ -0,0 +1,3 @@ +[ + { "category": "Documentation", "title": "A longer description and available features and options", "url": "https://github.com/systemd/mkosi/blob/main/mkosi/resources/mkosi.md" } +] diff --git a/docs/_data/extra_pages.json b/docs/_data/project_pages.json similarity index 67% rename from docs/_data/extra_pages.json rename to docs/_data/project_pages.json index 003cafd9e..eb7b39b6b 100644 --- a/docs/_data/extra_pages.json +++ b/docs/_data/project_pages.json @@ -3,6 +3,5 @@ { "category": "Project", "title": "Releases", "url": "https://github.com/systemd/mkosi/releases" }, { "category": "Project", "title": "GitHub Project Page", "url": "https://github.com/systemd/mkosi" }, { "category": "Project", "title": "Issues", "url": "https://github.com/systemd/mkosi/issues" }, - { "category": "Project", "title": "Pull Requests", "url": "https://github.com/systemd/mkosi/pulls" }, - { "category": "Man page", "title": "A longer description and available features and options", "url": "https://github.com/systemd/mkosi/blob/main/mkosi/resources/mkosi.md" } + { "category": "Project", "title": "Pull Requests", "url": "https://github.com/systemd/mkosi/pulls" } ] diff --git a/docs/bootable.md b/docs/bootable.md index 65056ca62..59d4511d8 100644 --- a/docs/bootable.md +++ b/docs/bootable.md @@ -1,6 +1,6 @@ --- title: Building a bootable image on different distros -category: Documentation +category: Tutorials layout: default SPDX-License-Identifier: LGPL-2.1-or-later --- diff --git a/docs/building-rpms-from-source.md b/docs/building-rpms-from-source.md index 5511a5abb..d93f9cafb 100644 --- a/docs/building-rpms-from-source.md +++ b/docs/building-rpms-from-source.md @@ -1,6 +1,6 @@ --- title: Building RPMs from source with mkosi -category: Documentation +category: Tutorials layout: default SPDX-License-Identifier: LGPL-2.1-or-later --- diff --git a/docs/distribution-policy.md b/docs/distribution-policy.md index 87514056b..b5bb94edb 100644 --- a/docs/distribution-policy.md +++ b/docs/distribution-policy.md @@ -1,6 +1,6 @@ --- title: Adding new distributions -category: Documentation +category: Tutorials layout: default SPDX-License-Identifier: LGPL-2.1-or-later --- diff --git a/docs/index.md b/docs/index.md index f3beac5a7..36cb9db44 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,9 +9,11 @@ A fancy wrapper around `dnf --installroot`, `apt`, `pacman` and `zypper` that ge --- -{% 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" %} +{% assign tutorials = site.pages | group_by:"category" %} +{% assign project = site.data.project_pages | group_by:"category" %} +{% assign documentation = site.data.documentation_page | group_by:"category" %} +{% assign merged = documentation | concat: tutorials | concat: project %} + {% for pair in merged %} {% if pair.name != "" %} diff --git a/docs/initrd.md b/docs/initrd.md index 177dbc085..3472ae6a4 100644 --- a/docs/initrd.md +++ b/docs/initrd.md @@ -1,6 +1,6 @@ --- title: Building a custom initrd and using it in a mkosi image -category: Documentation +category: Tutorials layout: default SPDX-License-Identifier: LGPL-2.1-or-later --- diff --git a/docs/sysext.md b/docs/sysext.md index 0266eb49a..d43ba5453 100644 --- a/docs/sysext.md +++ b/docs/sysext.md @@ -1,6 +1,6 @@ --- title: Building system extensions with mkosi -category: Documentation +category: Tutorials layout: default SPDX-License-Identifier: LGPL-2.1-or-later ---