Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to webmaster@scons.org.
Differences between revisions 17 and 18
Revision 17 as of 2012-07-16 01:13:10
Size: 1988
Comment:
Revision 18 as of 2012-08-12 17:16:24
Size: 2164
Comment: added man2html and rpm
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
 * man2html
Line 29: Line 30:
  {{{apt-get install python-epydoc jade openjade texinfo texlive-latex-extra jadetex docbook docbook-dsssl docbook-to-man docbook-utils docbook-xml docbook-xsl docbook2x}}}   {{{apt-get install python-epydoc jade openjade texinfo texlive-latex-extra jadetex docbook docbook-dsssl docbook-to-man docbook-utils docbook-xml docbook-xsl docbook2x man2html}}}
Line 31: Line 32:

Not strictly doc-related, but if you're doing release builds, you also need rpm if you're on a non-RedHat/CentOS machine:
  {{{apt-get install rpm}}}

This page is a work in progress; see the discussion page for points to ponder.

Documentation sources for Docbook are maintained in doc/*/*.xml files. For the ones that require preprocessing to insert examples, the primary source files are doc/*/*.in. We have our own preprocessing stage to update and insert examples into XML sources before they are processed.

List of tools you'll need to build documentation

These package names can be passed directly to 'apt-get install' for Ubuntu or Debian.

  • python-epydoc
  • jade
  • openjade
  • tetex-bin
  • tetex-latex
  • texlive-latex-extra
  • jadetex ?
  • docbook
  • docbook-doc
  • docbook-dsssl
  • docbook-to-man
  • docbook-utils
  • docbook-xml
  • docbook-xsl
  • docbook2x
  • man2html

[GaryOberbrunner 15-Jul-12] As of Ubuntu 10.04, some of the above pkgs don't exist. These do:

  • apt-get install python-epydoc jade openjade texinfo texlive-latex-extra jadetex docbook docbook-dsssl docbook-to-man docbook-utils docbook-xml docbook-xsl docbook2x man2html

and the doc seems to build OK with those packages (and their dependencies).

Not strictly doc-related, but if you're doing release builds, you also need rpm if you're on a non-RedHat/CentOS machine:

  • apt-get install rpm

Steps to update or add content to the User Guide

  1. Edit the doc/user/file.in
  2. python bin/scons-doc.py --diff file
  3. Review the diffs introduced by your changes, and proceed if they look correct
  4. python bin/scons-doc.py --update file
  5. python bootstrap.py doc
  6. Review the generated documents in build/doc/html/scons-user.html (and .ps and .pdf)
  7. Submit patch for review

Future work

  1. Make documentation building process cross-platform
  2. Cut the amount of tools and dependencies (preferably to Python modules)

Behind the curtain

The following image depicts the single steps of a full build for the documentation. The first (and zeroth) column shows the required tools (= dependencies) for each section (= second column).

doc_single_run.png

DeveloperGuide/Documentation (last edited 2012-08-12 17:16:24 by GaryOberbrunner)