1 = Steps to build AsciiDoc version of Sitka's documentation =
3 I have included a snapshot of an Asciidoc version of Sitka's documentation in
4 `docs/one_big_sitka.adoc`.
6 This is not perfect by any means but should get us at least towards reasonable
9 . Install `pandoc` - this tool can convert from one format (such as DocBook) to
10 another (such as AsciiDoc).
12 . Clone the Sitka docs repository:
15 --------------------------------------------------------------------------------
16 git clone git://git.sitka.bclibraries.ca/sitka/doc/manual.git sitka
17 --------------------------------------------------------------------------------
19 . Change into the Sitka docs directory you just created:
22 --------------------------------------------------------------------------------
24 --------------------------------------------------------------------------------
26 . Merge the separate DocBook XML files into one big XML file:
29 --------------------------------------------------------------------------------
30 xmllint --xinclude --output one_big_file.xml root.xml
31 --------------------------------------------------------------------------------
33 . Convert the one big DocBook XML file into one big AsciiDoc file:
36 --------------------------------------------------------------------------------
37 pandoc -f docbook -s one_big_sitka.xml -t asciidoc -o one_big_sitka.adoc
38 --------------------------------------------------------------------------------
40 . Run AsciiDoc against it to generate some HTML. There might be some errors
41 that you need to fix manually, such as lines starting with:
44 --------------------------------------------------------------------------------
46 --------------------------------------------------------------------------------
48 that you need to prefix with a pipe:
51 --------------------------------------------------------------------------------
53 --------------------------------------------------------------------------------