mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
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:
parent
7593d4d368
commit
e4e7a26ba1
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ void BroDoc::WriteDocFile() const
|
||||||
|
|
||||||
WriteSectionHeading(source_filename.c_str(), '=');
|
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", '-');
|
WriteSectionHeading("Overview", '-');
|
||||||
WriteStringList("%s\n", "%s\n\n", summary);
|
WriteStringList("%s\n", "%s\n\n", summary);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue