Skip to content

Commit 627c2de

Browse files
changes the conf.py file so the links from the links_and_refs.rst file can be used
1 parent b3be655 commit 627c2de

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/source/conf.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,14 @@
151151
# List of patterns, relative to source directory, that match files and
152152
# directories to ignore when looking for source files.
153153
# This pattern also affects html_static_path and html_extra_path.
154-
exclude_patterns = []
154+
exclude_patterns = ["links_and_refs.rst"]
155+
156+
# make rst_epilog a variable, so you can add other epilog parts to it
157+
rst_epilog = ""
158+
159+
# Read links and targets from file
160+
with open("links_and_refs.rst") as f:
161+
rst_epilog += f.read()
155162

156163
# The name of the Pygments (syntax highlighting) style to use.
157164
pygments_style = None

0 commit comments

Comments
 (0)