Skip to content

Commit

Permalink
Make the variables available to the rst documents
Browse files Browse the repository at this point in the history
  • Loading branch information
gthess committed Jan 4, 2023
1 parent 4d5822c commit 45137bf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@

unbound_authors = ("Unbound developers are mentioned in the CREDITS file in "
"the distribution.")
# Unbound default values
# Unbound default values ...
UNBOUND_RUN_DIR = "/usr/local/etc/unbound"
UNBOUND_ROOTKEY_FILE = f"{UNBOUND_RUN_DIR}/root.key"
UNBOUND_ROOTCERT_FILE = f"{UNBOUND_RUN_DIR}/icannbundle.pem"
Expand All @@ -186,6 +186,17 @@
UNBOUND_USERNAME = "unbound"
ub_conf_file = f"{UNBOUND_RUN_DIR}/unbound.conf"
DNSTAP_SOCKET_PATH = ""
# ... make them available as substitutions in rst
rst_epilog = f"""
.. |UNBOUND_RUN_DIR| replace:: {UNBOUND_RUN_DIR}
.. |UNBOUND_ROOTKEY_FILE| replace:: {UNBOUND_ROOTKEY_FILE}
.. |UNBOUND_ROOTCERT_FILE| replace:: {UNBOUND_ROOTCERT_FILE}
.. |UNBOUND_CHROOT_DIR| replace:: {UNBOUND_CHROOT_DIR}
.. |UNBOUND_PIDFILE| replace:: {UNBOUND_PIDFILE}
.. |UNBOUND_USERNAME| replace:: {UNBOUND_USERNAME}
.. |ub_conf_file| replace:: {ub_conf_file}
.. |DNSTAP_SOCKET_PATH| replace:: {DNSTAP_SOCKET_PATH}
"""

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
Expand Down

0 comments on commit 45137bf

Please sign in to comment.