summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathjax.py
Commit message (Collapse)AuthorAgeFilesLines
* Use PEP 595 typesAdam Turner2023-01-011-3/+3
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* Factor out HTML 4 translator (#11051)Adam Turner2022-12-301-3/+3
| | | Move the HTML 4 translator into a private module.
* remove blanket 'noqas'Daniel Eades2022-12-161-1/+4
|
* Improve static typing strictness (#10569)danieleades2022-07-181-1/+1
|
* Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
|
* Conform to PEP 257 summary line conventionsAdam Turner2022-02-201-3/+5
|
* Fix module docstring indentationAdam Turner2022-02-201-4/+4
|
* Fix module docstring first lineAdam Turner2022-02-201-2/+1
|
* Remove module titles in docstringsAdam Turner2022-02-191-3/+0
|
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Merge branch '4.3.x' into 4.xTakeshi KOMIYA2021-11-231-2/+9
|\
| * Remove debug printTakeshi KOMIYA2021-11-231-1/+0
| |
| * Fix #9864: mathjax: Failed to render equations via MathJax v2Takeshi KOMIYA2021-11-211-2/+10
| | | | | | | | | | | | | | | | | | MathJax library has been loaded via "defer" method since v4.3.0. But it prevents to work MathJax v2. This rollbacks the change and use "async" method as default again. To support changing the loading method, this allows to specify it via mathjax_options.
* | Fix #9878: mathjax: MathJax config is placed after loading MathJaxTakeshi KOMIYA2021-11-221-5/+5
|/
* Close #9450: mathjax: Load MathJax via "defer" strategyTakeshi KOMIYA2021-11-091-1/+1
| | | | | To allow configure MathJax via static JS file, it should be loaded via "defer" strategy.
* Rename variable to `html_assets_policy`Manuel Kaufmann2021-06-141-1/+1
|
* Add `Sphinx.add_html_assets_in_all_pages`Manuel Kaufmann2021-05-061-1/+1
| | | | | | | | | | | | | This new method in the `Sphinx` object allows extensions to communicate to Sphinx that it's preferred to include HTML assets in all the pages. However, it's extensions developers' responsability to follow this config and decide whether or not include the assets required. Extensions developers' can check `Sphinx.html_assets_in_all_pages` together with any other logic they may have to decide if the assets will be included in the rendered page or not. Closes #9115
* Add mathjax3_config config optionMatthias Geier2021-04-231-3/+14
|
* Merge branch '3.x'Takeshi KOMIYA2021-01-081-14/+12
|\
| * Close #6241: html: Allow to add JS/CSS files to the specific pageTakeshi KOMIYA2021-01-071-9/+7
| | | | | | | | | | | | Allow to add JS/CSS files to the specific page when an extension calls `app.add_js_file()` or `app.add_css_file()` on `html-page-context` event.
| * refactor: mathjax: Add a constant for the URL of mathjaxTakeshi KOMIYA2021-01-041-5/+6
| |
* | Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* | Merge branch '3.x'Takeshi KOMIYA2020-11-121-2/+1
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-111-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* | Move to MathJax 3.Hameer Abbasi2020-07-151-2/+2
|/
* Update mathjax to version 2.7.7Ryan Soklaski2020-05-281-1/+1
| | | | | There is a bug in latest.js in versions 2.7.5 and below; when the current version on the CDN is 3.0 or higher, latest.js will not use the highest version of 2.x, but instead will use the version from which latest.js has been taken. See the warning section on this page: http://docs.mathjax.org/en/latest/upgrading/v2.html This PR fixes that by pointing to 2.7.7, the latest version available on the CDN.
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Migrate to py3 style type annotation: sphinx.ext.mathjaxTakeshi KOMIYA2019-07-011-15/+8
|
* Merge pull request #5975 from sphinx-doc/5966_mathjax_not_loadedTakeshi KOMIYA2019-01-221-1/+1
|\ | | | | Fix #5966: mathjax has not been loaded on incremental build
| * Fix #5966: mathjax has not been loaded on incremental buildTakeshi KOMIYA2019-01-211-1/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-12-181-1/+1
|\ \ | |/
| * Use mathjax CDN "latest" URL by defaultMichael Goerz2018-12-171-1/+1
| | | | | | | | Closes #5725
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-2/+1
| |
* | Fix annotaions for extensionsTakeshi KOMIYA2018-11-281-5/+10
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Fix typehints: sphinx.util.mathTakeshi KOMIYA2018-11-051-1/+2
|/
* Fix #5497: Do not include MathJax.js and jsmath.js unless it is really neededTakeshi KOMIYA2018-10-171-6/+9
|
* Merge pull request #5230 from tk0miya/726_mathjax_configTakeshi KOMIYA2018-08-041-0/+7
|\ | | | | #726, #969: Add mathjax_config
| * WIP: #726, #969: Add mathjax_configTakeshi KOMIYA2018-07-291-0/+7
| |
* | Deprecate whole of sphinx.ext.mathbaseTakeshi KOMIYA2018-07-291-1/+1
|/
* Implement math_renderer frameworkTakeshi KOMIYA2018-07-281-6/+6
|
* Close #3784: mathjax: Add :confval:`mathjax_options`Takeshi KOMIYA2018-06-131-1/+4
|
* Fix mathjax is not loadedTakeshi KOMIYA2018-06-131-2/+3
|
* Fix #3606: MathJax should be loaded with async attributeTakeshi KOMIYA2018-05-251-1/+2
|
* Rename app.add_javascript() to add_js_file()Takeshi KOMIYA2018-05-241-1/+1
|