Appendix C now contains the full CNCL 1.0 text, exactly as it is in LICENSE (line-wrapped for the page), and the preface has a long section that explains what the licence says, what it does not cover (NetBSD's BSD licence, CDE/MCDE's LGPL, pkgsrc packages, Hack, DocBook) and why Makronix uses a licence this short. The same pass corrects the MCDE help claim: the cross-built MCDE package has no help pages (options.mk turns docs off), so the Information Manager holds this guide and no program help books. Rebuilt all five forms: 67-page PDF, HTML, 27 manual pages, the dtinfo library and www/guide.html. check.sh green, test-tools 33 ok, 0 bad.
2.9 KiB
docs/guide -- The Makronix Guide
What it is for
The source of the Makronix Guide and the five forms it is installed in: manual pages, PDF, one HTML file and an MCDE information library. The text follows the structure of The NetBSD Guide and describes Makronix 0.99.10 (Camouflage).
What is in it
book.xml-- the book, with one XInclude per chapter.chapters.list-- the manifest: id, title, man-page suffix and source file. The build reads it; keep it in step withbook.xmland the chapter files.chapters/*.xml-- the text, one chapter per file, DocBook XML 4.5.template.html5andstyle.css-- the HTML and print form. The colours are the Camouflage palette (the same aswww/style.css), and the logo isdocs/logo/makronix.png.template-web.html-- the same text as a page ofwww/(HTML 4.01 Strict, the site's window andstyle.css).tools/docbook-to-cde.lua-- the writer that turns the DocBook XML into the older DocBook SGML that MCDE'sdtdocbook2infolibreads.build.sh-- the build:all,html,pdf,web,man,infolib,checkandinstall.out/-- the generated forms (not tracked).
How to build
sh docs/guide/build.sh all # all five forms in out/
sh docs/guide/build.sh web # the website page, www/guide.html after install
sh docs/guide/build.sh check # every form exists, PDF has pages, man renders
sh docs/guide/build.sh install # copy into src/ and www/ for the release
It needs pandoc, xmllint, mandoc, base64 and Google Chrome (for the
PDF). The information library needs a host build of MCDE
(make mcde-host), which provides build/mcde-root/dt/bin/dtdocbook2infolib.
build.sh install writes the forms into the tree:
src/share/doc/makronix/makronix-guide.html,.pdfandinfolib/makronix.dti/(base set,base-sys-share);src/share/man/man7/makronix-guide*.7(base set,man-reference-man);www/guide.html(the website page, generated from the same source);src/etc/makronix-xsession(installed as/etc/dt/config/Xsession.d/0000makronix), and the symlinks under/etc/dt/infolibthatsrc/etc/Makefilemakes.
The copy of the guide in out/ and the copy in src/ must be the same; the
build's install verb is the only way the second one changes.
What may be changed
The text, the chapter manifest, the template, the stylesheet and the build.
A new chapter needs a line in chapters.list, a file in chapters/, an
XInclude in book.xml, a MAN+= line in src/share/man/man7/Makefile and
its entries in the set lists. Rebuild and install; do not edit the generated
formats by hand.
What must not be touched
- The generated files in
src/: they are output, not source. - The logo (
docs/logo/); the guide only embeds it. - The NetBSD Guide attribution in Appendix C; the general NetBSD procedures come from it.