mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/zeekygen-param-doc-field'
* origin/topic/awelzel/zeekygen-param-doc-field:
Bump doc submodule
zeekygen: Render function parameters as :param x: instead of ❌
This commit is contained in:
commit
2bd1ae9c92
8 changed files with 34 additions and 13 deletions
17
CHANGES
17
CHANGES
|
@ -1,3 +1,20 @@
|
||||||
|
6.0.0-dev.592 | 2023-05-17 09:02:09 +0200
|
||||||
|
|
||||||
|
* zeekygen: Render function parameters as :param x: instead of :x: (Arne Welzel, Corelight)
|
||||||
|
|
||||||
|
We're currently rendering parameter descriptions from .bif file into
|
||||||
|
the .rst as follows:
|
||||||
|
|
||||||
|
:cid: The connection identifier.
|
||||||
|
|
||||||
|
:aid: The analyzer ID.
|
||||||
|
|
||||||
|
Switch this to :param cid: instead so that we can have Sphinx deal with
|
||||||
|
this as param docfield and group all parameters into a single section.
|
||||||
|
|
||||||
|
Currently, having the bare :cid: style causes sphinx to treat it as an
|
||||||
|
unknown field type, capitalize it and render it.
|
||||||
|
|
||||||
6.0.0-dev.589 | 2023-05-16 12:15:07 +0200
|
6.0.0-dev.589 | 2023-05-16 12:15:07 +0200
|
||||||
|
|
||||||
* Move Spicy submodule from `auxil/spicy/spicy` to `auxil/spicy`.
|
* Move Spicy submodule from `auxil/spicy/spicy` to `auxil/spicy`.
|
||||||
|
|
4
NEWS
4
NEWS
|
@ -371,6 +371,10 @@ Changed Functionality
|
||||||
previous behavior of not discarding state. Setting ``SMB::enable_state_clear``
|
previous behavior of not discarding state. Setting ``SMB::enable_state_clear``
|
||||||
to ``F`` skips the script-layer state clearing logic.
|
to ``F`` skips the script-layer state clearing logic.
|
||||||
|
|
||||||
|
- Function parameters are rendered by Zeekygen as ``:param x`` rather than just
|
||||||
|
``:x:``. This allows to group parameters Zeek's documentation.
|
||||||
|
|
||||||
|
|
||||||
Removed Functionality
|
Removed Functionality
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
6.0.0-dev.589
|
6.0.0-dev.592
|
||||||
|
|
2
doc
2
doc
|
@ -1 +1 @@
|
||||||
Subproject commit 00fc392ac2d61faa40e15689acab77a6d3dc773d
|
Subproject commit cfd1c6a1e479cfeb1f08c379fc471bb8c7080de6
|
|
@ -70,7 +70,7 @@ bool prettify_params(string& s)
|
||||||
if ( identifier == "Returns" )
|
if ( identifier == "Returns" )
|
||||||
subst = ":returns";
|
subst = ":returns";
|
||||||
else
|
else
|
||||||
subst = ":" + identifier;
|
subst = ":param " + identifier;
|
||||||
|
|
||||||
s.replace(identifier_start_pos, identifier.size(), subst);
|
s.replace(identifier_start_pos, identifier.size(), subst);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -260,7 +260,7 @@ Events
|
||||||
link. Use the see role instead: :zeek:see:`ZeekygenExample::a_function`.
|
link. Use the see role instead: :zeek:see:`ZeekygenExample::a_function`.
|
||||||
|
|
||||||
|
|
||||||
:name: Describe the argument here.
|
:param name: Describe the argument here.
|
||||||
|
|
||||||
Functions
|
Functions
|
||||||
#########
|
#########
|
||||||
|
@ -275,11 +275,11 @@ Functions
|
||||||
empty comments is optional, but improves readability of script.
|
empty comments is optional, but improves readability of script.
|
||||||
|
|
||||||
|
|
||||||
:tag: Function arguments can be described
|
:param tag: Function arguments can be described
|
||||||
like this.
|
like this.
|
||||||
|
|
||||||
|
|
||||||
:msg: Another param.
|
:param msg: Another param.
|
||||||
|
|
||||||
|
|
||||||
:returns: Describe the return type here.
|
:returns: Describe the return type here.
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
This is a global function declaration.
|
This is a global function declaration.
|
||||||
|
|
||||||
|
|
||||||
:i: First param.
|
:param i: First param.
|
||||||
|
|
||||||
:j: Second param.
|
:param j: Second param.
|
||||||
|
|
||||||
|
|
||||||
:returns: A string.
|
:returns: A string.
|
||||||
|
@ -23,9 +23,9 @@
|
||||||
This is a record field function.
|
This is a record field function.
|
||||||
|
|
||||||
|
|
||||||
:i: First param.
|
:param i: First param.
|
||||||
|
|
||||||
:j: Second param.
|
:param j: Second param.
|
||||||
|
|
||||||
|
|
||||||
:returns: A string.
|
:returns: A string.
|
||||||
|
|
|
@ -212,11 +212,11 @@
|
||||||
empty comments is optional, but improves readability of script.
|
empty comments is optional, but improves readability of script.
|
||||||
|
|
||||||
|
|
||||||
:tag: Function arguments can be described
|
:param tag: Function arguments can be described
|
||||||
like this.
|
like this.
|
||||||
|
|
||||||
|
|
||||||
:msg: Another param.
|
:param msg: Another param.
|
||||||
|
|
||||||
|
|
||||||
:returns: Describe the return type here.
|
:returns: Describe the return type here.
|
||||||
|
@ -234,7 +234,7 @@
|
||||||
link. Use the see role instead: :zeek:see:`ZeekygenExample::a_function`.
|
link. Use the see role instead: :zeek:see:`ZeekygenExample::a_function`.
|
||||||
|
|
||||||
|
|
||||||
:name: Describe the argument here.
|
:param name: Describe the argument here.
|
||||||
|
|
||||||
.. zeek:id:: ZeekygenExample::function_without_proto
|
.. zeek:id:: ZeekygenExample::function_without_proto
|
||||||
:source-code: zeekygen/example.zeek 176 184
|
:source-code: zeekygen/example.zeek 176 184
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue