From: Vladimír Vondruš Date: Thu, 29 Aug 2019 08:35:01 +0000 (+0200) Subject: documentation/python: the feeling when you invert an important condition. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=b5b456a47a11765869db7ca6243b8a50f85c5a81;p=blog.git documentation/python: the feeling when you invert an important condition. This was supposed to check that I was always specifying the version. Well, it failed to check, and I failed to specify the version properly in all cases. --- diff --git a/documentation/templates/doxygen/base.html b/documentation/templates/doxygen/base.html index 5ef2a7bc..2421f08d 100644 --- a/documentation/templates/doxygen/base.html +++ b/documentation/templates/doxygen/base.html @@ -166,4 +166,4 @@ {#- 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 %} -{% if SEARCHDATA_FORMAT_VERSION is defined %}{{ SEARCHDATA_FORMAT_VERSION.is_not_defined_the_script_is_broken }}{% endif %} +{% if SEARCHDATA_FORMAT_VERSION is not defined %}{{ SEARCHDATA_FORMAT_VERSION.is_not_defined_the_script_is_broken }}{% endif %} diff --git a/documentation/templates/python/base.html b/documentation/templates/python/base.html index b6ca07c6..ecde3feb 100644 --- a/documentation/templates/python/base.html +++ b/documentation/templates/python/base.html @@ -157,4 +157,4 @@ {#- sanity checks for variables that should be always defined -#} {% if URL is not defined %}{{ URL.is_not_defined_the_script_is_broken }}{% endif %} -{% if SEARCHDATA_FORMAT_VERSION is defined %}{{ SEARCHDATA_FORMAT_VERSION.is_not_defined_the_script_is_broken }}{% endif %} +{% if SEARCHDATA_FORMAT_VERSION is not defined %}{{ SEARCHDATA_FORMAT_VERSION.is_not_defined_the_script_is_broken }}{% endif %}