summary refs log tree commit diff
path: root/doc/default.nix
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-06-11 21:17:10 +0200
committerpennae <github@quasiparticle.net>2023-06-12 17:50:52 +0200
commitc415521d6393a9608e273fb65e594ff4b6697f6e (patch)
treec0739472b4556d0aad710555ca6641dd908708f1 /doc/default.nix
parent3edc20aa55f722a76e8002b627c9edf05aba4a5f (diff)
downloadnixpkgs-c415521d6393a9608e273fb65e594ff4b6697f6e.tar
nixpkgs-c415521d6393a9608e273fb65e594ff4b6697f6e.tar.gz
nixpkgs-c415521d6393a9608e273fb65e594ff4b6697f6e.tar.bz2
nixpkgs-c415521d6393a9608e273fb65e594ff4b6697f6e.tar.lz
nixpkgs-c415521d6393a9608e273fb65e594ff4b6697f6e.tar.xz
nixpkgs-c415521d6393a9608e273fb65e594ff4b6697f6e.tar.zst
nixpkgs-c415521d6393a9608e273fb65e594ff4b6697f6e.zip
doc: stub out epub manual
same reasoning as for the nixos manual.
Diffstat (limited to 'doc/default.nix')
-rw-r--r--doc/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/default.nix b/doc/default.nix
index 4f55c95a04c..86b4a8d9781 100644
--- a/doc/default.nix
+++ b/doc/default.nix
@@ -20,7 +20,33 @@ in pkgs.stdenv.mkDerivation {
     ln -s ${doc-support} ./doc-support/result
   '';
 
+  epub = ''
+    <book xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          version="5.0"
+          xml:id="nixpkgs-manual">
+      <info>
+        <title>Nixpkgs Manual</title>
+        <subtitle>Version ${pkgs.lib.version}</subtitle>
+      </info>
+      <chapter>
+        <title>Temporarily unavailable</title>
+        <para>
+          The Nixpkgs manual is currently not available in EPUB format,
+          please use the <link xlink:href="https://nixos.org/nixpkgs/manual">HTML manual</link>
+          instead.
+        </para>
+        <para>
+          If you've used the EPUB manual in the past and it has been useful to you, please
+          <link xlink:href="https://github.com/NixOS/nixpkgs/issues/237234">let us know</link>.
+        </para>
+      </chapter>
+    </book>
+  '';
+  passAsFile = [ "epub" ];
+
   preBuild = ''
+    cp $epubPath epub.xml
     make -j$NIX_BUILD_CORES render-md
   '';