File: conflicting_sphinx_extension.py

package info (click to toggle)
python-sphinxcontrib-django 2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 608 kB
  • sloc: python: 1,448; makefile: 20; sh: 6
file content (7 lines) | stat: -rw-r--r-- 216 bytes parent folder | download
1
2
3
4
5
6
7
def setup(app):
    """
    Sphinx extension which also registers a "setting" directive
    """
    app.add_crossref_type(
        directivename="setting", rolename="setting", indextemplate="pair: %s; setting"
    )