From e4e7a26ba198b8d58cdaa10c2e9679066534781e Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Wed, 6 Apr 2011 12:12:21 -0500 Subject: [PATCH] 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. --- src/BroDoc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BroDoc.cc b/src/BroDoc.cc index ee1f290154..226e3e80a6 100644 --- a/src/BroDoc.cc +++ b/src/BroDoc.cc @@ -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);