Skip to content

Commit

Permalink
doc: write book.toml to file, disable printing
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 8, 2024
1 parent a661a89 commit f4b32e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[book]
title="@projectName@"

[output.html.print]
enable = false # don't encourage people to create more dead trees
5 changes: 4 additions & 1 deletion lib/doc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
buildCommand = ''
mkdir src
echo -e "[book]\ntitle=\"${projectName}\"" > src/book.toml
cp ${pkgs.substituteAll {
src = ./book.toml;
inherit projectName;
}} src/book.toml
echo -e "# Summary\n\n- [Options](options.md)" > src/SUMMARY.md
ln -s ${moduleDoc}/options.md ./src
Expand Down

0 comments on commit f4b32e3

Please sign in to comment.