Skip to content

Update docs #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,28 @@
Django MongoDB CLI
==================

For testing Django MongoDB Backend with MongoDB's Django fork and third party libraries.

.. note::

This documentation is for the DBX Python team and developers of third
party libraries that want to integrate their library with Django
MongoDB Backend.
This documentation is for the MongoDB DBX Python team and developers of third
party libraries that support Django MongoDB Backend. End users of
Django MongoDB Backend should refer to the
`Django MongoDB Backend documentation`_.

This library provides the ``dm`` command line utility which can be used for:

- Testing `Django MongoDB Backend`_ with MongoDB's `Django fork`_ and :ref:`third party libraries <third-party-libraries>` with the ``dm repo`` command.
- Testing `Django MongoDB Backend`_ projects with :ref:`third party libraries <third-party-libraries>` with the ``dm startproject`` command.

Table of Contents
-----------------

.. toctree::
:maxdepth: 2

installation
installation/index
third-party-library-support
supported-libraries/index

.. _`Django MongoDB Backend`: https://github.com/mongodb/django-mongodb-backend
.. _`Django fork`: https://github.com/mongodb-forks/django
.. _`Django MongoDB Backend documentation`: https://www.mongodb.com/docs/languages/python/django-mongodb/v5.0/
10 changes: 0 additions & 10 deletions docs/source/installation.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/source/installation/clone-repository.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Clone the repository
====================

::

git clone https://github.com/mongodb-labs/django-mongodb-cli
cd django-mongodb-cli
8 changes: 8 additions & 0 deletions docs/source/installation/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Installation
============


.. toctree::
clone-repository
venv
usage
3 changes: 3 additions & 0 deletions docs/source/supported-libraries/index.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

.. _third-party-libraries:

Supported libraries
===================

Expand Down
18 changes: 15 additions & 3 deletions docs/source/third-party-library-support.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
Third party library support
===========================

.. note::

This is the criteria used to determine if a third party library is supported
by Django MongoDB Backend. It is not a guarantee that the library will
work without issues, just that these criteria have been met.

Support for third party libraries is determined via the following:

- Test suites
- Project examples
- Known limitations
- :ref:`Test suites <test_suites>`
- :ref:`Project examples <project_examples>`
- :ref:`Known limitations <known_limitations>`

.. _test_suites:

Test suites
-----------
Expand Down Expand Up @@ -36,9 +44,13 @@ For each third party library that is supported, the following tasks are performe

- Replace static primary key references with dynamic references or static ``ObjectId`` references

.. _`project_examples`:

Project examples
----------------

.. _`known_limitations`:

Known limitations
-----------------

Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,8 @@ alias b := sphinx-build
sphinx-serve:
cd docs/_build && python -m http.server
alias ss := sphinx-serve

[group('sphinx')]
sphinx-clean:
rm -rvf docs/_build
alias sc := sphinx-clean