Skip to content

Commit

Permalink
remove sphinx.ext.autosectionlabel
Browse files Browse the repository at this point in the history
  • Loading branch information
troyraen committed Jul 22, 2024
1 parent 335011d commit af7636a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
"sphinx_copybutton",
# [FIXME] do we really need these?
# "sphinx_autodoc_typehints", # causes error can't resolve forward reference
"sphinx.ext.autosectionlabel",
# "sphinx.ext.autosectionlabel", # does not allow duplicate headings on listings.rst
"sphinx.ext.mathjax",
]

set_type_checking_flag = True # set typing.TYPE_CHECKING = True
typehints_defaults = "braces" # adds (default: ...) after the type

# Make sure the target is unique
autosectionlabel_prefix_document = True
# autosectionlabel_prefix_document = True
# now can reference pages with :ref:`{path/to/page}:{title-of-section}`
# but can't use this with custom labels, so
# autosectionlabel_prefix_document = False
Expand Down

0 comments on commit af7636a

Please sign in to comment.