Skip to content

Commit 377f9ea

Browse files
authored
Merge branch 'main' into expr-support-getfield
2 parents 6a14b1d + 43ca475 commit 377f9ea

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

docs/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
extensions = [
3535
"djangodocs",
3636
"sphinx.ext.intersphinx",
37+
"sphinx_copybutton",
3738
]
3839

3940
# templates_path = ["_templates"]
@@ -45,7 +46,8 @@
4546
"https://docs.djangoproject.com/en/5.2/_objects/",
4647
),
4748
"mongodb": ("https://www.mongodb.com/docs/languages/python/django-mongodb/v5.2/", None),
48-
"pymongo": ("https://pymongo.readthedocs.io/en/stable/", None),
49+
"pymongo": ("https://www.mongodb.com/docs/languages/python/pymongo-driver/current/", None),
50+
"pymongo-api": ("https://pymongo.readthedocs.io/en/stable/", None),
4951
"python": ("https://docs.python.org/3/", None),
5052
"atlas": ("https://www.mongodb.com/docs/atlas/", None),
5153
"manual": ("https://www.mongodb.com/docs/manual/", None),
@@ -56,3 +58,9 @@
5658

5759
html_theme = "furo"
5860
html_static_path = ["_static"]
61+
62+
# -- Options for copy button -------------------------------------------------
63+
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#use-and-customize
64+
65+
copybutton_prompt_text = r">>> |\.\.\. |\$ "
66+
copybutton_prompt_is_regexp = True

docs/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Debug logging
2424
-------------
2525

2626
To troubleshoot MongoDB connectivity issues, you can enable :doc:`PyMongo's
27-
logging <pymongo:examples/logging>` using :doc:`Django's LOGGING setting
28-
<django:topics/logging>`.
27+
logging <pymongo:monitoring-and-logging/logging>` using :doc:`Django's LOGGING
28+
setting <django:topics/logging>`.
2929

3030
This is a minimal :setting:`LOGGING` setting that enables PyMongo's ``DEBUG``
3131
logging::

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ classifiers = [
3737
docs = [
3838
"sphinx>=7",
3939
"furo>=2025.7.19",
40+
"sphinx-copybutton",
4041
]
4142

4243
[project.urls]

0 commit comments

Comments
 (0)