The actual REIMU manual is here.
Build documentation is here.
Integration documentation is here.
*-git.conf ───────────────┐ vars
├──────► reimu.md, reimu-BUILD.md, reimu-INTEGRATION.md
┌────┘
*.template.md ───────┤
└────┐ vars, links pandoc unzip, styles zip mv
├─────────────► *.espd.md ────────► *.espd.intermediate.odt ───────────────► workdir/ ─────► *.espd.odt ────► result-*.*/
┌────┘
*-espd.conf.* ───────┤
└────┐ vars zip mv
unzip ├──────► workdir/ ─────► root.odm ────► result-*.*/
*-root.template.odm ──────┘
Build stages:
vars
: substitute variables defined in.conf
fileslinks
: remove linkspandoc
: convert.md
to.odt
unzip
: unzip.odt
to directory containing.xml
filesstyles
: alter list styleszip
: zip directory containing.xml
files back to.odt
mv
: move resulting.odt
and.odm
files to output directory
Source files:
{reimu,build,integration}.template.md
: The source of documentation in Markdown format, including places for variable substitution{reimu,build}-root.template.odm
: Template of master ODF document, including title, ToC, and changelog pages{reimu,build,integration}-git.conf
: Variables for Markdown documentation{reimu,build}-espd.conf.*
: Variables for ESPD ODF documentation (*
is306
,308
, anddacn
for several output configurations)
Created files:
reimu.md
: Markdown documentation on usagereimu-BUILD.md
: Markdown documentation on buildreimu-INTEGRATION.md
: Markdown documentation on integrationresult-manual.*/root.odm
: Master document of ESPD ODF documentation on usage (*
is306
,308
, anddacn
)result-manual.*/reimu.espd.odt
: Slave document of ESPD ODF documentation on usage (*
is306
,308
, anddacn
)result-build.*/root.odm
: Master document of ESPD ODF documentation on build (*
is306
,308
, anddacn
)result-build.*/build.espd.odt
: Slave document of ESPD ODF documentation on build (*
is306
,308
, anddacn
)
Just run ./build
.
You may run ./clean
to get rid of everything created during build.
Prerequisites:
sed
pandoc
zip
,unzip
xmlstarlet
After you created the ODF documentation, you should do the following:
- Open the master document
- Update ToC
- Export file to ODF
- Open resulting ODF
- Break links as specified here
- Save resulting ODF
You may edit *-git.conf
and *-espd.conf.*
to specify some significant variables.
Variables related to document contents:
DN
: ESPD decimal number of product (has sense for*-espd.conf.*
only)NAME1
: First line of full product nameNAME2
: Second line of full product nameNAMEOF
: Full product name in genitive case (has sense for*-espd.conf.*
only)DESIGNEDTO
: a literal spelling of word "designed to"
Variables related to pipeline:
INPUTFILE
: Input Markdown template file nameROOTTEMPLATE
: Input master template file name (has sense for*-espd.conf.*
only)MARKDOWNFILE
: Markdown slave document intermediate file name (has sense for*-espd.conf.*
only)INTERMEDIATE
: OpenDocument slave document intermediate file name (has sense for*-espd.conf.*
only)OUTPUTDATAFILE
: Resulting slave document file name (has sense for*-espd.conf.*
only)OUTPUTROOTFILE
: Resulting master document file name (has sense for*-espd.conf.*
only)OUTPUTDIR
: Directory for resulting files (has sense for*-espd.conf.*
only)OUTPUTFILE
: Resulting file name (has sense for*-git.conf.*
only)