mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 06:21:30 +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
|
# a reference section
|
||||||
return nav
|
return nav
|
||||||
|
|
||||||
released = []
|
|
||||||
experimental = []
|
experimental = []
|
||||||
|
internal = []
|
||||||
|
released = []
|
||||||
for page in reference_section.children:
|
for page in reference_section.children:
|
||||||
# to have metadata from the yaml front-matter available
|
# to have metadata from the yaml front-matter available
|
||||||
page.read_source(config)
|
page.read_source(config)
|
||||||
state = page.meta.get("state")
|
state = page.meta.get("state")
|
||||||
if state == "released":
|
if state == "internal":
|
||||||
|
internal.append(page)
|
||||||
|
elif state == "released":
|
||||||
released.append(page)
|
released.append(page)
|
||||||
else:
|
else:
|
||||||
experimental.append(page)
|
experimental.append(page)
|
||||||
|
|
||||||
experimental_section = Section("Experimental Modules", experimental)
|
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
|
nav.items[reference_index] = reference_section
|
||||||
return nav
|
return nav
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "groups"
|
title: "groups"
|
||||||
state: experimental
|
state: internal
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "buildPythonPackage"
|
title: "buildPythonPackage"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "buildRustPackage"
|
title: "buildRustPackage"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "builtins-derivation"
|
title: "builtins-derivation"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "core"
|
title: "core"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "mkDerivation"
|
title: "mkDerivation"
|
||||||
state: released
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "multi-derivation-package"
|
title: "multi-derivation-package"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "nixpkgs-overrides"
|
title: "nixpkgs-overrides"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "nodejs-devshell-v3"
|
title: "nodejs-devshell-v3"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "nodejs-devshell"
|
title: "nodejs-devshell"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "nodejs-granular"
|
title: "nodejs-granular"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "nodejs-node-modules-v3"
|
title: "nodejs-node-modules-v3"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "nodejs-node-modules"
|
title: "nodejs-node-modules"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "nodejs-package-json"
|
title: "nodejs-package-json"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "nodejs-package-lock"
|
title: "nodejs-package-lock"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "overrides"
|
title: "overrides"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "package-func"
|
title: "package-func"
|
||||||
state: "released"
|
state: "internal"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "rust-cargo-lock"
|
title: "rust-cargo-lock"
|
||||||
state: "released"
|
state: "experimental"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "rust-crane"
|
title: "rust-crane"
|
||||||
state: "released"
|
state: "experimental"
|
||||||
maintainers:
|
maintainers:
|
||||||
- DavHau
|
- DavHau
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user