I'm trying to use the autosectionlabel_prefix_document
config value in the autosectionlabel
extension described here. I've loaded the extension in conf.py
, and it works fine. Currently, I've tried adding the line:
autosectionlabel_prefix_document = True
to conf.py
, but it's throwing the error message:
WARNING: undefined label: shaders:force shaders
(if the link has no caption the label must precede a section header)
Is there something I'm missing for configuring extensions? The documentation will be hosted on ReadTheDocs so I don't really have control over the extensions themselves, and it seems sloppy to have to do that anyway.
Just to be sure I have the syntax down in case that's the problem, I'm using
:ref:`shaders:force shaders`
which should be creating a link called force shaders
to the subheading force shaders
in the document shaders.rst
.
Relevant versions:
Python 2.7
Sphinx 1.7.5
PyCharm 2018.1.4