mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-22 22:11:50 +03:00
move dreamDocs out of docs dir
to reduce unecessary rebuilds
This commit is contained in:
parent
280bebed2c
commit
42ff2e8d4d
@ -4,7 +4,6 @@ site_url: "https://nix-community.github.io/dream2nix"
|
||||
site_dir: !ENV out
|
||||
|
||||
plugins:
|
||||
- generate_options
|
||||
- search
|
||||
|
||||
extra_css:
|
||||
|
@ -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
|
@ -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" ]
|
@ -94,7 +94,8 @@
|
||||
website =
|
||||
pkgs.runCommand "website" {
|
||||
nativeBuildInputs = [
|
||||
self.packages.${system}.mkdocs
|
||||
pkgs.python3.pkgs.mkdocs
|
||||
pkgs.python3.pkgs.mkdocs-material
|
||||
referenceDocs
|
||||
];
|
||||
} ''
|
||||
@ -106,10 +107,10 @@
|
||||
packages.reference = referenceDocs;
|
||||
packages.website = website;
|
||||
devShells.mkdocs = let
|
||||
package = self.packages.${system}.mkdocs;
|
||||
pythonWithDeps = pkgs.python3.withPackages (
|
||||
ps: [
|
||||
package
|
||||
ps: [
|
||||
self.packages.${system}.mkdocs
|
||||
self.packages.${system}.mkdocs-material
|
||||
ps.ipython
|
||||
ps.black
|
||||
ps.pytest
|
||||
@ -122,10 +123,5 @@
|
||||
pythonWithDeps
|
||||
];
|
||||
};
|
||||
|
||||
packages.mkdocs = import ../../../docs/package.nix {
|
||||
inherit lib;
|
||||
inherit (pkgs) python3;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user