-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Docs: Tidy up docs-related make targets #5167
Conversation
Signed-off-by: Matej Gera <matejgera@gmail.com>
Signed-off-by: Matej Gera <matejgera@gmail.com>
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 looks good to me! 👍
.github/workflows/docs.yaml
Outdated
@@ -28,6 +28,6 @@ jobs: | |||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |||
|
|||
- name: Check docs | |||
run: make check-docs | |||
run: make docs |
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.
I'm a bit worried about this name change because it seems inconsistent. I think that check-*
is more in line with our other make targets, for example the one below, which are designed to exit non-zero when something is wrong
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.
You are right, this does not fit nicely with other targets. I changed this to:
- Have
docs
target correctly generate and format the docs, including white noise handling - Keep
check-docs
as a target to check against discrepancies and exiting with error if some are found
Signed-off-by: Matej Gera <matejgera@gmail.com>
96ea922
to
5ab9133
Compare
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.
💪
* Tidy up doc targets Signed-off-by: Matej Gera <matejgera@gmail.com> * Fix CHANGELOG formatting Signed-off-by: Matej Gera <matejgera@gmail.com> * Adjust Make targets after feedback Signed-off-by: Matej Gera <matejgera@gmail.com> Signed-off-by: Nicholaswang <wzhever@gmail.com>
Changes
Make targets to check and / or generate docs can be confusing since:
check-docs
which however also generates and formats docsdocs
target, which generates docs but this target is unused at the momentThe suggested way to improve this is:
docs
target generate and format docs correctly, including removing white noise.check-docs
target check generated docs against discrepancies in formatting, links and white noise.Also fixes CHANGELOG formatting issue that is currently in
main
.Verification
Ran the targets locally.