Skip to content

Commit 2f77521

Browse files
committed
Try to explicitly list missing references
1 parent f583725 commit 2f77521

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/source/conf.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,19 @@
3232

3333
html_theme = 'default'
3434
html_static_path = ['_static']
35+
36+
37+
# Ignore missing references to sections in SasView documentation
38+
def on_missing_reference(app, env, node, contnode):
39+
if node["reftarget"] in [
40+
"file_converter_tool",
41+
"image_viewer_tool",
42+
"sans_calculator_tool",
43+
]:
44+
return contnode
45+
else:
46+
return None
47+
48+
49+
def setup(app):
50+
app.connect("missing-reference", on_missing_reference)

0 commit comments

Comments
 (0)