diff --git a/lib/book.toml b/lib/book.toml new file mode 100644 index 00000000..380d0d6 --- /dev/null +++ b/lib/book.toml @@ -0,0 +1,5 @@ +[book] +title="@projectName@" + +[output.html.print] +enable = false # don't encourage people to create more dead trees diff --git a/lib/doc.nix b/lib/doc.nix index 4563ade..9fe4798 100644 --- a/lib/doc.nix +++ b/lib/doc.nix @@ -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