From aa975b4728c050e00034b579afd137a49f0642bf Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 26 Apr 2018 22:23:47 -0500 Subject: Add Porting Guide to Makefile, and fix XML issues --- Makefile | 14 +++++++++++++- src/porting/3_native.xml | 1 + src/porting/4_submit.xml | 1 + src/porting/5_help.xml | 1 + src/porting/portguide.xml | 2 +- src/pretty.css | 22 ++++++++++++++++++++++ 6 files changed, 39 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 09ff77c..2edb1a0 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ .POSIX: all: out/html/devel/index.html out/text/develguide.txt \ - out/html/install/index.html out/text/installguide.txt + out/html/install/index.html out/text/installguide.txt \ + out/html/porting/index.html out/text/portguide.txt out/text/develguide.txt: src/devel/*.xml @mkdir -p out/text @@ -25,6 +26,17 @@ out/html/install/index.html: src/install/*.xml src/pretty.css @xmlto html -m master.xsl -o out/html/install src/install/installguide.xml @cp src/pretty.css out/html/install/ +out/text/portguide.txt: src/porting/*.xml + @mkdir -p out/text + @printf 'Porting Guide: Generating text...\n' + @xmlto txt -o out/text src/porting/portguide.xml + +out/html/porting/index.html: src/porting/*.xml src/pretty.css + @mkdir -p out/html/porting + @printf 'Porting Guide: Generating HTML...\n' + @xmlto html -m master.xsl -o out/html/porting src/porting/portguide.xml + @cp src/pretty.css out/html/porting/ + install: @mkdir -p "${DESTDIR}"/usr/share/doc/adelie-handbook/ @cp -r out/* "${DESTDIR}"/usr/share/doc/adelie-handbook/ diff --git a/src/porting/3_native.xml b/src/porting/3_native.xml index 6ca6fb9..9fed5bc 100644 --- a/src/porting/3_native.xml +++ b/src/porting/3_native.xml @@ -1,4 +1,5 @@ Native Hardware Phase + diff --git a/src/porting/4_submit.xml b/src/porting/4_submit.xml index 8ce3815..2376aba 100644 --- a/src/porting/4_submit.xml +++ b/src/porting/4_submit.xml @@ -1,4 +1,5 @@ Submitting Your Port to Adélie Linux + diff --git a/src/porting/5_help.xml b/src/porting/5_help.xml index 899bb73..29552fd 100644 --- a/src/porting/5_help.xml +++ b/src/porting/5_help.xml @@ -1,4 +1,5 @@ If You Need Help + diff --git a/src/porting/portguide.xml b/src/porting/portguide.xml index 8bbbb1d..255c411 100644 --- a/src/porting/portguide.xml +++ b/src/porting/portguide.xml @@ -18,7 +18,7 @@ A copy of this license is included with the source of the documentation. It is also available on the Web on the Creative Commons Web site. - This guide details how to port the Adélie Linux distribution to a new computer system. + This guide details how to port the Adélie Linux distribution to a new computer system. Preface diff --git a/src/pretty.css b/src/pretty.css index 95b4cd9..0431ade 100644 --- a/src/pretty.css +++ b/src/pretty.css @@ -1,3 +1,25 @@ body { font-family: 'Liberation Sans',sans-serif; } + +.command { + font-family: 'Liberation Mono',monospace; + font-size: 14px; +} + +/* normalise size with command */ +code { + font-size: 14px; +} + +.userinput { + font-style: italic; +} + +code.prompt { + color: green; +} + +em.parameter { + font-style: normal; +} -- cgit v1.2.3-70-g09d2