diff --git a/modules/flake-parts/site/book.toml b/modules/flake-parts/site/book.toml index feff128b91..52e0654061 100644 --- a/modules/flake-parts/site/book.toml +++ b/modules/flake-parts/site/book.toml @@ -1,13 +1,13 @@ [book] -authors = ["Robert Hensing", "Various module authors"] +authors = ["David Hauer", "Various contributors"] language = "en" multilingual = false src = "src" -title = "flake-parts" +title = "dream2nix" [output.html] -git-repository-url = "https://github.com/hercules-ci/flake-parts" -edit-url-template = "https://github.com/hercules-ci/flake.parts-website/edit/main/site/{path}" +git-repository-url = "https://github.com/nix-community/dream2nix" +edit-url-template = "https://github.com/nix-community/dream2nix/edit/main/modules/dream2nix/{path}" additional-js = [ "no-edit-options.js" ] additional-css = [ "flake-parts.css" ] no-section-label = true diff --git a/modules/flake-parts/site/default.nix b/modules/flake-parts/site/default.nix index 9156b4db44..2eae8ee83c 100644 --- a/modules/flake-parts/site/default.nix +++ b/modules/flake-parts/site/default.nix @@ -44,13 +44,17 @@ ''; packages = { - default = pkgs.stdenvNoCC.mkDerivation { + website = pkgs.stdenvNoCC.mkDerivation { name = "site"; nativeBuildInputs = [pkgs.mdbook pkgs.mdbook-linkcheck]; src = ./.; buildPhase = '' runHook preBuild + cp ${self + /docs/theme/highlight.js} ./src/highlight.js + mkdir -p ./theme + cp ${self + /modules/dream2nix/core/docs/theme/favicon.png} ./theme/favicon.png + { while read ln; do case "$ln" in diff --git a/modules/flake-parts/site/flake-parts.css b/modules/flake-parts/site/flake-parts.css index eb46d1775f..4cafecdcb9 100644 --- a/modules/flake-parts/site/flake-parts.css +++ b/modules/flake-parts/site/flake-parts.css @@ -1,7 +1,7 @@ h1.menu-title::before { content: ""; display: inline-block; - background-image: url(./favicon.svg); + background-image: url(./favicon.png); background-repeat: no-repeat; background-size: contain; width: 1.8ex; diff --git a/modules/flake-parts/site/src/SUMMARY.md b/modules/flake-parts/site/src/SUMMARY.md index a5667ce5b2..d3a61897e4 100644 --- a/modules/flake-parts/site/src/SUMMARY.md +++ b/modules/flake-parts/site/src/SUMMARY.md @@ -1,3 +1,4 @@ # Summary - [Reference Documentation]() + - [core (built in)](./options/core.md) diff --git a/modules/flake-parts/site/src/intro-continued.md b/modules/flake-parts/site/src/intro-continued.md new file mode 100644 index 0000000000..e398c97d4f --- /dev/null +++ b/modules/flake-parts/site/src/intro-continued.md @@ -0,0 +1,7 @@ + + +# This documentation + +You can find guides and the options reference in the menu (top left). + +A site wide search is available by typing `s`. diff --git a/modules/flake-parts/website.nix b/modules/flake-parts/website.nix new file mode 100644 index 0000000000..9b50aca5be --- /dev/null +++ b/modules/flake-parts/website.nix @@ -0,0 +1,24 @@ +{ + self, + lib, + ... +}: { + perSystem = { + config, + self', + inputs', + pkgs, + ... + }: { + render.inputs = { + core = { + title = "core"; + flake.module = self.modules.dream2nix.core; + flake.outPath = self; + attributePath = ["module"]; + intro = "intro"; + baseUrl = "https://github.com/nix-community/dream2nix/blob/master"; + }; + }; + }; +}