diff --git a/layouts/shortcodes/pulumi-command.html b/layouts/shortcodes/pulumi-command.html index c144a83a06d6..ca9a74746edf 100644 --- a/layouts/shortcodes/pulumi-command.html +++ b/layouts/shortcodes/pulumi-command.html @@ -1,16 +1,5 @@ -{{/* Fetch the current version of the Pulumi CLI doc." suffix. */}} -{{ $headers := dict }} -{{ with (os.Getenv "GITHUB_TOKEN") }} - {{ $token := printf "Bearer %s" . }} - {{ $headers = (dict "Authorization" $token) }} -{{ end }} - -{{- $json := resources.GetRemote "https://api.github.com/repos/pulumi/docs/contents/content/docs/iac/cli/commands/pulumi.md" $headers }} -{{ with $json }} - {{ $data := . | transform.Unmarshal }} - {{ $content := base64Decode $data.content }} - {{/* Remove front matter and "Auto generated by..." suffix. */}} - {{- $content = replaceRE "(?s)---.*---" "" $content -}} - {{- $content = replaceRE "(?m)^###### Auto generated by .*$" "" $content -}} - {{- markdownify $content -}} -{{ end }} +{{- $content := readFile "content/docs/iac/cli/commands/pulumi.md" -}} +{{/* Remove front matter and "Auto generated by..." suffix. */}} +{{- $content = replaceRE "(?s)---.*---" "" $content -}} +{{- $content = replaceRE "(?m)^###### Auto generated by .*$" "" $content -}} +{{- markdownify $content -}}