I have a README.rst on GitHub that is also incorporated into the Sphinx-generated documentation for a Python project. I would like to include a note at the top of the file that will be shown on GitHub (which simply renders the .rst) but not shown in the Sphinx-generated docs.
I know that I can include a comment in an .rst
file using .. blah blah blah
, but is there some way that I can include a line that is only considered a comment by Sphinx? (Or, have that line otherwise ignored by Sphinx.)
.. note::
that do things in Sphinx but don't do much in normal RST. And I suppose it doesn't need to be a comment, I would just like Sphinx to not include the text in the final generated docs. – DanHickstein