Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Docs: ignore >>> on code prompts on documentation prompts #22994

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 1 commit into from
May 6, 2022

Conversation

dmatos2012
Copy link
Contributor

PR Summary

THIS PR closes #22982 which allows to use the copy button on the docs without copying the >>> prompt, and only copying the relevant code.

PR Checklist

Tests and Styling

  • [ N/A] Has pytest style unit tests (and pytest passes).
  • [X ] Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • [N/A] New features are documented, with examples if plot related.
  • [N/A] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [ N/A] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

Copy link
Member

@oscargus oscargus left a comment

Choose a reason for hiding this comment

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

Seems to work nicely!

@tacaswell tacaswell modified the milestones: v3.6.0, v3.5.3, v3.5-doc May 6, 2022
@tacaswell tacaswell merged commit 82cf624 into matplotlib:main May 6, 2022
@QuLogic
Copy link
Member

QuLogic commented May 6, 2022

meeseeksdev backport to v3.5.x
meeseeksdev backport to v3.5.2-doc

@timhoffm
Copy link
Member

timhoffm commented May 6, 2022

Thanks @dmatos2012!

QuLogic added a commit that referenced this pull request May 7, 2022
…994-on-v3.5.x

Backport PR #22994 on branch v3.5.x (Docs: ignore >>> on code prompts on documentation prompts)
QuLogic added a commit that referenced this pull request May 7, 2022
…994-on-v3.5.2-doc

Backport PR #22994 on branch v3.5.2-doc (Docs: ignore >>> on code prompts on documentation prompts)
@dmatos2012 dmatos2012 deleted the modify-sphinx-copy-extension branch May 7, 2022 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Doc]: Add toggle prompt to python snippets(prompts) on docs
5 participants