zeek/doc/scripts/zeekygen/index.rst
Tim Wojtulewicz ded98cd373 Copy docs into Zeek repo directly
This is based on commit 2731def9159247e6da8a3191783c89683363689c from the
zeek-docs repo.
2025-09-26 02:58:29 +00:00

37 lines
1.3 KiB
ReStructuredText

:orphan:
Package: zeekygen
=================
This package is loaded during the process which automatically generates
reference documentation for all Zeek scripts (i.e. "Zeekygen"). Its only
purpose is to provide an easy way to load all known Zeek scripts plus any
extra scripts needed or used by the documentation process.
:doc:`/scripts/zeekygen/__load__.zeek`
:doc:`/scripts/zeekygen/example.zeek`
This is an example script that demonstrates Zeekygen-style
documentation. It generally will make most sense when viewing
the script's raw source code and comparing to the HTML-rendered
version.
Comments in the from ``##!`` are meant to summarize the script's
purpose. They are transferred directly into the generated
`reStructuredText <http://docutils.sourceforge.net/rst.html>`_
(reST) document associated with the script.
.. tip:: You can embed directives and roles within ``##``-stylized comments.
There's also a custom role to reference any identifier node in
the Zeek Sphinx domain that's good for "see alsos", e.g.
See also: :zeek:see:`ZeekygenExample::a_var`,
:zeek:see:`ZeekygenExample::ONE`, :zeek:see:`SSH::Info`
And a custom directive does the equivalent references:
.. zeek:see:: ZeekygenExample::a_var ZeekygenExample::ONE SSH::Info