[MERGE] Bazaar User Reference

Ian Clatworthy ian.clatworthy at internode.on.net
Mon Aug 6 11:48:51 BST 2007


A patch to generate a "complete" User Reference from online help is
attached. If you're only interested in seeing the end result rather than
the code, a sample output can be found here:
http://people.ubuntu.com/~ianc/doc/bzr_man.htm.

Compared to what I proposed earlier
(https://lists.ubuntu.com/archives/bazaar/2007q3/028509.html), there are
still some important sections missing, particularly Configuration
Settings. That content can come in follow-up patches either done by
myself or anyone else keen to help. The Files section needs some work
when that content is merged as well. (At the moment, it is the same
content as provided in the man page so it's not complete but no worse
than our current doc.)

Quite a few things needed to be tweaked to make this all come together.
The major change was explicitly supporting limited reStructuredText in
topics and command help, particularly literal blocks and field lists. To
ensure that the online help and man page still render correctly, some
very basic rules are applied to the text to remove unwanted reST markup,
namely:

1. A trailing :: is replaced with a single :
2. A leading : (no whitespace before it) is removed.

That does the trick without needing to make docutils a dependency.

Ian C.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doc-user-reference.patch
Type: text/x-patch
Size: 64307 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070806/50b43c1a/attachment-0001.bin 


More information about the bazaar mailing list