Skip to content

Commit

Permalink
📝 Document public API for downstream projects
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Feb 1, 2024
1 parent c67bd8f commit d001a88
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.todo",
"sphinx.ext.intersphinx",
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -59,3 +60,10 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []

intersphinx_mapping = {
"django": (
"http://docs.djangoproject.com/en/4.2/",
"http://docs.djangoproject.com/en/4.2/_objects/",
),
}
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Features
:caption: Contents:

quickstart
reference
contributing


Expand Down
3 changes: 3 additions & 0 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ Usage
Should be plug and play - there is no additional frontend stuff.

You can run ``python manage.py check`` to diagnose potential problems.

We recommend putting a link in the admin user links to the
``maykin_2fa:account_security`` view where users can manage their backup tokens.
16 changes: 16 additions & 0 deletions docs/reference.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
=============
API reference
=============

Decorators
==========

.. automodule:: maykin_2fa.decorators
:members:

Test helpers
============

.. automodule:: maykin_2fa.test
:members:

0 comments on commit d001a88

Please sign in to comment.