File: conflicting_sphinx_extension.py

package info (click to toggle)
python-sphinxcontrib-django 2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 636 kB
  • sloc: python: 1,450; makefile: 20; sh: 6
file content (7 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (2)
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"
    )