Skip to content

Commit 1aa57dd

Browse files
authored
Merge pull request #13 from aclark4life/main
Update docs
2 parents 9744000 + 1c41b1b commit 1aa57dd

File tree

12 files changed

+95
-69
lines changed

12 files changed

+95
-69
lines changed

Diff for: config/extensions/debug_toolbar_settings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
# Application definition
2525

2626
INSTALLED_APPS = [
27-
"django_mongodb_extensions.debug_toolbar.mongo_apps.MongoAdminConfig",
28-
"django_mongodb_extensions.debug_toolbar.mongo_apps.MongoAuthConfig",
29-
"django_mongodb_extensions.debug_toolbar.mongo_apps.MongoContentTypesConfig",
27+
"django_mongodb_extensions.mongo_apps.MongoAdminConfig",
28+
"django_mongodb_extensions.mongo_apps.MongoAuthConfig",
29+
"django_mongodb_extensions.mongo_apps.MongoContentTypesConfig",
3030
"django.contrib.sessions",
3131
"django.contrib.messages",
3232
"django.contrib.staticfiles",

Diff for: docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Table of Contents
2121
:maxdepth: 2
2222

2323
installation/index
24-
third-party-library-support
24+
third-party-library-support/index
2525
supported-libraries/index
2626

2727
.. _`Django MongoDB Backend`: https://github.com/mongodb/django-mongodb-backend

Diff for: docs/source/installation/clone-repository.rst

-7
This file was deleted.

Diff for: docs/source/installation/index.rst

+47-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,51 @@
11
Installation
22
============
33

4+
Clone the repository
5+
--------------------
46

5-
.. toctree::
6-
clone-repository
7-
venv
8-
usage
7+
::
8+
9+
git clone https://github.com/mongodb-labs/django-mongodb-cli
10+
cd django-mongodb-cli
11+
12+
13+
Create a virtual environment
14+
----------------------------
15+
16+
::
17+
18+
python -m venv .venv
19+
source .venv/bin/activate
20+
21+
22+
Install CLI
23+
-----------
24+
25+
::
26+
27+
python -m pip install -e .
28+
29+
Install development dependencies
30+
--------------------------------
31+
32+
::
33+
34+
dm repo clone -a
35+
36+
Usage
37+
-----
38+
39+
.. code:: bash
40+
41+
$ dm --help
42+
Usage: dm [OPTIONS] COMMAND [ARGS]...
43+
44+
Django MongoDB CLI
45+
46+
Options:
47+
--help Show this message and exit.
48+
49+
Commands:
50+
repo Run Django fork and third-party library tests.
51+
startproject Run `startproject` with custom templates.

Diff for: docs/source/installation/usage.rst

-16
This file was deleted.

Diff for: docs/source/installation/venv.rst

-7
This file was deleted.

Diff for: docs/source/supported-libraries/django-allauth.rst

+12-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ Django allauth
33

44
.. _django-allauth-results:
55

6+
Test suite
7+
----------
8+
69
Results
7-
-------
10+
~~~~~~~
811

912
Via ``dm repo test django-filter``
1013

@@ -17,7 +20,7 @@ Via ``dm repo test django-filter``
1720
- `django-filter.txt <../_static/django-filter.txt>`_
1821

1922
Settings
20-
--------
23+
~~~~~~~~
2124

2225
Via ``dm repo test django-filter --show``
2326

@@ -78,7 +81,7 @@ Via ``dm repo test django-filter --show``
7881
}
7982

8083
Tests
81-
-----
84+
~~~~~
8285

8386
Via ``dm repo test django-filter -l``
8487

@@ -209,3 +212,9 @@ Via ``dm repo test django-filter -l``
209212
├── headless_only
210213
├── login_required_mw
211214
└── regular
215+
216+
Project examples
217+
----------------
218+
219+
Known issues
220+
------------

Diff for: docs/source/supported-libraries/index.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
Supported libraries
55
===================
66

7+
Overview
8+
--------
9+
710
|
811
912
+------------------------------------+-------------------------------------------------------------+-------------------------------+----------------------------------+-------------------------+
10-
| **Library** | **Test suites** | **Project examples** | **Known limitations** | **Notes** |
13+
| **Library** | **Test suites** | **Project examples** | **Known issues** | **Notes** |
1114
+------------------------------------+-------------------------------------------------------------+-------------------------------+----------------------------------+-------------------------+
1215
| **django-allauth** | :ref:`63% passing <django-allauth-results>` | | | |
1316
+------------------------------------+-------------------------------------------------------------+-------------------------------+----------------------------------+-------------------------+
@@ -30,6 +33,9 @@ Supported libraries
3033
| | | | | |
3134
+------------------------------------+-------------------------------------------------------------+-------------------------------+----------------------------------+-------------------------+
3235

36+
Criteria
37+
--------
38+
3339
.. toctree::
3440
django-allauth
3541
django-debug-toolbar

Diff for: docs/source/third-party-library-support/index.rst

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Third party library support
2+
===========================
3+
4+
Definition
5+
-----------
6+
7+
This is the criteria used to determine if a third party library is supported
8+
by Django MongoDB Backend. It is not a guarantee that the library will
9+
work without issues, just that these criteria have been met.
10+
11+
Criteria
12+
--------
13+
14+
.. toctree::
15+
test-suites
16+
project-examples
17+
known-issues
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _`known_issues`:
2+
3+
Known issues
4+
------------
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _`project_examples`:
2+
3+
Project examples
4+
----------------
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
Third party library support
2-
===========================
3-
4-
.. note::
5-
6-
This is the criteria used to determine if a third party library is supported
7-
by Django MongoDB Backend. It is not a guarantee that the library will
8-
work without issues, just that these criteria have been met.
9-
10-
Support for third party libraries is determined via the following:
11-
12-
- :ref:`Test suites <test_suites>`
13-
- :ref:`Project examples <project_examples>`
14-
- :ref:`Known limitations <known_limitations>`
15-
161
.. _test_suites:
172

183
Test suites
@@ -43,15 +28,3 @@ For each third party library that is supported, the following tasks are performe
4328
- The test suite is updated
4429

4530
- Replace static primary key references with dynamic references or static ``ObjectId`` references
46-
47-
.. _`project_examples`:
48-
49-
Project examples
50-
----------------
51-
52-
.. _`known_limitations`:
53-
54-
Known limitations
55-
-----------------
56-
57-
- URL configuration

0 commit comments

Comments
 (0)