From 53606a4bbc2c4b49b75c543af41a15211431fbef Mon Sep 17 00:00:00 2001 From: El Laggron Date: Wed, 23 Oct 2019 23:51:35 +0200 Subject: [PATCH] [Docs] Do not overwrite rst_prolog (#3082) * Do not overwrite rst_prolog * Add towncrier entry --- changelog.d/3082.docs.rst | 1 + docs/conf.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/3082.docs.rst diff --git a/changelog.d/3082.docs.rst b/changelog.d/3082.docs.rst new file mode 100644 index 000000000..366ad4ce5 --- /dev/null +++ b/changelog.d/3082.docs.rst @@ -0,0 +1 @@ +Do not overwrite the docs/prolog.txt file in conf.py. \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index eb54c3f68..f1f8b34bc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -99,7 +99,7 @@ with open("prolog.txt", "r") as file: rst_prolog = file.read() # Adds d.py version to available substitutions in all files -rst_prolog = f"\n.. |DPY_VERSION| replace:: {dpy_version}" +rst_prolog += f"\n.. |DPY_VERSION| replace:: {dpy_version}" # -- Options for HTML output ----------------------------------------------