Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
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
1 change: 0 additions & 1 deletion requirements-3.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ semantic_version
setuptools
Sphinx>=3.0
sphinx-gallery
sphinxcontrib-imagesvg
sphinx_rtd_theme
tabulate
tqdm
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ semantic_version
setuptools
Sphinx>=5.0
sphinx-gallery
sphinxcontrib-imagesvg
sphinx_rtd_theme
tabulate
tqdm
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
"semantic_version",
"sphinx>=3.0",
"sphinx-gallery",
"sphinxcontrib-imagesvg",
"traitlets>=5.0",
],
},
Expand Down
12 changes: 8 additions & 4 deletions src/pyquickhelper/helpgen/default_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,16 @@ def set_sphinx_variables(fileconf, module_name, author, year, theme, theme_path,
raise ValueError(f"Issue with sphinx-gallery.\n{e}")

extensions.extend([
'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage',
'sphinx.ext.extlinks', 'sphinx.ext.graphviz', 'sphinx.ext.ifconfig',
'sphinx.ext.inheritance_diagram', 'sphinx.ext.intersphinx',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.coverage',
'sphinx.ext.extlinks',
'sphinx.ext.graphviz',
'sphinx.ext.ifconfig',
'sphinx.ext.inheritance_diagram',
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax' if use_mathjax else 'sphinx.ext.imgmath',
'sphinx.ext.todo',
'sphinxcontrib.imagesvg', 'jupyter_sphinx.execute',
'jupyter_sphinx.execute',
'pyquickhelper.sphinxext.sphinx_rst_builder',
'pyquickhelper.sphinxext.sphinx_md_builder',
Expand Down
15 changes: 8 additions & 7 deletions src/pyquickhelper/helpgen/install_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ def download_revealjs(temp_folder=".", unzip_to=".", fLOG=print,
reg = re.compile("href=\\\"(.*?[0-9.]+?[.]zip)\\\"")
alls = reg.findall(page)
if len(alls) == 0:
raise RuntimeError( # pragma: no cover
f"Unable to find a link on a .zip file on page:\n{page}")

filename = alls[0].split("/")[-1]
filel = location.replace("releases", "").rstrip(
'/') + f"/archive/{filename}"
outfile = os.path.join(temp_folder, "reveal.js." + filename)
# Fall back to one release
filel = "https://github.com/hakimel/reveal.js/archive/refs/tags/4.3.1.zip"
outfile = os.path.join(temp_folder, "reveal.js.4.3.1.zip")
else:
filename = alls[0].split("/")[-1]
filel = location.replace("releases", "").rstrip(
'/') + f"/archive/{filename}"
outfile = os.path.join(temp_folder, "reveal.js." + filename)
fLOG("download ", filel, "to", outfile)
local = download(filel, temp_folder, fLOG=fLOG)
fLOG("local file", local)
Expand Down
4 changes: 1 addition & 3 deletions src/pyquickhelper/sphinxext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import warnings
from sphinx.ext.autodoc import setup as setup_autodoc
from sphinx.ext.imgmath import setup as setup_imgmath
from sphinxcontrib.imagesvg import setup as setup_imagesvg
from sphinx.ext.graphviz import setup as setup_graphviz
from sphinx.ext.todo import setup as setup_todo

Expand Down Expand Up @@ -124,7 +123,7 @@ def get_default_extensions(load_bokeh=False):
# directives from sphinx
setup_graphviz, setup_imgmath, setup_todo,
# the rest of it
setup_autodoc, setup_imagesvg,
setup_autodoc,
setup_plot, setup_image, setup_collapse, setup_gdot,
setup_video, setup_simpleimage, setup_downloadlink,
setup_quote, setup_gitlog]
Expand Down Expand Up @@ -155,7 +154,6 @@ def get_default_standard_extensions(use_mathjax=False):
'sphinx.ext.mathjax' if use_mathjax else 'sphinx.ext.imgmath',
'sphinx.ext.napoleon', 'sphinx.ext.todo',
'jupyter_sphinx.execute',
'sphinxcontrib.imagesvg',
'matplotlib.sphinxext.plot_directive',
]

Expand Down