Open mason3k opened 6 months ago
I think this is because the page in question is an orphan. Thus, it will not be located when traversing the table of contents. I suggest the following change:
def get_target_uri(self, docname, typ=None):
if docname not in self.env.all_docs: # this is my code replacing the line below
# if docname not in self._docnames:
raise NoUri(docname, typ)
else:
return '%' + docname
Thanks for the bug report and suggested fix!
Can you provide a (preferably minimal) Sphinx project that triggers the bug?
Is there an existing issue for this?
Sphinx or rinoh output
Source files
rinoh/frontend/sphinx/__init__.py
get_target_uri
Versions