Skip to content

Commit

Permalink
src/sage_docbuild/conf.py: simplify path to tex-chtml.js (mathjax)
Browse files Browse the repository at this point in the history
Use "tex-chtml.js" instead of "mathjax/tex-chtml.js" as sphinx's
mathjax_path, relative to MATHJAX_DIR. The additional "mathjax"
subdirectory will be added to MATHJAX_DIR by spkg-configure and
sage_conf.

Closes: #30296
  • Loading branch information
orlitzky committed Aug 17, 2023
1 parent de55f27 commit 87a88b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage_docbuild/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def set_intersphinx_mappings(app, config):
if os.environ.get('SAGE_USE_CDNS', 'no') == 'yes':
mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
else:
mathjax_path = 'mathjax/tex-chtml.js'
mathjax_path = 'tex-chtml.js'
html_common_static_path += [MATHJAX_DIR]

# A list of glob-style patterns that should be excluded when looking for source
Expand Down

0 comments on commit 87a88b1

Please sign in to comment.