File tree Expand file tree Collapse file tree 6 files changed +43
-30
lines changed Expand file tree Collapse file tree 6 files changed +43
-30
lines changed Original file line number Diff line number Diff line change 21
21
}
22
22
( std . grow {
23
23
inherit inputs ;
24
- cellsFrom = incl ./src [ "std" "lib" "data" ] ;
24
+ cellsFrom = incl ./src [ "std" "lib" "data" "mdbook" ] ;
25
25
cellBlocks = with std . blockTypes ; [
26
26
## For downstream use
27
27
Original file line number Diff line number Diff line change 1
- let
2
- inherit ( inputs ) nixpkgs ;
3
- inherit ( inputs . mdbook-paisano-preprocessor . app . package ) mdbook-paisano-preprocessor ;
4
- in {
5
- hook . mode = "copy" ; # let CI pick it up outside of devshell
6
- packages = [
7
- nixpkgs . alejandra
8
- nixpkgs . nodePackages . prettier
9
- nixpkgs . nodePackages . prettier-plugin-toml
10
- nixpkgs . shfmt
11
- mdbook-paisano-preprocessor
12
- ] ;
13
-
14
- data = {
15
- book = {
16
- language = "en" ;
17
- multilingual = false ;
18
- src = "docs" ;
19
- title = "Documentation" ;
20
- } ;
21
- build = {
22
- build-dir = "docs/book" ;
23
- } ;
24
- preprocessor . paisano-preprocessor = {
25
- before = [ "links" ] ;
26
- registry = ".#__std.init" ;
27
- } ;
28
- } ;
29
- }
1
+ /*
2
+ extracted out to separate cell to fix https://github.com/divnix/std/issues/393
3
+ you can read the real source at /src/mdbook/configs/mdbook.nix
4
+ */
5
+ inputs . cells . mdbook . configs . mdbook
Original file line number Diff line number Diff line change
1
+ let
2
+ inherit ( inputs ) cells ;
3
+ inherit ( inputs . std ) findTargets ;
4
+
5
+ inherit ( inputs . nixpkgs . lib ) recursiveUpdate mapAttrs ;
6
+
7
+ data = findTargets {
8
+ inherit inputs cell ;
9
+ block = ./. ;
10
+ } ;
11
+ in
12
+ mapAttrs ( name : config : recursiveUpdate config ( data . ${ name } or { } ) ) cells . lib . cfg
Original file line number Diff line number Diff line change
1
+ let
2
+ inherit ( inputs ) nixpkgs ;
3
+ inherit ( inputs . mdbook-paisano-preprocessor . app . package ) mdbook-paisano-preprocessor ;
4
+ in {
5
+ hook . mode = "copy" ; # let CI pick it up outside of devshell
6
+ packages = [
7
+ mdbook-paisano-preprocessor
8
+ ] ;
9
+
10
+ data = {
11
+ book = {
12
+ language = "en" ;
13
+ multilingual = false ;
14
+ src = "docs" ;
15
+ title = "Documentation" ;
16
+ } ;
17
+ build = {
18
+ build-dir = "docs/book" ;
19
+ } ;
20
+ preprocessor . paisano-preprocessor = {
21
+ before = [ "links" ] ;
22
+ registry = ".#__std.init" ;
23
+ } ;
24
+ } ;
25
+ }
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments