From fa47df617443b6bd7be0fe0239418c241df146c3 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 4 Jul 2019 09:06:39 -0400 Subject: doc: move parameters to an XML file --- doc/doc-support/default.nix | 22 ++++++++++++++++++++++ doc/doc-support/parameters.xml | 14 ++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 doc/doc-support/parameters.xml (limited to 'doc/doc-support') diff --git a/doc/doc-support/default.nix b/doc/doc-support/default.nix index c8be039fa7e..53990b67719 100644 --- a/doc/doc-support/default.nix +++ b/doc/doc-support/default.nix @@ -3,6 +3,26 @@ let locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs; }; functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs; }; version = pkgs.lib.version; + + epub-xsl = pkgs.writeText "epub.xsl" '' + + + + + + ''; + + xhtml-xsl = pkgs.writeText "xhtml.xsl" '' + + + + + + ''; in pkgs.runCommand "doc-support" {} '' mkdir result @@ -13,6 +33,8 @@ in pkgs.runCommand "doc-support" {} ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng ln -s ${pkgs.docbook_xsl_ns}/xml/xsl ./xsl + ln -s ${epub-xsl} ./epub.xsl + ln -s ${xhtml-xsl} ./xhtml.xsl ln -s ${../../nixos/doc/xmlformat.conf} ./xmlformat.conf ln -s ${pkgs.documentation-highlighter} ./highlightjs diff --git a/doc/doc-support/parameters.xml b/doc/doc-support/parameters.xml new file mode 100644 index 00000000000..bc13e2b70de --- /dev/null +++ b/doc/doc-support/parameters.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + -- cgit v1.2.3