Skip to content

Use in-code documentation for CLI documentation in README.md#86

Merged
alexevanczuk merged 8 commits intomainfrom
ae-make-docs-consistent
Apr 17, 2023
Merged

Use in-code documentation for CLI documentation in README.md#86
alexevanczuk merged 8 commits intomainfrom
ae-make-docs-consistent

Conversation

@alexevanczuk
Copy link
Copy Markdown
Contributor

@alexevanczuk alexevanczuk commented Apr 17, 2023

The idea behind this PR is to make it easier to keep the README documentation on the CLI up to date.

Right now, we need to redundantly specify documentation for bin/packs when it is already in the CLI when using bin/packs -h or bin/packs help create (for example).

While we could simply not document it in the README, it is useful for folks to be able to use the README to know what they can do before installing a gem (or even after, as some folks prefer the README over CLI docs).

Instead, this PR uses a little generator to ensure the README is up-to-date and gives a script, OVERWRITE=1 ruby docs/verify_docs.rb, that automatically updates the docs.

If a user does not update the docs using this script after adding a CLI command, they will be met with this message in CI:
Screenshot 2023-04-17 at 3 39 15 PM

@alexevanczuk alexevanczuk force-pushed the ae-make-docs-consistent branch from a2ee332 to 64baadb Compare April 17, 2023 19:40
@alexevanczuk alexevanczuk force-pushed the ae-make-docs-consistent branch from 64baadb to afca4a1 Compare April 17, 2023 19:41
@alexevanczuk alexevanczuk merged commit 3235cc0 into main Apr 17, 2023
@alexevanczuk alexevanczuk deleted the ae-make-docs-consistent branch April 17, 2023 19:49
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.

2 participants