stylix: honour recent docs to doc renames (#1493)

Link: https://github.com/nix-community/stylix/pull/1493

Co-authored-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
pancho horrillo 2025-06-19 23:38:08 +02:00 committed by GitHub
parent 2b231cdc9b
commit 8c1421ae02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

2
.github/labeler.yml vendored
View file

@ -14,7 +14,7 @@
"topic: documentation":
- changed-files:
- any-glob-to-any-file:
- "docs/**"
- "doc/**"
- "README.md"
"topic: nixos":

View file

@ -1,5 +1,5 @@
---
name: Docs
name: Documentation
on:
push:
@ -36,7 +36,7 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
continue-on-error: true
- run: nix build .#docs
- run: nix build .#doc
- uses: actions/upload-pages-artifact@v3
with:

View file

@ -68,7 +68,7 @@ user@host:~$ nix flake show
github:nix-community/stylix
└───packages
└───x86_64-linux
├───docs: package 'stylix-book'
├───doc: package 'stylix-book'
├───palette-generator: package 'palette-generator'
├───"testbed:gnome:cursorless": package 'testbed-gnome-cursorless'
├───"testbed:gnome:dark": package 'testbed-gnome-dark'

View file

@ -8,7 +8,7 @@
# are derivations.
checks = config.packages;
# Make 'nix run .#docs' serve the docs
# Make 'nix run .#doc' serve the documentation site
apps.doc.program = config.packages.serve-docs;
packages = lib.mkMerge [

View file

@ -10,8 +10,8 @@ let
]
);
# `nix build .#palette-generator.passthru.docs` and open in a web browser
docs = stdenvNoCC.mkDerivation {
# `nix build .#palette-generator.doc && xdg-open result/index.html`
doc = stdenvNoCC.mkDerivation {
name = "palette-generator-haddock";
src = ./.;
@ -38,7 +38,7 @@ stdenvNoCC.mkDerivation {
install -D Stylix/Main $out/bin/palette-generator
'';
passthru = { inherit docs; };
passthru = { inherit doc; };
meta.mainProgram = "palette-generator";
}