FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Unbreak the Sphinx 1.8 build by renaming :math: to :mathmpl:. by anntzer · Pull Request #12128 · matplotlib/matplotlib · GitHub

Repository navigation

Unbreak the Sphinx 1.8 build by renaming :math: to :mathmpl:. - #12128

Merged
tacaswell merged 1 commit into
matplotlib:masterfrom
anntzer:sphinx18math
Sep 15, 2018
Merged

tacaswell merged 1 commit into
matplotlib:masterfrom
anntzer:sphinx18math

Conversation

anntzer commented Sep 15, 2018

Copy link
Copy Markdown
Contributor

PR Summary

Would be kind of nice to have for 3.0, but heh.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

anntzer added this to the v3.0 milestone Sep 15, 2018

jklymak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Wow great. The only question I’d have is why we can’t use the Sphinx math directive, it I can believe they are different enough to make that a PITA

anntzer commented Sep 15, 2018

Copy link
Copy Markdown
Contributor Author

We can (and this PR basically does that implicitly by keeping :math: on the rest of the docs, which will use sphinx's math role), except for the mathtext tutorial because it uses mathtext construct that are not actually valid latex (\mathcircled, #7710 (comment)). My long term plan proposal is to rewrite the mathtext tutorial to just use the .. plot:: instead and completely kill :mathmpl: (even if you're using older versions of sphinx they also provide :math:, you just needed to add sphinx.ext.pngmath to the extensions list instead of being active by default).

This PR is just a stopgap fix.

tacaswell merged commit 2188358 into matplotlib:master Sep 15, 2018

lumberbot-app Bot commented Sep 15, 2018

Copy link
Copy Markdown

Something went wrong ... Please have a look at my logs.

anntzer deleted the sphinx18math branch September 15, 2018 18:45
tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Sep 15, 2018
FIX: Unbreak the Sphinx 1.8 build by renaming :math: to :mathmpl:.
This was referenced Sep 18, 2018

ImportanceOfBeingErnest commented Sep 19, 2018 •
edited
Loading

Copy link
Copy Markdown
Member

In the Writing mathematical expressions tutorial there are now strange red symbols appearing

which have not been there in the previous version.

Is this a consequence of this PR?

tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Feb 12, 2019
FIX: Unbreak the Sphinx 1.8 build by renaming :math: to :mathmpl:.

Conflicts:
	lib/matplotlib/sphinxext/mathmpl.py
          - import cleanups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL