]> git.proxmox.com Git - proxmox-backup.git/commitdiff
docs: move todolist to own document, don't link in release build
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Jul 2020 12:40:58 +0000 (14:40 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Jul 2020 12:44:53 +0000 (14:44 +0200)
It is always build for html, but not linked if the devbuild tag isn't
set. This tag is set in the Makefile if the $(BUILD_MODE) variable
isn't "release".

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
docs/Makefile
docs/index.rst

index d7682e549fff82edfa6ef7095ed7a8d9e6f3032c..34ec8809e66fe323754b435aa19aa4082c593249 100644 (file)
@@ -1,11 +1,5 @@
 include ../defines.mk
 
-ifeq ($(BUILD_MODE), release)
-COMPILEDIR := ../target/release
-else
-COMPILEDIR := ../target/debug
-endif
-
 GENERATED_SYNOPSIS :=                                          \
        proxmox-backup-client/synopsis.rst                      \
        proxmox-backup-client/catalog-shell-synopsis.rst        \
@@ -26,6 +20,15 @@ SPHINXOPTS    =
 SPHINXBUILD   = sphinx-build
 BUILDDIR      = output
 
+ifeq ($(BUILD_MODE), release)
+COMPILEDIR := ../target/release
+SPHINXOPTS    += -t release
+else
+COMPILEDIR := ../target/debug
+SPHINXOPTS    += -t devbuild
+endif
+
+
 # Sphinx internal variables.
 ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) .
 
index 57229948080251bf62a6df88fcffa37207081469..61c44a988b70953a70d4702c7363d4a43b2d6f88 100644 (file)
@@ -11,8 +11,6 @@ published by the Free Software Foundation; with no Invariant Sections, no
 Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included
 in the section entitled "GNU Free Documentation License".
 
-.. todolist::
-
 
 .. toctree::
    :maxdepth: 3
@@ -36,5 +34,14 @@ in the section entitled "GNU Free Documentation License".
    glossary.rst
    GFDL.rst
 
+.. only:: html and devbuild
+
+    .. toctree::
+       :maxdepth: 2
+       :caption: Developer Appendix
+
+       todos.rst
+
+
 * :ref:`genindex`