Skip to content

Commit 1f8d744

Browse files
authored
Merge pull request #22 from aclark4life/main
Update docs
2 parents a6a27d2 + 255238c commit 1f8d744

22 files changed

+96
-24
lines changed

django_mongodb_cli/config.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@
8181
"target": join("src", "django-rest-framework", "tests", "mongo_apps.py"),
8282
},
8383
"migrations_dir": {
84-
"source": join(
85-
"src", "rest_framework", "django-mongodb-project", "mongo_migrations"
86-
),
84+
"source": join("src", "django-mongodb-project", "mongo_migrations"),
8785
"target": join("src", "django-rest-framework", "tests", "mongo_migrations"),
8886
},
8987
"test_command": "./runtests.py",
123 KB
Loading
Loading
139 KB
Loading
Loading
154 KB
Loading

docs/source/glossary.rst

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Glossary
2+
========
3+
4+
.. _django-mongodb-backend:
5+
6+
Django MongoDB Backend
7+
----------------------
8+
9+
- `Django MongoDB Backend`_ is a MongoDB database backend for Django.
10+
11+
.. _mongodb-django-fork:
12+
13+
MongoDB's Django Fork
14+
---------------------
15+
16+
- `MongoDB's Django Fork`_ is a fork of Django used for testing and is **not required** to use Django with MongoDB.
17+
18+
.. _`Django MongoDB Backend`: https://github.com/mongodb/django-mongodb-backend
19+
.. _`MongoDB's Django fork`: https://github.com/mongodb-forks/django

docs/source/index.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,33 @@ Django MongoDB CLI
44

55
.. note::
66

7-
This documentation is for the MongoDB Python Database Experience team and
8-
developers of third party libraries interested in supporting
9-
`Django MongoDB Backend`_.
7+
This documentation is for MongoDB staff and developers of Django third
8+
party libraries interested in supporting
9+
:ref:`Django MongoDB Backend <django-mongodb-backend>`.
1010

11-
Users of `Django MongoDB Backend`_ should read the
12-
`Django MongoDB Backend documentation`_.
11+
End users of :ref:`Django MongoDB Backend <django-mongodb-backend>`
12+
should read the `Django MongoDB Backend documentation`_.
1313

1414
About
1515
-----
1616

1717
This library provides the ``dm`` command which can be used for:
1818

19-
- :ref:`Running third party library test suites <third-party-libraries>` with `Django MongoDB Backend`_ and MongoDB's `Django fork`_.
20-
- Creating `Django projects`_ with `Django MongoDB Backend`_ and :ref:`third party libraries <third-party-libraries>`.
19+
- :ref:`Running third party library test suites <third-party-libraries>` with
20+
:ref:`Django MongoDB Backend <django-mongodb-backend>` and
21+
:ref:`MongoDB's Django fork <mongodb-django-fork>`.
22+
- Creating `Django projects`_ with :ref:`Django MongoDB Backend <django-mongodb-backend>`
23+
and :ref:`third party libraries <third-party-libraries>`.
2124

2225
Table of Contents
2326
-----------------
2427

2528
.. toctree::
26-
:maxdepth: 3
27-
2829
installation
2930
usage
3031
third-party-library-support/index
3132
supported-libraries/index
33+
glossary
3234

33-
.. _`Django MongoDB Backend`: https://github.com/mongodb/django-mongodb-backend
34-
.. _`Django fork`: https://github.com/mongodb-forks/django
3535
.. _`Django MongoDB Backend documentation`: https://www.mongodb.com/docs/languages/python/django-mongodb/v5.1/
3636
.. _`Django projects`: https://docs.djangoproject.com/en/5.2/intro/tutorial01/#creating-a-project

docs/source/installation.rst

+8-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,20 @@ Install ``dm`` command
2424

2525
::
2626

27-
python -m pip install -e .
27+
pip install -e .
2828

2929
.. _additional-installation-steps:
3030

3131
Additional installation steps
3232
-----------------------------
3333

34-
Clone third-party library repositories and install dependencies with ``just``.
34+
.. note::
35+
36+
``just install`` also installs the ``dm`` command as shown above
37+
so in practice you can ``just install`` and skip the previous step.
38+
39+
Install ``dm`` command, clone and install third-party library
40+
repositories and install dependencies with ``just install``.
3541

3642
::
3743

docs/source/supported-libraries/django-allauth.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Via ``dm repo test django-filter``
1414
| 63% | 1621 | 1023 | 584 | 1 | 13 | 0 | 21 |
1515
+---------------------------+------------+-----------+-----------+----------------+--------------+----------------------------+------------------+
1616

