Skip to content

Conversation

aclark4life
Copy link
Collaborator

@aclark4life aclark4life commented Sep 10, 2025

No description provided.

@timgraham
Copy link
Collaborator

I think it could be confusing not to include shell prompts. By that logic, should we have no >>> in Python console sessions so they are more copyable? Anything with more than one command or an output after the command isn't copyable anyway, e.g.

$ python manage.py makemigrations admin auth contenttypes
Migrations for 'admin':
  mongo_migrations/admin/0001_initial.py
    - Create model LogEntry
...

For comparison, the console examples in Django's docs have a linux/windows toggle and no copy button (example: https://docs.djangoproject.com/en/dev/intro/tutorial01/). A copy button is only present on code snippets.

@timgraham timgraham force-pushed the add-sphinx-copybutton branch from c30fa7e to c91d931 Compare September 11, 2025 00:19
@timgraham timgraham changed the title Add sphinx-copybutton extension to copy/paste contents of pre elements Add copy button to documentation code blocks Sep 11, 2025
@timgraham timgraham force-pushed the add-sphinx-copybutton branch from c91d931 to 43ca475 Compare September 11, 2025 12:02
@mongodb mongodb deleted a comment from aclark4life Sep 11, 2025
@timgraham timgraham merged commit 43ca475 into mongodb:main Sep 11, 2025
12 of 13 checks passed
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.

2 participants