mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Add extension to improve autodocs for Django models & enable source links
This commit is contained in:
parent
113977b19f
commit
091a2637ea
@ -44,6 +44,8 @@ extensions = [
|
|||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
'sphinx.ext.napoleon',
|
'sphinx.ext.napoleon',
|
||||||
'recommonmark',
|
'recommonmark',
|
||||||
|
'sphinxcontrib_django2',
|
||||||
|
'sphinx.ext.viewcode',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
@ -11,5 +11,4 @@ models
|
|||||||
|
|
||||||
.. automodule:: allianceauth.eveonline.models
|
.. automodule:: allianceauth.eveonline.models
|
||||||
:members:
|
:members:
|
||||||
:exclude-members: objects, provider
|
:exclude-members: DoesNotExist, MultipleObjectsReturned
|
||||||
:undoc-members:
|
|
||||||
|
@ -13,7 +13,8 @@ models
|
|||||||
===========
|
===========
|
||||||
|
|
||||||
.. autoclass:: allianceauth.notifications.models.Notification
|
.. autoclass:: allianceauth.notifications.models.Notification
|
||||||
:members: Level, mark_viewed, set_level
|
:members:
|
||||||
|
:exclude-members: DoesNotExist, MultipleObjectsReturned, save
|
||||||
|
|
||||||
managers
|
managers
|
||||||
===========
|
===========
|
||||||
|
@ -3,6 +3,7 @@ sphinx>=3.2.1,<4.0.0
|
|||||||
sphinx_rtd_theme==0.5.0
|
sphinx_rtd_theme==0.5.0
|
||||||
recommonmark==0.6.0
|
recommonmark==0.6.0
|
||||||
Jinja2<3.1
|
Jinja2<3.1
|
||||||
|
sphinxcontrib-django2
|
||||||
|
|
||||||
# Autodoc dependencies
|
# Autodoc dependencies
|
||||||
django>=3.2,<4.0.0
|
django>=3.2,<4.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user