From a89f9979d0304b6a826fb0cd2c1359ec9ff150bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 17 Jul 2019 20:46:58 +0200 Subject: [PATCH] documentation: add sanity checks for always-defined template variables. --- documentation/templates/doxygen/base.html | 3 +++ documentation/templates/python/base.html | 2 ++ 2 files changed, 5 insertions(+) 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 %} -- 2.30.2