lol

Merge pull request #37881 from grahamc/doc/svg-callouts

nixpkgs docs: Use SVGs for callouts

authored by

Graham Christensen and committed by
GitHub
63406fa1 83624b97

+24 -13
+8 -4
doc/Makefile
··· 17 18 out/html/index.html: manual-full.xml style.css 19 mkdir -p out/html 20 - xsltproc $$xsltFlags \ 21 --nonet --xinclude \ 22 --output $@ \ 23 "$$XSL/docbook/xhtml/docbook.xsl" \ 24 ./manual-full.xml 25 26 cp ./style.css out/html/style.css 27 28 mkdir -p out/html/images/callouts 29 - cp "$$XSL/docbook/images/callouts/"*.gif out/html/images/callouts/ 30 chmod u+w -R out/html/images/ 31 32 out/epub/manual.epub: manual-full.xml 33 mkdir -p out/epub/scratch 34 - xsltproc $$xsltFlags --nonet \ 35 --output out/epub/scratch/ \ 36 "$$XSL/docbook/epub/docbook.xsl" \ 37 ./manual-full.xml 38 39 - cp "$$XSL/docbook/images/callouts/"*.gif out/epub/scratch/OEBPS 40 echo "application/epub+zip" > mimetype 41 zip -0Xq "out/epub/manual.epub" mimetype 42 rm mimetype
··· 17 18 out/html/index.html: manual-full.xml style.css 19 mkdir -p out/html 20 + xsltproc ${xsltFlags} \ 21 --nonet --xinclude \ 22 --output $@ \ 23 "$$XSL/docbook/xhtml/docbook.xsl" \ 24 ./manual-full.xml 25 26 + cp ./overrides.css out/html/ 27 cp ./style.css out/html/style.css 28 29 mkdir -p out/html/images/callouts 30 + cp "$$XSL/docbook/images/callouts/"*.svg out/html/images/callouts/ 31 chmod u+w -R out/html/images/ 32 33 out/epub/manual.epub: manual-full.xml 34 mkdir -p out/epub/scratch 35 + xsltproc ${xsltFlags} --nonet \ 36 --output out/epub/scratch/ \ 37 "$$XSL/docbook/epub/docbook.xsl" \ 38 ./manual-full.xml 39 40 + cp ./overrides.css out/epub/scratch/OEBPS 41 + cp ./style.css out/epub/scratch/OEBPS 42 + mkdir -p out/epub/scratch/OEBPS/images/callouts/ 43 + cp "$$XSL/docbook/images/callouts/"*.svg out/epub/scratch/OEBPS/images/callouts/ 44 echo "application/epub+zip" > mimetype 45 zip -0Xq "out/epub/manual.epub" mimetype 46 rm mimetype
+3 -3
doc/default.nix
··· 16 xsltFlags = lib.concatStringsSep " " [ 17 "--param section.autolabel 1" 18 "--param section.label.includes.component.label 1" 19 - "--param html.stylesheet 'style.css'" 20 "--param xref.with.number.and.title 1" 21 "--param toc.section.depth 3" 22 - "--param admon.style ''" 23 - "--param callout.graphics.extension '.gif'" 24 ]; 25 26 postPatch = ''
··· 16 xsltFlags = lib.concatStringsSep " " [ 17 "--param section.autolabel 1" 18 "--param section.label.includes.component.label 1" 19 + "--stringparam html.stylesheet 'style.css overrides.css'" 20 "--param xref.with.number.and.title 1" 21 "--param toc.section.depth 3" 22 + "--stringparam admon.style ''" 23 + "--stringparam callout.graphics.extension .svg" 24 ]; 25 26 postPatch = ''
+8
doc/overrides.css
···
··· 1 + 2 + .programlisting img { 3 + width: 1em; 4 + } 5 + 6 + .calloutlist img { 7 + width: 1.5em; 8 + }
+5 -6
doc/style.css
··· 29 } 30 31 /* Extra space between chapters, appendices. */ 32 - div.chapter > div.titlepage h2, div.appendix > div.titlepage h2 33 - { 34 margin-top: 1.5em; 35 } 36 ··· 118 margin: 0 0 0 0; 119 } 120 121 - 122 /*************************************************************************** 123 Notes, warnings etc: 124 ***************************************************************************/ ··· 172 173 174 /*************************************************************************** 175 - Links colors and highlighting: 176 ***************************************************************************/ 177 178 a { text-decoration: none; } ··· 209 .term 210 { 211 font-weight: bold; 212 - 213 } 214 215 div.variablelist dd p, div.glosslist dd p ··· 252 div.affiliation 253 { 254 font-style: italic; 255 - }
··· 29 } 30 31 /* Extra space between chapters, appendices. */ 32 + div.chapter > div.titlepage h2, div.appendix > div.titlepage h2 33 + { 34 margin-top: 1.5em; 35 } 36 ··· 118 margin: 0 0 0 0; 119 } 120 121 /*************************************************************************** 122 Notes, warnings etc: 123 ***************************************************************************/ ··· 171 172 173 /*************************************************************************** 174 + Links colors and highlighting: 175 ***************************************************************************/ 176 177 a { text-decoration: none; } ··· 208 .term 209 { 210 font-weight: bold; 211 + 212 } 213 214 div.variablelist dd p, div.glosslist dd p ··· 251 div.affiliation 252 { 253 font-style: italic; 254 + }