about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-03-26 14:45:00 -0400
committerGraham Christensen <graham@grahamc.com>2018-03-26 14:45:00 -0400
commitda17974541af182f86bd98e992f1c25987adac55 (patch)
tree8eb4b9a15ac01dbf45c481765e57569162ce36a7 /doc
parenta80856cec5811b9eb7778b157e5ea943db26e74b (diff)
Move the overridden CSS to overrides.css which can be applied on nixos.org
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile2
-rw-r--r--doc/default.nix2
-rw-r--r--doc/overrides.css8
-rw-r--r--doc/style.css9
4 files changed, 11 insertions, 10 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 714a2a3e27325..b76ea9ed59e49 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -23,6 +23,7 @@ out/html/index.html: manual-full.xml style.css
 		"$$XSL/docbook/xhtml/docbook.xsl" \
 		./manual-full.xml
 
+	cp ./overrides.css out/html/
 	cp ./style.css out/html/style.css
 
 	mkdir -p out/html/images/callouts
@@ -36,6 +37,7 @@ out/epub/manual.epub: manual-full.xml
 		"$$XSL/docbook/epub/docbook.xsl" \
 		./manual-full.xml
 
+	cp ./overrides.css out/epub/scratch/OEBPS
 	cp ./style.css out/epub/scratch/OEBPS
 	mkdir -p out/epub/scratch/OEBPS/images/callouts/
 	cp "$$XSL/docbook/images/callouts/"*.svg out/epub/scratch/OEBPS/images/callouts/
diff --git a/doc/default.nix b/doc/default.nix
index a8f0e935bae5e..6f9804417ade1 100644
--- a/doc/default.nix
+++ b/doc/default.nix
@@ -16,7 +16,7 @@ pkgs.stdenv.mkDerivation {
   xsltFlags = lib.concatStringsSep " " [
     "--param section.autolabel 1"
     "--param section.label.includes.component.label 1"
-    "--stringparam html.stylesheet 'style.css'"
+    "--stringparam html.stylesheet 'style.css overrides.css'"
     "--param xref.with.number.and.title 1"
     "--param toc.section.depth 3"
     "--stringparam admon.style ''"
diff --git a/doc/overrides.css b/doc/overrides.css
new file mode 100644
index 0000000000000..dd11eab82a8ad
--- /dev/null
+++ b/doc/overrides.css
@@ -0,0 +1,8 @@
+
+.programlisting img {
+    width: 1em;
+}
+
+.calloutlist img {
+    width: 1.5em;
+}
diff --git a/doc/style.css b/doc/style.css
index fe38986c1184d..23cbdff389152 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -118,15 +118,6 @@ div.example pre.programlisting
     margin: 0 0 0 0;
 }
 
-.programlisting img {
-    width: 1em;
-}
-
-
-.calloutlist img {
-    width: 1.5em;
-}
-
 /***************************************************************************
                                Notes, warnings etc:
  ***************************************************************************/