[MERGE] Pretty docs with Kid
Aaron Bentley
aaron.bentley at utoronto.ca
Fri Sep 29 21:19:14 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I've just implemented a way of generating output that matches the wiki.
It works by taking the docutils HTML output and running it through a Kid
template. Sample output is here:
http://code.aaronbentley.com/configuration.html
Kid templates can be XHTML, and so the kid template for this output
looks like the front page of the wiki, when viewed directly in a browser.
Post-processing is done to
1. turn local links to 'foo.htm' into links to 'foo.html'. This allows
the pretty pages to coexist with the normal pages
2. strip anchor tags, because the bazaar-vcs.org stylesheet is broken
and treats all <a> tags as links, even when they're <a name='foo>foo</a>.
3. remove some inappropriate links
4. change the 'Search Bazaar' box to 'Search Wiki'.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFFHX/C0F+nu1YWqI0RAs5EAJ9nNQNjw3QtO/NL2JZDHWKGFwXdPgCfWCp4
anmaFmnOXjVk+rJIFV4e9No=
=rSLR
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kid-docs.patch
Type: text/x-patch
Size: 112528 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060929/1ad73d78/attachment.bin
More information about the bazaar
mailing list