17-
- `django-filter.txt <../_static/django-filter.txt>`_
17+
- `django-filter.txt <../_static/logs/django-filter.txt>`_
1818

1919
Project examples
2020
----------------

docs/source/supported-libraries/django-debug-toolbar.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Via ``dm repo test django-debug-toolbar``
1414
| 73% | 262 | 192 | 41 | 26 | 0 | 1 | 0 |
1515
+---------------------------+------------+-----------+-----------+----------------+--------------+----------------------------+------------------+
1616

17-
- `django-debug-toolbar.txt <../_static/django-debug-toolbar.txt>`_
17+
- `django-debug-toolbar.txt <../_static/logs/django-debug-toolbar.txt>`_
1818

1919
Project examples
2020
----------------

docs/source/supported-libraries/django-filter.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Via ``dm repo test django-filter``
1414
| 93% | 515 | 480 | 1 | 16 | 15 | 3 | 0 |
1515
+---------------------------+------------+-----------+-----------+----------------+--------------+----------------------------+------------------+
1616

17-
- `django-filter.txt <../_static/django-filter.txt>`_
17+
- `django-filter.txt <../_static/logs/django-filter.txt>`_
1818

1919
Project examples
2020
----------------

docs/source/supported-libraries/django-rest-framework.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Via ``dm repo test django-rest-framework``
1414
| 81% | 1558 | 1276 | 146 | 136 | 0 | 0 | 4 |
1515
+---------------------------+------------+-----------+-----------+----------------+--------------+----------------------------+------------------+
1616

17-
- `django-rest-framework.txt <../_static/django-rest-framework.txt>`_
17+
- `django-rest-framework.txt <../_static/logs/django-rest-framework.txt>`_
1818

1919
Project examples
2020
----------------

docs/source/supported-libraries/wagtail.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Via ``dm repo test wagtail``
1818
| 43% | 4897 | 2124 | 52 | 468 | 2252 | 1 | 0 |
1919
+---------------------------+------------+-----------+-----------+----------------+--------------+----------------------------+------------------+
2020

21-
- `wagtail.txt <../_static/wagtail.txt>`_
22-
- `wagtail2.txt <../_static/wagtail2.txt>`_
21+
- `wagtail.txt <../_static/logs/wagtail.txt>`_
22+
- `wagtail2.txt <../_static/logs/wagtail2.txt>`_
2323

2424
Project examples
2525
----------------

docs/source/usage.rst

+48
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,39 @@ Usage
44
Run third-party library tests
55
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66

7+
django-filter
8+
+++++++++++++
9+
10+
::
11+
12+
dm repo test django-filter
13+
14+
When completed successfully the output should look something like this:
15+
16+
.. image:: _static/images/django-filter.png
17+
18+
django-rest-framework
19+
+++++++++++++++++++++
20+
21+
::
22+
23+
dm repo test django-rest-framework
24+
25+
When completed successfully the output should look something like this:
26+
27+
.. image:: _static/images/django-rest-framework.png
28+
29+
django-debug-toolbar
30+
++++++++++++++++++++
31+
32+
::
33+
34+
dm repo test django-debug-toolbar
35+
36+
When completed successfully the output should look something like this:
37+
38+
.. image:: _static/images/django-debug-toolbar.png
39+
740
django-allauth
841
++++++++++++++
942

@@ -17,3 +50,18 @@ django-allauth
1750
::
1851

1952
dm repo test django-allauth
53+
54+
When completed successfully the output should look something like this:
55+
56+
.. image:: _static/images/django-allauth.png
57+
58+
wagtail
59+
+++++++
60+
61+
::
62+
63+
dm repo test wagtail
64+
65+
When completed successfully the output should look something like this:
66+
67+
.. image:: _static/images/wagtail.png

justfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ git-clone:
3030
dm repo clone django-mongodb-extensions
3131
dm repo clone django-mongodb-project
3232
dm repo clone django-mongodb-templates
33+
dm repo clone django-rest-framework
3334
dm repo clone mongo-python-driver
3435
dm repo clone python-xmlsec
3536

@@ -97,10 +98,10 @@ sphinx-build:
9798
alias b := sphinx-build
9899

99100
[group('sphinx')]
100-
sphinx-serve:
101+
sphinx-autobuild:
101102
# cd docs/_build && python -m http.server
102103
sphinx-autobuild docs/source docs/_build
103-
alias ss := sphinx-serve
104+
alias ab := sphinx-autobuild
104105

105106
[group('sphinx')]
106107
sphinx-clean:

0 commit comments

Comments
 (0)