From 0a2fe01e1a935158a73d2eca6f7dfa139dc45315 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sun, 3 Jun 2018 14:00:32 +0200 Subject: [PATCH] Download documentation as PDF --- Makefile | 5 +++++ esphomeyaml/index.rst | 2 ++ index.rst | 13 ++----------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 6e90798f1..15bce0f8e 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/esphomeyaml/index.rst b/esphomeyaml/index.rst index a866c87b7..cb3882057 100644 --- a/esphomeyaml/index.rst +++ b/esphomeyaml/index.rst @@ -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 `. +`Download the documentation as a PDF `__ + .. toctree:: :hidden: diff --git a/index.rst b/index.rst index f0f0a4a40..89547ac37 100644 --- a/index.rst +++ b/index.rst @@ -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 - Indices and tables ================== .. toctree:: - :hidden: - api/index - web-api/index esphomeyaml/index + web-api/index + api/index * :ref:`genindex` * :ref:`search`