Is it possible to use docnames which include the file's extension?

7 views
Skip to first unread message

Bryan Jones

unread,
Sep 25, 2018, 3:54:16 PM9/25/18
to sphinx-users
It is possible to have a docname that includes the file's extension? I'd like something like this:

In conf.py, source_suffix = ['.rst', '.txt']

In index.rst, a sentence like This is a link to :doc:`test.rst`, while this is a link to :doc:`test.txt`.

Two files named test.rst and test.txt.

Currently, the :doc: directives produce an error; the correct form is :doc:`test`, which only allows me to link to test.rst, but not test.txt.

Likewise, a :toctree: entry always links to test.rst, even if I specify the filename test.txt.

Any thoughts/help/ideas would be appreciated! I'm using Sphinx 1.7.9, Python 3.7, Windows 10.

Thanks,

Bryan
Reply all
Reply to author
Forward
0 new messages