This gist is a template for starting with sphinx documenation
It has a docker container for easy deployment. It integrates with dash.app using doc2dash and creates a feed so you can keep local docs up to date
Things you need to do:
- install requirements
pip install -r requirements.txt
- run
sphinx-quickstart
to get you set up - edit the dockerfile (
DOCS_NAME
,DOCS_SOURCE
,DOCS_REMOTE
need changing)
I assume your compiled docs have an index.html at the root
Give things a test! build & run the container. it exposes port 80
there should be a dash feed at /dash_feed.xml
and it should link to a tarball of your dash docs
you can install your docs in dash by opening a uri like:
dash-feed://http%3A%2F%2Fyoursite.com%2Fdash_feed.xml
(you can link to it from within your docs to make it easier)
dash should detect updates when you re-deploy your docs
References:
- sphinx: http://sphinx-doc.org/index.html
- dash app: https://kapeli.com/dash
- doc2dash: https://doc2dash.readthedocs.org/en/2.0.2/index.html
- about docset feeds: https://kapeli.com/docsets#dashdocsetfeed