Browse Source

Další konfigurace sphinx

okenkove_obalky
Jonas Havelka 2 years ago
parent
commit
cbf17f7709
  1. 14
      docs/conf.py

14
docs/conf.py

@ -33,6 +33,8 @@ author = 'Orgové'
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.intersphinx',
'sphinx.ext.autosectionlabel'
]
# Add any paths that contain templates here, relative to this directory.
@ -67,5 +69,17 @@ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# Provázání s jinými dokumentacemi
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
'django': ('http://docs.djangoproject.com/en/3.2/',
'http://docs.djangoproject.com/en/3.2/_objects/'),}
# Generování tříd/funkcí/atributů v pořádí jak jsou naprogramované
autodoc_member_order = "bysource"
# Nezobrazování zděděné (ze super tříd) dokumentace TODO nefunguje?
autodoc_inherit_docstrings = False
# Spouštění sphinx-apidoc
from sphinx.ext.apidoc import main
main(['--module-first', '-o', "modules", "..", "../*/migrations", "--templatedir", "_templates", '-f'])
Loading…
Cancel
Save