mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-08-17 10:20:33 +03:00
reference website: categorize into released/experimental/internal
This commit is contained in:
parent
37fca4bf27
commit
d639e70caf
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "groups"
|
||||
state: experimental
|
||||
state: internal
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "buildPythonPackage"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "buildRustPackage"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "builtins-derivation"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "core"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "mkDerivation"
|
||||
state: released
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "multi-derivation-package"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "nixpkgs-overrides"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "nodejs-devshell-v3"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "nodejs-devshell"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "nodejs-granular"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "nodejs-node-modules-v3"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "nodejs-node-modules"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "nodejs-package-json"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "nodejs-package-lock"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "overrides"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "package-func"
|
||||
state: "released"
|
||||
state: "internal"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "rust-cargo-lock"
|
||||
state: "released"
|
||||
state: "experimental"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "rust-crane"
|
||||
state: "released"
|
||||
state: "experimental"
|
||||
maintainers:
|
||||
- DavHau
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user