move dreamDocs out of docs dir

to reduce unecessary rebuilds
This commit is contained in:
phaer 2024-06-11 12:24:00 +02:00
parent 280bebed2c
commit 42ff2e8d4d
4 changed files with 5 additions and 39 deletions

View File

@ -4,7 +4,6 @@ site_url: "https://nix-community.github.io/dream2nix"
site_dir: !ENV out site_dir: !ENV out
plugins: plugins:
- generate_options
- search - search
extra_css: extra_css:

View File

@ -1,18 +0,0 @@
{
lib,
python3,
}: let
package = python3.pkgs.buildPythonPackage {
name = "dream2nix_docs";
format = "pyproject";
src = ./.;
nativeBuildInputs = [
python3.pkgs.setuptools
];
propagatedBuildInputs = with python3.pkgs; [
mkdocs
mkdocs-material
];
};
in
package

View File

@ -1,11 +0,0 @@
[project]
name = "dream2nix_docs"
description = "documentation of dream2nix"
authors = [{ name = "David Hauer"}, {name = "Paul Haerle", email = "hello@phaer.org"}]
dynamic = ["version"]
dependencies = ["mkdocs"]
[tool.setuptools]
packages = [ "dream2nix_docs" ]

View File

@ -94,7 +94,8 @@
website = website =
pkgs.runCommand "website" { pkgs.runCommand "website" {
nativeBuildInputs = [ nativeBuildInputs = [
self.packages.${system}.mkdocs pkgs.python3.pkgs.mkdocs
pkgs.python3.pkgs.mkdocs-material
referenceDocs referenceDocs
]; ];
} '' } ''
@ -106,10 +107,10 @@
packages.reference = referenceDocs; packages.reference = referenceDocs;
packages.website = website; packages.website = website;
devShells.mkdocs = let devShells.mkdocs = let
package = self.packages.${system}.mkdocs;
pythonWithDeps = pkgs.python3.withPackages ( pythonWithDeps = pkgs.python3.withPackages (
ps: [ ps: [
package self.packages.${system}.mkdocs
self.packages.${system}.mkdocs-material
ps.ipython ps.ipython
ps.black ps.black
ps.pytest ps.pytest
@ -122,10 +123,5 @@
pythonWithDeps pythonWithDeps
]; ];
}; };
packages.mkdocs = import ../../../docs/package.nix {
inherit lib;
inherit (pkgs) python3;
};
}; };
} }