diff --git a/doc/templating.rst b/doc/templating.rst index 10734ef0c67..5286e0312e5 100644 --- a/doc/templating.rst +++ b/doc/templating.rst @@ -400,7 +400,7 @@ are in HTML form), these variables are also available: * ``includehidden`` (``False`` by default): if true, the TOC tree will also contain hidden entries. -.. data:: source_suffix +.. data:: page_source_suffix - The suffix of the file that was rendered. Since we support multiple source_suffix's now, + The suffix of the file that was rendered. Since we support a list of :confval:`source_suffix`, this will allow you to properly link to the original source file. diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py index d266aa46ecd..885e3d127b9 100644 --- a/sphinx/builders/html.py +++ b/sphinx/builders/html.py @@ -428,7 +428,7 @@ def get_doc_context(self, docname, body, metatags): toc = toc, # only display a TOC if there's more than one item to show display_toc = (self.env.toc_num_entries[docname] > 1), - source_suffix = source_suffix, + page_source_suffix = source_suffix, ) def write_doc(self, docname, doctree):