Skip to content
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

Add generate docs workflow #97

Merged
merged 3 commits into from
Dec 7, 2024
Merged

Conversation

dylandreimerink
Copy link
Collaborator

This PR makes our docs generation more stable and adds a CI workflow that asserts the docs have been properly generated.

We would like to be able to run assert in CI that running
`make generate-docs` will not change the output of the documentation.
This avoids issues where someone manually modifies bits of the docs
that are supposed to be generated.

However, we have a few tools that use files from libbpf as input, which
so far we have been pulling from the `master` branch which is always
in flux. This means that the output of the tools can change between
runs.

So, lets use a pinned commit hash for the libbpf reference. We will
manually have to update it periodically to pull in changes from libbpf.

Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
The BPF-HID kfuncs are present in two sets, with different flags in each
set, and different allowed program types. Our current tooling is not
smart enough to merge these when generating a single kfunc page.

In addition, the set of allowed program types has changed over time for
some of these, something our tool also currently cannot handle. So for
now, switch these to manual management, so that doc generation produces
stable results. Perhaps we can later improve the tooling to handle these
cases.

Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
@dylandreimerink dylandreimerink force-pushed the feature/doc-generate-ci branch from d6eacc5 to c7b7be3 Compare December 7, 2024 17:57
This workflow will call the `make generate-docs` command and error if
the command fails or if it causes any changes to the repository.

Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
@dylandreimerink dylandreimerink force-pushed the feature/doc-generate-ci branch 2 times, most recently from 5c7ff9b to 814887e Compare December 7, 2024 18:00
@dylandreimerink dylandreimerink merged commit 51b6337 into master Dec 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant