Skip to content

Upgrading sphinx and sphinx-gallery #1984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
'advanced_source', 'recipes_source', 'prototype_source'],
'gallery_dirs': ['beginner', 'intermediate', 'advanced', 'recipes', 'prototype'],
'filename_pattern': 'tutorial.py',
'backreferences_dir': False
'backreferences_dir': None
}

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

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
5 changes: 3 additions & 2 deletions custom_directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ def run(self):
_, blocks = sphinx_gallery.gen_rst.split_code_and_text_blocks(abs_fname)
intro, _ = sphinx_gallery.gen_rst.extract_intro_and_title(abs_fname, blocks[0][1])

thumbnail_rst = sphinx_gallery.backreferences._thumbnail_div(
dirname, basename, intro)
thumbnail_rst = ''
#sphinx_gallery.backreferences._thumbnail_div(
# dirname, basename, intro)

if 'figure' in self.options:
rel_figname, figname = env.relfn2path(self.options['figure'])
Expand Down
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Refer to ./jenkins/build.sh for tutorial build instructions

sphinx==1.8.2
sphinx-gallery==0.3.1
sphinx==5.0.0
sphinx-gallery==0.9.0
sphinx-panels
docutils==0.16
sphinx-copybutton
tqdm
Expand All @@ -18,7 +19,7 @@ PyHamcrest
bs4
awscliv2==2.1.1
flask
spacy==2.3.2
spacy
ray[tune]
tensorboard
jinja2==3.0.3
Expand Down