Moving from Publican to Read The Docs
- 8. Publican is a build tool for documentation
written in DocBook format
“DocBook is a XML schema suited for Books
and papers”
- 9. But has issues…
540 DocBook files
43173 lines of XML
Processing file tmp/en-US/xml_tmp/xenserver-topology-
req.xml -> tmp/en-US/xml/xenserver-topology-req.xml
Processing file tmp/en-US/xml_tmp/zone-add.xml ->
tmp/en-US/xml/zone-add.xml
Beginning work on en-US
FATAL ERROR: XInclude:1604 in secondary-storage-add.xml on
line 227: could not load s3-ss-add.xml, and no fallback was
found
at /opt/local/libexec/perl5.12/sitebin/publican line 895
- 12. Other issues
• Localization / Internationalization / i18n
support ( sometimes difficult builds)
• Web site hosting
• Publican is written in perl
• Turn-off for new writers
- 16. Life Saver = pandoc
$ pandoc --help
pandoc [OPTIONS] [FILES]
Input formats: native, json, markdown, markdown_strict, markdown_phpextra,
markdown_github, markdown_mmd, rst, mediawiki, docbook, textile,html,
latex
Output formats: native, json, docx, odt, epub, epub3, fb2, html, html5, s5,
slidy, slideous, dzslides, docbook, opendocument, latex,
beamer,context, texinfo, man, markdown, markdown_strict,
markdown_phpextra, markdown_github, markdown_mmd, plain,rst,mediawiki, textile, rtf,
org, asciidoc
Options:
-f FORMAT, -r FORMAT --from=FORMAT, --read=FORMAT
-t FORMAT, -w FORMAT --to=FORMAT, --write=FORMAT
-o FILENAME --output=FILENAME
--data-dir=DIRECTORY
- 17. HTML to RST
Publican build:
$ publican build --formats=html-single --
langs=en-US --config=publican-
installation.cfg
$ pandoc –f html –t rst –o guide.rst
guide.html
- 20. Build for RST projects
Sphinx
$sphinx-quickstart
Drop in your .rst files and build
$make html
- 34. • Easy to contribute to
• Looking great
• Localization support
• Automated build
• Remote hosting
- 37. Get Involved with Apache
CloudStack
Web: http://cloudstack.apache.org/
Mailing Lists: cloudstack.apache.org/mailing-lists.html
IRC: irc.freenode.net: 6667 #cloudstack #cloudstack-dev
Twitter: @cloudstack
LinkedIn: www.linkedin.com/groups/CloudStack-Users-Group-3144859
If it didn’t happen on the mailing list, it didn’t happen.