bind9/doc
Petr Mensik 7101192301 Enable building documentation with Sphinx < 2.0.0
The ReferenceRole class is only available in Sphinx >= 2.0.0, which
makes building BIND 9 documentation impossible with older Sphinx
versions:

    Running Sphinx v1.7.6

    Configuration error:
    There is a programable error in your configuration file:

    Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/sphinx/config.py", line 161, in __init__
        execfile_(filename, config)
      File "/usr/lib/python3.6/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
        exec_(code, _globals)
      File "conf.py", line 21, in <module>
        from sphinx.util.docutils import ReferenceRole
    ImportError: cannot import name 'ReferenceRole'

Work around the problem by defining a stub version of the ReferenceRole
class if the latter cannot be imported.  This allows documentation
(without GitLab hyperlinks in release notes) to be built with older
Sphinx versions.

(cherry picked from commit 8f8bbae3fc)
2021-10-19 13:47:48 +02:00
..
arm Enable building documentation with Sphinx < 2.0.0 2021-10-19 13:47:48 +02:00
design rename dns_zone_master and dns_zone_slave 2021-08-30 11:58:29 -07:00
dev update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec-guide Fix missing iterations value in dnssec-guide 2021-08-11 10:40:35 +02:00
doxygen update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
man Regenerate man pages with docutils 0.17.1 2021-09-16 11:15:31 +02:00
misc deprecate "cache-file" 2021-09-16 00:57:58 -07:00
notes Add CHANGES and release notes for [GL #2308] 2021-09-30 20:16:25 +00:00
Makefile.in add support for building sphinx documentation 2020-06-01 09:54:46 +02:00