mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/ci-generate-docs-run-pre-commit'
* origin/topic/awelzel/ci-generate-docs-run-pre-commit: github/generate-docs: Run pre-commit cluster/backends/zeromq: Fix rst link in docs
This commit is contained in:
commit
1b655836be
4 changed files with 23 additions and 3 deletions
13
.github/workflows/generate-docs.yml
vendored
13
.github/workflows/generate-docs.yml
vendored
|
@ -73,6 +73,7 @@ jobs:
|
||||||
# support and explicitly use `python3` for all invocations.
|
# support and explicitly use `python3` for all invocations.
|
||||||
sudo ln -sf /usr/bin/python3 /usr/local/bin/python
|
sudo ln -sf /usr/bin/python3 /usr/local/bin/python
|
||||||
sudo pip3 install --break-system-packages -r doc/requirements.txt
|
sudo pip3 install --break-system-packages -r doc/requirements.txt
|
||||||
|
sudo pip3 install --break-system-packages pre-commit
|
||||||
|
|
||||||
- name: ccache
|
- name: ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
@ -89,6 +90,12 @@ jobs:
|
||||||
- name: Check Spicy docs
|
- name: Check Spicy docs
|
||||||
run: cd doc && make check-spicy-docs
|
run: cd doc && make check-spicy-docs
|
||||||
|
|
||||||
|
# Cache pre-commit environment for reuse.
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pre-commit
|
||||||
|
key: doc-pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('doc/.pre-commit-config.yaml') }}
|
||||||
|
|
||||||
- name: Generate Docs
|
- name: Generate Docs
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name zeek-bot
|
git config --global user.name zeek-bot
|
||||||
|
@ -97,8 +104,12 @@ jobs:
|
||||||
echo "*** Generating Zeekygen Docs ***"
|
echo "*** Generating Zeekygen Docs ***"
|
||||||
./ci/update-zeekygen-docs.sh || exit 1
|
./ci/update-zeekygen-docs.sh || exit 1
|
||||||
|
|
||||||
echo "*** Generating Sphinx Docs ***"
|
|
||||||
cd doc
|
cd doc
|
||||||
|
|
||||||
|
echo "*** Running pre-commit ***"
|
||||||
|
pre-commit run -a --show-diff-on-failure --color=always
|
||||||
|
|
||||||
|
echo "*** Generating Sphinx Docs ***"
|
||||||
make > make.out 2>&1
|
make > make.out 2>&1
|
||||||
make_status=$?
|
make_status=$?
|
||||||
echo "*** Sphinx Build Output ***"
|
echo "*** Sphinx Build Output ***"
|
||||||
|
|
9
CHANGES
9
CHANGES
|
@ -1,3 +1,12 @@
|
||||||
|
7.2.0-dev.314 | 2025-03-12 13:10:58 +0100
|
||||||
|
|
||||||
|
* github/generate-docs: Run pre-commit (Arne Welzel, Corelight)
|
||||||
|
|
||||||
|
...it's a bit unfortunate that we cannot use the action for this. It's
|
||||||
|
because ./doc is a submodule and not the main repo.
|
||||||
|
|
||||||
|
* cluster/backends/zeromq: Fix rst link in docs (Arne Welzel, Corelight)
|
||||||
|
|
||||||
7.2.0-dev.310 | 2025-03-11 10:50:49 +0100
|
7.2.0-dev.310 | 2025-03-11 10:50:49 +0100
|
||||||
|
|
||||||
* ci/opensuse-tumpleweed: Bust cache (Arne Welzel, Corelight)
|
* ci/opensuse-tumpleweed: Bust cache (Arne Welzel, Corelight)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
7.2.0-dev.310
|
7.2.0-dev.314
|
||||||
|
|
|
@ -59,7 +59,7 @@ export {
|
||||||
## acts as a central broker.
|
## acts as a central broker.
|
||||||
|
|
||||||
## See ZeroMQ's `ZMQ_IO_THREADS documentation <http://api.zeromq.org/4-2:zmq-ctx-set#toc4>`_
|
## See ZeroMQ's `ZMQ_IO_THREADS documentation <http://api.zeromq.org/4-2:zmq-ctx-set#toc4>`_
|
||||||
## and the `I/O threads <https://zguide.zeromq.org/docs/chapter2/#I-O-Threads>`
|
## and the `I/O threads <https://zguide.zeromq.org/docs/chapter2/#I-O-Threads>`_
|
||||||
## section in the ZeroMQ guide for details.
|
## section in the ZeroMQ guide for details.
|
||||||
const proxy_io_threads = 2 &redef;
|
const proxy_io_threads = 2 &redef;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue