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 Workflow and update cli documentation #6414

Merged
merged 11 commits into from
Jan 17, 2025
Merged

Conversation

grahamplata
Copy link
Contributor

@grahamplata grahamplata commented Jan 14, 2025

Update GitHub docs workflow to check if there were cli help menu changes.

@grahamplata grahamplata self-assigned this Jan 14, 2025
@grahamplata grahamplata added the Type:Documentation Improvements or additions to documentation label Jan 14, 2025
@grahamplata grahamplata marked this pull request as ready for review January 15, 2025 15:30
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to remove this :)

title: Dummy
---

# Dummy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this

Comment on lines 40 to 44
- 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
Copy link
Contributor

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.

.github/workflows/docs-check.yml Outdated Show resolved Hide resolved
Co-authored-by: Benjamin Egelund-Müller <[email protected]>
@grahamplata grahamplata merged commit 3b5f52e into main Jan 17, 2025
5 checks passed
@grahamplata grahamplata deleted the gplata/cli-gen-workflow branch January 17, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants