bind9/bin
Petr Špaček bbb24264bb
Use unique program + option names for link anchors to support Sphinx 1.8.5
Sphinx "standard domain" provides directive types ".. program::" and
".. option::" to create link anchor for a program name + option combination.
These can be referenced using :ref:`program option` syntax.

The problem is that Sphinx 1.8.5 (e.g. in Ubuntu 18.04) generates
conflicting link targets if a page contains two option directives
starting with the same word, e.g.:

.. program:: dnssec-settime
.. option:: -P date
.. option:: -P ds date

The reason is that option directive consumes only first word as "option
name" (-P) and all the rest is considered "option argument" (date, ds
date). Newer versions of Sphinx (e.g. 4.5.0) handle this by creating
numbered link anchors, but older versions warn and BIND build system
turns the warning into a hard error.

To handle that we use method recommended by Sphinx maintainer:
https://github.com/sphinx-doc/sphinx/issues/10218#issuecomment-1059925508
As a bonus it provides more accurate link anchors for sub-options.

Alternatives considered:
- Replacing standard domain definition of .. option - causes more
  problems, see BIND issue #3294.
- Removing hyperlinks for options - that would be a step back.

Fixes: #3295
2022-04-25 14:27:34 +02:00
..
check Set hard thread affinity for each zone 2022-04-01 23:50:34 +02:00
confgen Replace ISC_NORETURN with C11's noreturn 2022-03-25 08:33:43 +01:00
delv Remove isc_appctx_t use in dns_client 2022-03-29 14:14:49 -07:00
dig ensure dig sets exitcode after local UDP connection failure 2022-04-15 10:32:31 -07:00
dnssec Use unique program + option names for link anchors to support Sphinx 1.8.5 2022-04-25 14:27:34 +02:00
named Allow listening on less than nworkers threads 2022-04-19 11:08:13 +02:00
nsupdate Remove use of the inline keyword used as suggestion to compiler 2022-03-25 08:33:43 +01:00
plugins Make isc_ht optionally case insensitive 2022-03-28 15:02:18 -07:00
rndc Use unique program + option names for link anchors to support Sphinx 1.8.5 2022-04-25 14:27:34 +02:00
tests Fix a PyLint 2.13.7 error 2022-04-22 11:25:27 +02:00
tools Ensure that dns_request_createvia() has a retry limit 2022-04-06 17:12:48 +01:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00