-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve generated documentation #6037
Conversation
The Filebeat module all docs follow the same template. This updates the generated docs to contain this template and mark the section that need work as TODOs.
@dedemorton You review on this one would be appreciated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Just a couple of comments. Otherwise, LGTM.
include::../include/configuring-intro.asciidoc[] | ||
|
||
TODO: provide an example configuration | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an example in config-option-intro.asciidoc that uses the fileset_ex
attribute to resolve a fileset name:
TIP: When you specify a setting at the command line, remember to prefix the
setting with the module name, for example, +{modulename}.{fileset_ex}.var.paths+
instead of +{fileset_ex}.var.paths+.
So...I would add a TODO item before line 54. Something like:
TODO: Set the fileset_ex attribute to the name of any fileset in your module. For example:
:fileset_ex: access
|
||
include::../include/config-option-intro.asciidoc[] | ||
|
||
TODO: document: fileset variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we expand the instructions here and provide an example? Or will that confuse users? If you think this would be confusing to module developers, we can provide feedback when the module is submitted for review.
TODO: document: fileset variables. If you're describing a variable that's common to other modules, you
can reuse shared descriptions by including the relevant file. For example:
[float]
==== `access` log fileset settings
include::../include/var-paths.asciidoc[]
@dedemorton While addressing your comments I realised that I can also make use of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The Filebeat module all docs follow the same template. This updates
the generated docs to contain this template and mark the section that
need work as TODOs.