reference website: categorize into released/experimental/internal

This commit is contained in:
DavHau 2024-07-11 21:37:43 +07:00 committed by mergify[bot]
parent 37fca4bf27
commit d639e70caf
20 changed files with 26 additions and 22 deletions

View File

@ -104,19 +104,23 @@ def on_nav(nav: Navigation, config: MkDocsConfig, files: Files) -> Navigation |
# a reference section
return nav
released = []
experimental = []
internal = []
released = []
for page in reference_section.children:
# to have metadata from the yaml front-matter available
page.read_source(config)
state = page.meta.get("state")
if state == "released":
if state == "internal":
internal.append(page)
elif state == "released":
released.append(page)
else:
experimental.append(page)
experimental_section = Section("Experimental Modules", experimental)
reference_section.children = released + [experimental_section]
internal_section = Section("Internal Modules", internal)
reference_section.children = released + [experimental_section, internal_section]
nav.items[reference_index] = reference_section
return nav

View File

@ -1,6 +1,6 @@
---
title: "groups"
state: experimental
state: internal
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "buildPythonPackage"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "buildRustPackage"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "builtins-derivation"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "core"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "mkDerivation"
state: released
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "multi-derivation-package"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "nixpkgs-overrides"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "nodejs-devshell-v3"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "nodejs-devshell"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "nodejs-granular"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "nodejs-node-modules-v3"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "nodejs-node-modules"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "nodejs-package-json"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "nodejs-package-lock"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "overrides"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "package-func"
state: "released"
state: "internal"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "rust-cargo-lock"
state: "released"
state: "experimental"
maintainers:
- DavHau
---

View File

@ -1,6 +1,6 @@
---
title: "rust-crane"
state: "released"
state: "experimental"
maintainers:
- DavHau
---