Update pulumi-command shortcode to use local file #16072
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
pulumi-commandshortcode is used to emit an inline copy of the CLI's root command docs, which is used on a couple pages:Originally, this shortcode simply opened the local file. Then when the docs were split between pulumi/docs and pulumi/pulumi-hugo repos, the shortcode was changed to make an API request to GitHub to grab the file's content from the docs repo.
We've since merged these two repos back into the single pulumi/docs repo, so there's no longer a need to make a network request to get the content. We can go back to just reading the file. Which is what this change does.
This should make site generation slightly faster and less flaky.