Introduction To Sphinx and Read The Docs
Introduction To Sphinx and Read The Docs
Eric Holscher
Pycon PH
February 22 2014
Who am I
• http://localhost:5000/?
n=7d0e494702eae1b108b2245404b84e5b
&theme=nature
Understanding
reStructuredText
Sections
• `This is a link`_
• Generally best to always use back ticks
Hyperlinks
print “wooo”
Inline Markup
• one asterisk: *text* for emphasis
(italics)
• Documentation Generator
• Takes reST files and turns it into
HTML/PDF/etc
project/
docs/
conf.py
index.rst
Makefile
Build your Docs
• .. class:: django.core.views.View
Cross-referencing
• Allows you to reference content in other
documents
• :ref:`python:keywords`
• :doc:`tutorial`
Tons of code-specific
Markup
• :rfc:`1984`
Extensions
• PDF
• Zipped HTML
• ePub
• Man Pages
• Dash Docsets
Good SEO
• There is no step 3
`
Recap
• @ericholscher
• [email protected]
• Come talk to me :)