|
|
@@ -5,6 +5,14 @@
|
|
|
# NOTE: This makefile runs with cwd=either en or zh_CN subfolder, so this
|
|
|
# (docs/) directory is '..' relative to it.
|
|
|
|
|
|
+# ************ IMPORTANT *****************
|
|
|
+#
|
|
|
+# ReadTheDocs DOES NOT USE THIS MAKEFILE,
|
|
|
+# so any behaviour additions must be
|
|
|
+# done via Sphinx Config not here
|
|
|
+#
|
|
|
+# ****************************************
|
|
|
+
|
|
|
# You can set these variables from the command line.
|
|
|
SPHINXOPTS =
|
|
|
SPHINXBUILD = sphinx-build
|
|
|
@@ -53,41 +61,38 @@ help:
|
|
|
clean:
|
|
|
rm -rf $(BUILDDIR)/*
|
|
|
|
|
|
-# Add any dependencies for Sphinx code generation here
|
|
|
-dependencies: version-specific-includes
|
|
|
-
|
|
|
-html: dependencies
|
|
|
+html:
|
|
|
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
|
|
@echo
|
|
|
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
|
|
|
|
|
-dirhtml: dependencies
|
|
|
+dirhtml:
|
|
|
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
|
|
@echo
|
|
|
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
|
|
|
|
|
-singlehtml: dependencies
|
|
|
+singlehtml:
|
|
|
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
|
|
@echo
|
|
|
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
|
|
|
|
|
-pickle: dependencies
|
|
|
+pickle:
|
|
|
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
|
|
@echo
|
|
|
@echo "Build finished; now you can process the pickle files."
|
|
|
|
|
|
-json: dependencies
|
|
|
+json:
|
|
|
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
|
|
@echo
|
|
|
@echo "Build finished; now you can process the JSON files."
|
|
|
|
|
|
-htmlhelp: dependencies
|
|
|
+htmlhelp:
|
|
|
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
|
|
@echo
|
|
|
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
|
|
".hhp project file in $(BUILDDIR)/htmlhelp."
|
|
|
|
|
|
-qthelp: dependencies
|
|
|
+qthelp:
|
|
|
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
|
|
@echo
|
|
|
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
|
|
@@ -96,7 +101,7 @@ qthelp: dependencies
|
|
|
@echo "To view the help file:"
|
|
|
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/ReadtheDocsTemplate.qhc"
|
|
|
|
|
|
-devhelp: dependencies
|
|
|
+devhelp:
|
|
|
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
|
|
@echo
|
|
|
@echo "Build finished."
|
|
|
@@ -105,70 +110,70 @@ devhelp: dependencies
|
|
|
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/ReadtheDocsTemplate"
|
|
|
@echo "# devhelp"
|
|
|
|
|
|
-epub: dependencies
|
|
|
+epub:
|
|
|
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
|
|
@echo
|
|
|
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
|
|
|
|
|
-latex: dependencies
|
|
|
+latex:
|
|
|
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
|
@echo
|
|
|
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
|
|
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
|
|
"(use \`make latexpdf' here to do that automatically)."
|
|
|
|
|
|
-latexpdf: dependencies
|
|
|
+latexpdf:
|
|
|
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
|
@echo "Running LaTeX files through pdflatex..."
|
|
|
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
|
|
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
|
|
|
|
-latexpdfja: dependencies
|
|
|
+latexpdfja:
|
|
|
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
|
@echo "Running LaTeX files through platex and dvipdfmx..."
|
|
|
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
|
|
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
|
|
|
|
-text: dependencies
|
|
|
+text:
|
|
|
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
|
|
@echo
|
|
|
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
|
|
|
|
|
-man: dependencies
|
|
|
+man:
|
|
|
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
|
|
@echo
|
|
|
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
|
|
|
|
|
-texinfo: dependencies
|
|
|
+texinfo:
|
|
|
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
|
@echo
|
|
|
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
|
|
@echo "Run \`make' in that directory to run these through makeinfo" \
|
|
|
"(use \`make info' here to do that automatically)."
|
|
|
|
|
|
-info: dependencies
|
|
|
+info:
|
|
|
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
|
@echo "Running Texinfo files through makeinfo..."
|
|
|
make -C $(BUILDDIR)/texinfo info
|
|
|
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
|
|
|
|
|
-gettext: dependencies
|
|
|
+gettext:
|
|
|
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
|
|
@echo
|
|
|
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
|
|
|
|
|
-changes: dependencies
|
|
|
+changes:
|
|
|
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
|
|
@echo
|
|
|
@echo "The overview file is in $(BUILDDIR)/changes."
|
|
|
|
|
|
-linkcheck: dependencies
|
|
|
+linkcheck:
|
|
|
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
|
|
@echo
|
|
|
@echo "Link check complete; look for any errors in the above output " \
|
|
|
"or in $(BUILDDIR)/linkcheck/output.txt."
|
|
|
|
|
|
-gh-linkcheck: dependencies
|
|
|
+gh-linkcheck:
|
|
|
@echo "Checking for hardcoded GitHub links"
|
|
|
@if (find ../ -name '*.rst' | xargs grep \
|
|
|
'https://github.com/espressif/esp-idf/tree\|https://github.com/espressif/esp-idf/blob\|https://github.com/espressif/esp-idf/raw'\
|
|
|
@@ -192,21 +197,17 @@ gh-linkcheck: dependencies
|
|
|
fi
|
|
|
@echo "No hardcoded links found"
|
|
|
|
|
|
-doctest: dependencies
|
|
|
+doctest:
|
|
|
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
|
|
@echo "Testing of doctests in the sources finished, look at the " \
|
|
|
"results in $(BUILDDIR)/doctest/output.txt."
|
|
|
|
|
|
-xml: dependencies
|
|
|
+xml:
|
|
|
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
|
|
@echo
|
|
|
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
|
|
|
|
|
-pseudoxml: dependencies
|
|
|
+pseudoxml:
|
|
|
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
|
|
@echo
|
|
|
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
|
|
-
|
|
|
-version-specific-includes:
|
|
|
- mkdir -p $(BUILDDIR)/inc
|
|
|
- ../gen-version-specific-includes.py $(LANGUAGE) $(BUILDDIR)/inc
|