From: Vladimír Vondruš Date: Wed, 17 Jul 2019 18:46:58 +0000 (+0200) Subject: documentation: add sanity checks for always-defined template variables. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=a89f9979d0304b6a826fb0cd2c1359ec9ff150bc;p=blog.git documentation: add sanity checks for always-defined template variables. --- diff --git a/documentation/templates/doxygen/base.html b/documentation/templates/doxygen/base.html index e06ff8a5..03273ead 100644 --- a/documentation/templates/doxygen/base.html +++ b/documentation/templates/doxygen/base.html @@ -163,3 +163,6 @@ {% endif %} +{#- sanity checks for variables that should be always defined -#} +{% if FILENAME is not defined %}{{ FILENAME.is_not_defined_the_script_is_broken }}{% endif %} +{% if DOXYGEN_VERSION is not defined %}{{ DOXYGEN_VERSION.is_not_defined_the_script_is_broken }}{% endif %} diff --git a/documentation/templates/python/base.html b/documentation/templates/python/base.html index 84f37387..a3dd8198 100644 --- a/documentation/templates/python/base.html +++ b/documentation/templates/python/base.html @@ -155,3 +155,5 @@ {% endif %} +{#- sanity checks for variables that should be always defined -#} +{% if URL is not defined %}{{ URL.is_not_defined_the_script_is_broken }}{% endif %}