+ All Categories
Home > Technology > Moving from Publican to Read The Docs

Moving from Publican to Read The Docs

Date post: 06-May-2015
Category:
Upload: sebastien-goasguen
View: 2,009 times
Download: 1 times
Share this document with a friend
37
Sebastien Goasguen, @sebgoa Going from Publican to Sphinx and RTD
Transcript
Page 1: Moving from Publican to Read The Docs

Sebastien Goasguen,

@sebgoa

Going from Publican to Sphinx and RTD

Page 2: Moving from Publican to Read The Docs

IaaS Landscape

Page 3: Moving from Publican to Read The Docs
Page 4: Moving from Publican to Read The Docs

Going From Publican to ReadTheDocs

Page 5: Moving from Publican to Read The Docs
Page 6: Moving from Publican to Read The Docs

Insert Presentation Title Here

Page 7: Moving from Publican to Read The Docs

DocBook is great !

Page 8: Moving from Publican to Read The Docs

Publican is a build tool for documentation written in DocBook format

“DocBook is a XML schema suited for Books and papers”

Page 9: Moving from Publican to Read The Docs

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.xmlBeginning work on en-USFATAL 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

Page 10: Moving from Publican to Read The Docs
Page 11: Moving from Publican to Read The Docs
Page 12: Moving from Publican to Read The Docs

Other issues

• Localization / Internationalization / i18n support ( sometimes difficult builds)

• Web site hosting

• Publican is written in perl

• Turn-off for new writers

Page 13: Moving from Publican to Read The Docs

Drag picture to placeholder or click icon to add

Conversion

From Publican to ReadTheDocs

Page 14: Moving from Publican to Read The Docs

Devs love Git/Github

Page 15: Moving from Publican to Read The Docs

Back to basics

“reStructuredText is an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser system”

…and I write Python

Page 16: Moving from Publican to Read The Docs

Life Saver = pandoc$ pandoc --helppandoc [OPTIONS] [FILES]Input formats: native, json, markdown, markdown_strict, markdown_phpextra, markdown_github, markdown_mmd, rst, mediawiki, docbook,

textile,html, latexOutput 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

Page 17: Moving from Publican to Read The Docs

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

Page 18: Moving from Publican to Read The Docs

Gotchas

• Table of Content headings

• Table format

• Code snippets

• References

Page 19: Moving from Publican to Read The Docs

Drag picture to placeholder or click icon to add

Build and Host

Page 20: Moving from Publican to Read The Docs

Build for RST projects

Sphinx

$sphinx-quickstart

Drop in your .rst files and build

$make html

Page 21: Moving from Publican to Read The Docs

Read The Docs

Page 22: Moving from Publican to Read The Docs

Drag picture to placeholder or click icon to add

GitHub Integration

From Publican to ReadTheDocs

Page 23: Moving from Publican to Read The Docs

Increasing Contributions

Page 24: Moving from Publican to Read The Docs

Seamless integration of RTD with GitHub

Page 25: Moving from Publican to Read The Docs

Activate Service Hooks

Page 26: Moving from Publican to Read The Docs

Drive-By Contributions…

Page 27: Moving from Publican to Read The Docs

Drag picture to placeholder or click icon to add

i18n

Page 28: Moving from Publican to Read The Docs

README

Page 29: Moving from Publican to Read The Docs

Publican i18n

Great support for localization

Integrates with Transifex workflow

Page 30: Moving from Publican to Read The Docs
Page 31: Moving from Publican to Read The Docs

See Marcus’s talk

Page 32: Moving from Publican to Read The Docs

Early Results

Page 33: Moving from Publican to Read The Docs

Drag picture to placeholder or click icon to add

Conclusions

Page 34: Moving from Publican to Read The Docs

• Easy to contribute to • Looking great• Localization support• Automated build• Remote hosting

Page 35: Moving from Publican to Read The Docs

Drag picture to placeholder or click icon to add

Almost Done

Page 36: Moving from Publican to Read The Docs

EventsCloudStack Collaboration Conference:

Vegas, Santa-Clara, Amsterdam

Denver April 9-11th

Rumors of ApacheCon EU in BUDAPEST !!!

Contributing to Apache CloudStack

Page 37: Moving from Publican to Read The Docs

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.


Recommended