Skip to content

Commit 5ada2e0

Browse files
authored
Merge branch 'main' into 2.8-RC-Tutorial-Test
2 parents 1fb97ae + 876c563 commit 5ada2e0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.ci/docker/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Refer to ./jenkins/build.sh for tutorial build instructions
33

44
sphinx==5.3.0
5-
sphinx-gallery==0.11.1
5+
sphinx-gallery==0.17.1
66
sphinx-reredirects==0.1.4
77
sphinx-design==0.4.0
88
docutils==0.16
@@ -31,7 +31,8 @@ pytorch-lightning
3131
torchx
3232
torchrl==0.7.2
3333
tensordict==0.7.2
34-
ax-platform>=0.4.0
34+
# For ax_multiobjective_nas_tutorial.py
35+
ax-platform>=0.4.0,<0.5.0
3536
nbformat>=5.9.2
3637
datasets
3738
transformers

custom_directives.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def run(self):
8888
if 'intro' in self.options:
8989
intro = self.options['intro'][:195] + '...'
9090
else:
91-
_, blocks = sphinx_gallery.gen_rst.split_code_and_text_blocks(abs_fname)
91+
block_parser = sphinx_gallery.gen_rst.BlockParser(abs_fname, {"filetype_parsers": {}})
92+
_, blocks, _ = block_parser.split_code_and_text_blocks(abs_fname)
9293
intro, _ = sphinx_gallery.gen_rst.extract_intro_and_title(abs_fname, blocks[0][1])
9394

9495
thumbnail_rst = ''

0 commit comments

Comments
 (0)