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

Update docs and auto gen so it is consistent with product docs #37

Merged
merged 8 commits into from
Mar 21, 2024

Conversation

im2nguyen
Copy link
Contributor

This PR is a companion to https://github.com/hashicorp/hcp-docs/pull/877 and fixes the majority of the suggestions.

@im2nguyen im2nguyen requested a review from dadgar March 19, 2024 06:08
Copy link
Collaborator

@dadgar dadgar left a comment

Choose a reason for hiding this comment

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

Looks really good. I didn't mark all of them, but there are some code blocks that use `` directly rather than using the mdCodeOrBold template, so can we update those.

So that we stick to the conventions you are adding here, do you think you can add a docs/command_documentation.md that outlines the guidance you are putting into place here.

internal/commands/auth/auth.go Outdated Show resolved Hide resolved
internal/commands/organizations/iam/read_policy.go Outdated Show resolved Hide resolved
internal/commands/organizations/list.go Outdated Show resolved Hide resolved
internal/commands/organizations/read.go Outdated Show resolved Hide resolved
internal/commands/profile/profiles/activate.go Outdated Show resolved Hide resolved
internal/commands/profile/profiles/rename.go Outdated Show resolved Hide resolved
internal/commands/profile/set.go Show resolved Hide resolved
internal/commands/projects/list.go Outdated Show resolved Hide resolved
internal/commands/projects/read.go Outdated Show resolved Hide resolved
internal/pkg/cmd/gen_md.go Show resolved Hide resolved
@dadgar dadgar added the pr/no-changelog Disable enforcement of changelog entry label Mar 19, 2024
Comment on lines 233 to 235
fmt.Fprintf(buf, "- `-%s, %s` -", flag.Shorthand, longDisplay)
} else {
fmt.Fprintf(buf, "`%s`\n\n", longDisplay)
fmt.Fprintf(buf, "- `%s` - ", longDisplay)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@im2nguyen im2nguyen requested a review from a team as a code owner March 20, 2024 04:10
@im2nguyen im2nguyen requested a review from dadgar March 20, 2024 16:34
@dadgar dadgar force-pushed the docs/style-updates-auto-gen branch from a2c3e49 to 77cab1d Compare March 20, 2024 16:50
@dadgar
Copy link
Collaborator

dadgar commented Mar 20, 2024

Mentioned offline, we will have to tweak the flag indents before merging

screenshot_2024-03-20_at_9 42 36___am

@im2nguyen
Copy link
Contributor Author

If hcp and hcp-docs are in the same directory, the following command (inside hcp) auto-generates docs and moves it over to hcp-docs.

make gen/docs && rm -rf ../hcp-docs/content/docs/cli/commands && cp -r web-docs/ ../hcp-docs/content/docs/cli/commands && rm ../hcp-docs/content/docs/cli/commands/nav.json

@im2nguyen
Copy link
Contributor Author

Mentioned offline, we will have to tweak the flag indents before merging

screenshot_2024-03-20_at_9 42 36___am

Addressed this in edca4ca!

image

$ hcp iam workload-identity-providers create-cred-file \
iam/project/123/service-principal/my-sp/workload-identity-provider/aws \
--aws \
--output-file=credentials.json
`),
},
{
Preamble: `Create a credential file for a GCP workload:`,
Preamble: `Create a credential file for a GCP workload.`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should end with a colon not period

@dadgar dadgar merged commit 6315863 into main Mar 21, 2024
5 checks passed
@dadgar dadgar deleted the docs/style-updates-auto-gen branch March 21, 2024 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-changelog Disable enforcement of changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants