Difference between revisions of "Gnome Doc Utils"

From GnuCash
Jump to: navigation, search
(First sketch)
 
m (Overview: add pathes)
Line 19: Line 19:
 
   help        display this help and exit
 
   help        display this help and exit
 
it contains  
 
it contains  
* a bunch of icons and watermarks
+
* in <code>/usr/share/gnome-doc-utils</code> a bunch of icons and watermarks
* help files
+
* in <code>/usr/share/gnome/help/gnome-doc-{make|xslt}</code> help files
* xslts for docbook (gnome2) and mallard (gnome3) sources.
+
* in <code>/usr/share/xml/gnome/xslt</code> xslts for docbook (gnome2) and mallard (gnome3) sources.
  
 
===Devel Package===
 
===Devel Package===
Line 42: Line 42:
 
  You must 'cd' to the top directory of your package before you run
 
  You must 'cd' to the top directory of your package before you run
 
  'gnome-doc-prepare'.
 
  'gnome-doc-prepare'.
* an aclocal/gnome-doc-utils.m4
+
* an <code>/usr/share/aclocal/</code>gnome-doc-utils.m4
* gnome-doc-utils.make, which can be linked or copied
+
* <code>/usr/share/gnome-doc-utils/</code>gnome-doc-utils.make, which can be linked or copied
* a bunch of templates for document.xml, omf-in, make, legal-xml
+
* in <code>/usr/share/gnome-doc-utils</code> a bunch of templates for document.xml, omf-in, make, legal-xml.
 +
 
 
==Plan==
 
==Plan==
 
Merge the templates in our files.
 
Merge the templates in our files.

Revision as of 00:17, 10 February 2017

An early form of the GNOME Documentation Build Utilities seem to have been the base of the Gnucash Documentation. At some point this relation was forgotten and no further updates found their way in our docs.

This page will contain notes while updating.

Overview

Distributions might split them in a runtime and a devel package:

Runtime Package

Beneath the program

> gnome-doc-tool --help
Usage: gnome-doc-tool <COMMAND> [OPTIONS] FILES...
Process a documentation file.

COMMAND is one of:
  list-icons   list automatic icons and watermarks
  list-media   list all referenced media files
  html         convert the documents to HTML
  xhtml        convert the documents to XHTML
  css          create a CSS file for a Mallard document
  help         display this help and exit

it contains

  • in /usr/share/gnome-doc-utils a bunch of icons and watermarks
  • in /usr/share/gnome/help/gnome-doc-{make|xslt} help files
  • in /usr/share/xml/gnome/xslt xslts for docbook (gnome2) and mallard (gnome3) sources.

Devel Package

Beneath the program

> gnome-doc-prepare --help
Usage: gnome-doc-prepare [OPTION]...

Prepare a package to use gnome-doc-utils.

    --automake        work silently, and assume that Automake is in use
-c, --copy            copy files rather than symlinking them
    --new-document DOCUMENT
                      initialize help/DOCUMENT/*
    --debug           enable verbose shell tracing
-n, --dry-run         print commands rather than running them
-f, --force           replace existing files
    --help            display this message and exit
    --version         print version information and exit

You must 'cd' to the top directory of your package before you run
'gnome-doc-prepare'.
  • an /usr/share/aclocal/gnome-doc-utils.m4
  • /usr/share/gnome-doc-utils/gnome-doc-utils.make, which can be linked or copied
  • in /usr/share/gnome-doc-utils a bunch of templates for document.xml, omf-in, make, legal-xml.

Plan

Merge the templates in our files.

Progress

Preparation

  • The --copy option should avoid the dependency?
  • Not shure, if --new-document gnucash-help is required and how to apply it on guide/gnucash-guide
  1. gnome-doc-prepare
 > gnome-doc-prepare -c
 Remember to add 'GNOME_DOC_INIT' to configure.ac.
 You should update your 'aclocal.m4' by running aclocal.
 rm -f gnome-doc-utils.make
 cp -f /usr/share/gnome-doc-utils/gnome-doc-utils.make gnome-doc-utils.make
  1. add 'GNOME_DOC_INIT' to configure.ac
    • Does it require a more complex construction?
    • Is a special place before or after something else required?
  2. ./autogen.sh # will call aclocal
  3. [[md build;] cd build;.]./configue <your options>