]> git.proxmox.com Git - pve-docs.git/commitdiff
switch opt-out NOVIEW to opt-in PVE_DOC_INSTANTVIEW
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Sep 2019 15:13:58 +0000 (17:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Sep 2019 15:24:56 +0000 (17:24 +0200)
As we had to set NOVIEW _everywhere_, which is a good sign that
opt-in is much better suited than opt out.

Especially as one can point the browser or man to the resulting build
documentation html file or manpage once and then hit just reload after
a re-build, which is almost zero effort.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
pve-doc-generator.mk.in

index b373066d3aa1da7f8bd0974dabc513be3d7061fa..6eb2639959050ca49c5f81cf4884a2b44ef67029 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,7 +95,7 @@ README.html: README.adoc
 
 .PHONY: index
 index: index.html
-       $(BROWSER) index.html &
+       test -n "$${PVE_DOC_INSTANTVIEW}" && $(BROWSER) index.html &
 
 chapter-index-table.adoc: asciidoc-pve
        ./asciidoc-pve chapter-table >$@.tmp
index d0be25ae26171f813d62a6491324a6622cf1483c..60737286d6872b61ea602feae242d35bde54101b 100644 (file)
@@ -76,21 +76,21 @@ chapter-%.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
 
 %.1: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
+       test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
 
 %.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.8: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
+       test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
 
 %.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
+       test -n "$${PVE_DOC_INSTANTVIEW}" && man -l $@
 
 %.5.html: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc