Download documentation as PDF

This commit is contained in:
Otto Winter 2018-06-03 14:00:32 +02:00
parent d417d528ca
commit 0a2fe01e1a
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
3 changed files with 9 additions and 11 deletions

View File

@ -27,6 +27,11 @@ deploy: cleanhtml doxyg html minifyhtml
cd "$(BUILDDIR)/html" && git add --all && git commit -m "Deploy to gh-pages"
@printf "Run \033[0;36mcd $(BUILDDIR)/html && git push origin gh-pages\033[0m to deploy\n"
deploypdf: html
-yes '' | make latexpdf
cp $(BUILDDIR)/latex/$(SPHINXPROJ).pdf $(BUILDDIR)/html/_static/esphomelib.pdf
make deploy
help:
$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

View File

@ -527,6 +527,8 @@ This list contains items that are technically already supported by other compone
Do you have other awesome automations or 2nd order components? Please feel free to add them to the
documentation for others to copy. See :doc:`Contributing <guides/contributing>`.
`Download the documentation as a PDF </_static/esphomelib.pdf>`__
.. toctree::
:hidden:

View File

@ -19,23 +19,14 @@ See `Web Server API`_ for documentation of the web server REST API.
.. _Web Server API: /web-api/index.html
API Reference
-------------
.. toctree::
:maxdepth: 2
API Reference <api/index>
Indices and tables
==================
.. toctree::
:hidden:
api/index
web-api/index
esphomeyaml/index
web-api/index
api/index
* :ref:`genindex`
* :ref:`search`