Skip to content

Commit c30fa7e

Browse files
committed
Re-add bash prompts and configure copy button to remove
1 parent 84c1983 commit c30fa7e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@
5353

5454
html_theme = "furo"
5555
html_static_path = ["_static"]
56+
57+
# -- Options for copy button -------------------------------------------------
58+
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#use-and-customize
59+
60+
copybutton_prompt_text = r"\$ "
61+
copybutton_prompt_is_regexp = True

docs/intro/configure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ following :djadmin:`startproject` template:
1818

1919
.. code-block:: bash
2020
21-
django-admin startproject mysite --template https://github.com/mongodb-labs/django-mongodb-project/archive/refs/heads/5.2.x.zip
21+
$ django-admin startproject mysite --template https://github.com/mongodb-labs/django-mongodb-project/archive/refs/heads/5.2.x.zip
2222
2323
(If you're using a version of Django other than 5.2.x, replace the two numbers
2424
to match the first two numbers from your version.)

docs/intro/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ of Django. For example, to get the latest compatible release for Django 5.2.x:
77

88
.. code-block:: bash
99
10-
pip install django-mongodb-backend==5.2.*
10+
$ pip install django-mongodb-backend==5.2.*
1111
1212
The minor release number of Django doesn't correspond to the minor release
1313
number of ``django-mongodb-backend``. Use the latest minor release of each.

0 commit comments

Comments
 (0)