File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 45
45
}
46
46
html_context = {}
47
47
48
- # sphinx_autodoc_defaultargs config
48
+ # This prolog is useful for both sphinx_autodoc_defaultargs and the "Edit on
49
+ # github" button
49
50
rst_prolog = (
50
51
"""
52
+ :github_url: https://github.com/fractal-analytics-platform/fractal-tasks-core
53
+
51
54
.. |default| raw:: html
52
55
53
56
<div class="default-value-section">"""
58
61
# Extensions to theme docs
59
62
def setup (app ):
60
63
61
- # apidoc part
64
+ # apidoc (see https://github.com/readthedocs/readthedocs.org/issues/1139)
62
65
source_dir = Path (__file__ ).parent .absolute ()
63
66
package_dir = str (source_dir / "../../fractal_tasks_core" )
64
67
api_files_dir = str (source_dir / "api_files" )
@@ -80,7 +83,6 @@ def setup(app):
80
83
# What follows is taken from https://stackoverflow.com/a/68913808,
81
84
# and used to remove each indented block following a line starting
82
85
# with "Copyright"
83
-
84
86
what = None
85
87
86
88
def process (
@@ -94,7 +96,6 @@ def process(
94
96
if what and what_ not in what :
95
97
return
96
98
orig_lines = lines [:]
97
-
98
99
ignoring = False
99
100
new_lines = []
100
101
for i , line in enumerate (orig_lines ):
@@ -106,10 +107,8 @@ def process(
106
107
# ignoring the indented region.
107
108
if ignoring and line and not line .startswith (" " ):
108
109
ignoring = False
109
-
110
110
if not ignoring :
111
111
new_lines .append (line )
112
-
113
112
lines [:] = new_lines
114
113
# make sure there is a blank line at the end
115
114
if lines and lines [- 1 ]:
You can’t perform that action at this time.
0 commit comments