Skip to content

Commit 90a4763

Browse files
author
Svetlana Karslioglu
authored
Upgrading sphinx and sphinx-gallery (#1984)
1 parent 01a0ab2 commit 90a4763

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
'advanced_source', 'recipes_source', 'prototype_source'],
7676
'gallery_dirs': ['beginner', 'intermediate', 'advanced', 'recipes', 'prototype'],
7777
'filename_pattern': 'tutorial.py',
78-
'backreferences_dir': False
78+
'backreferences_dir': None
7979
}
8080

8181
if os.getenv('GALLERY_PATTERN'):
@@ -135,7 +135,7 @@
135135
#
136136
# This is also used if you do content translation via gettext catalogs.
137137
# Usually you set "language" from the command line for these cases.
138-
language = None
138+
language = 'en'
139139

140140
# List of patterns, relative to source directory, that match files and
141141
# directories to ignore when looking for source files.

custom_directives.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ def run(self):
9191
_, blocks = sphinx_gallery.gen_rst.split_code_and_text_blocks(abs_fname)
9292
intro, _ = sphinx_gallery.gen_rst.extract_intro_and_title(abs_fname, blocks[0][1])
9393

94-
thumbnail_rst = sphinx_gallery.backreferences._thumbnail_div(
95-
dirname, basename, intro)
94+
thumbnail_rst = ''
95+
#sphinx_gallery.backreferences._thumbnail_div(
96+
# dirname, basename, intro)
9697

9798
if 'figure' in self.options:
9899
rel_figname, figname = env.relfn2path(self.options['figure'])

requirements.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Refer to ./jenkins/build.sh for tutorial build instructions
22

3-
sphinx==1.8.2
4-
sphinx-gallery==0.3.1
3+
sphinx==5.0.0
4+
sphinx-gallery==0.9.0
5+
sphinx-panels
56
docutils==0.16
67
sphinx-copybutton
78
tqdm
@@ -18,7 +19,7 @@ PyHamcrest
1819
bs4
1920
awscliv2==2.1.1
2021
flask
21-
spacy==2.3.2
22+
spacy
2223
ray[tune]
2324
tensorboard
2425
jinja2==3.0.3

0 commit comments

Comments
 (0)