Skip to content

Commit 817c4e6

Browse files
committed
Change to use different method of long-docs generation.
1 parent 46b6aa5 commit 817c4e6

21 files changed

+1005
-24
lines changed

doc/conf.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,14 @@
133133
'filename_pattern': '/plot_',
134134
}
135135

136-
#if "-D" in sys.argv:
137-
# key_value = sys.argv.index("-D") + 1
138-
# name_and_value=sys.argv.pop(key_value)
139-
# sys.argv.pop(sys.argv.index("-D"))
140-
# param_name, param_values = name_and_value.split("=")
141-
# assert param_name == "long_builds"
142-
# long_buildnames = param_values.split(",")
143-
# if "handle_drift" in long_buildnames:
144136
if tags.has("handle_drift") or tags.has("all_long_plot"):
145-
sphinx_gallery_conf["filename_pattern"] += '|/long_plot_handle_drift'
137+
138+
if (handle_drift_path := (Path('long_tutorials/handle_drift'))).is_dir():
139+
shutil.rmtree(handle_drift_path)
140+
141+
sphinx_gallery_conf['examples_dirs'].append('../examples/long_tutorials/handle_drift')
142+
sphinx_gallery_conf["gallery_dirs"].append(handle_drift_path.as_posix())
143+
146144

147145
intersphinx_mapping = {
148146
"neo": ("https://neo.readthedocs.io/en/latest/", None),

doc/how_to/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ Guides on how to solve specific, short problems in SpikeInterface. Learn how to.
1212
load_matlab_data
1313
combine_recordings
1414
process_by_channel_group
15+
/long_tutorials/handle_drift/plot_handle_drift.rst
11 KB
Binary file not shown.
8.08 KB
Binary file not shown.
600 KB
Loading
622 KB
Loading
660 KB
Loading
81.1 KB
Loading
106 KB
Loading
144 KB
Loading

0 commit comments

Comments
 (0)