Skip to content
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

Configure sphinx-copybutton to strip prompts #11702

Merged
merged 4 commits into from Mar 27, 2023

Conversation

Nikhil-Ladha
Copy link
Contributor

Issue:
The copy button at present copies the "prompt" ("$/C:>") while copying
the command on the installation and couple other pages.

Fix:
Updated the conf to strip the "prompt" from the command
based on the regex expression and copy the actual command.

Signed-off-by: Nikhil-Ladha nikhilladha1999@gmail.com

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
@Nikhil-Ladha
Copy link
Contributor Author

@pradyunsg @hroncok @uranusjr can you all PTAL and add your comments? TIA :)

@hroncok
Copy link
Contributor

hroncok commented Mar 27, 2023

I won't be able to review this in a timely manner, sorry about that.

@pradyunsg pradyunsg changed the title [Docs] Update conf to strip command line prompts Configure sphinx-copybutton to strip prompts Mar 27, 2023
@pradyunsg pradyunsg merged commit 5c61b2a into pypa:main Mar 27, 2023
11 checks passed
@Nikhil-Ladha Nikhil-Ladha deleted the strip-prompt-text branch March 27, 2023 15:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants