-
Notifications
You must be signed in to change notification settings - Fork 126
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 Workflow and update cli documentation #6414
Conversation
cli/README.md
Outdated
@@ -31,3 +31,5 @@ go run ./cli start dev-project | |||
## Generating CLI reference docs | |||
|
|||
See `../docs/README.md` for details about the generated CLI reference docs. | |||
|
|||
dummy cli change |
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.
Remember to remove this :)
docs/docs/dummy.md
Outdated
title: Dummy | ||
--- | ||
|
||
# Dummy |
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.
And this
.github/workflows/docs-check.yml
Outdated
- name: Check if CLI docs need to be generated | ||
if: ${{ steps.filter.outputs.cli == 'true' }} | ||
run: | | ||
echo "Changes detected in cli, generating docs" | ||
make docs.generate |
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.
To avoid magic where the published docs do not match the contents of the docs
directory on main
, can we fail CI with an informative error if make docs.generate
leads to changed files (you should be able to use Git to check if it leads to uncommitted changes)?
It's an extra manual step for the developer to run and commit make docs.generate
, but it'll be good to have eyes on that during review anyway.
Co-authored-by: Benjamin Egelund-Müller <[email protected]>
Update GitHub docs workflow to check if there were cli help menu changes.