mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
![]() Closes #997. * topic/robin/sqlite-merge: (25 commits) Fix to make sqlite test consistent, and updating coverage baselines Avoid a CMake warning about 3rdparty looking like a number. Fixing linker error. and there is no has-reader. make sqlite3 executable required and add test-cases for errors Renaming src/external -> src/3rdparty fix a few small rough edges (mostly comments that do no longer apply) fix bug in input-manager regarding enums that a writer reads without 0-terminating the string actually make sqlite work again (tests passed because the writer was not actually defined because of the define.) add sqlite distribution. fix warnings, update baselines, handle rotation add sqlite tests and fix small vector/set escaping bugs fix small bug with vectors and sets. make work with newer AsciiFormatter. start adding a different text for empty records for the sqlite writer. no, you will never guess from where I copied this file... make sqlite support more or less work for logging and input make sqlite-writer more stable. make it compile with new version of AsciiInputOutput and adapt to AsciiInputOutput - seems to work... ... Conflicts: scripts/base/frameworks/input/__load__.bro src/CMakeLists.txt src/input.bif src/input/Manager.cc src/main.cc src/types.bif testing/btest/Baseline/coverage.bare-load-baseline/canonified_loaded_scripts.log testing/btest/Baseline/coverage.default-load-baseline/canonified_loaded_scripts.log |
||
---|---|---|
.. | ||
bifs.rst | ||
builtins.rst | ||
CMakeLists.txt | ||
DocSourcesList.cmake | ||
example.bro | ||
example.rst | ||
genDocSourcesList.sh | ||
index.rst | ||
internal.rst | ||
packages.rst | ||
README |
This directory contains scripts and templates that can be used to automate the generation of Bro script documentation. Several build targets are defined by CMake and available in the top-level Makefile: ``restdoc`` This target uses Bro to parse policy scripts in order to generate reStructuredText (reST) documentation from them. The list of scripts for which to generate reST documentation is defined in the ``CMakeLists.txt`` file in this directory. Script documentation is rebuild automatically if the policy script from which it is derived or the Bro binary becomes out of date The resulting output from this target can be found in the CMake ``build/`` directory inside ``reST`` (a symlink to ``doc/scripts/rest_output``). ``restclean`` This target removes any reST documentation that has been generated so far. The ``genDocSourcesList.sh`` script can be run to automatically generate ``DocSourcesList.cmake``, which is the file CMake uses to define the list of documentation targets. This script should be run after adding new Bro script source files, and the changes commited to git. If a script shouldn't have documentation generated for it, there's also a blacklist manifest that can be maintained in the ``genDocSourcesList.sh`` script. The blacklist can also be used if you want to define a certain grouping for the script's generated docs to belong to (as opposed to the automatic grouping the happens for script packages/directories). To do that, add the script's name to the blacklist, then append a ``rest_target()`` to the ``statictext`` variable where the first argument is the source directory containing the policy script to document, the second argument is the file name of the policy script, and the third argument is the path/name of a pre-created reST document in the ``../`` source directory to which the ``make doc`` process can append script documentation references. This pre-created reST document should also then be linked to from the TOC tree in ``../index.rst``. See ``example.bro`` for an example of how to document a Bro script such that ``make doc`` will be able to produce reST/HTML documentation for it.