From 627c2de33e851aaa750f5b41c49594e3b9d18f22 Mon Sep 17 00:00:00 2001 From: luisaFelixSalles Date: Thu, 19 Dec 2024 17:41:45 +0100 Subject: [PATCH] changes the conf.py file so the links from the links_and_refs.rst file can be used --- doc/source/conf.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index ddab484c1f..229d688842 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -151,7 +151,14 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = [] +exclude_patterns = ["links_and_refs.rst"] + +# make rst_epilog a variable, so you can add other epilog parts to it +rst_epilog = "" + +# Read links and targets from file +with open("links_and_refs.rst") as f: + rst_epilog += f.read() # The name of the Pygments (syntax highlighting) style to use. pygments_style = None