Add :download: role to reST docs for linking to original script source files.

This role allows Sphinx to copy non-reST files in the source tree into
the output tree.
This commit is contained in:
Jon Siwek 2011-04-06 12:12:21 -05:00
parent 7593d4d368
commit e4e7a26ba1

View file

@ -100,7 +100,8 @@ void BroDoc::WriteDocFile() const
WriteSectionHeading(source_filename.c_str(), '=');
WriteToDoc("\n`Original Source File <%s>`_\n\n", source_filename.c_str());
WriteToDoc("\n:download:`Original Source File <%s>`\n\n",
source_filename.c_str());
WriteSectionHeading("Overview", '-');
WriteStringList("%s\n", "%s\n\n", summary);