Skip to content

Commit

Permalink
Add autogen warning to index file
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Oct 17, 2024
1 parent 52f4f79 commit 1ffc289
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/tfgen/installation_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ func plainDocsParser(docFile *DocFile, g *Generator) ([]byte, error) {
// Determine if we should write an overview header.
overviewHeader := getOverviewHeader(content)

autoGenMessage := fmt.Sprint(
"<!-- *** WARNING: This file was auto-generated. " +
"Do not edit by hand unless you're certain you know what you are doing! *** -->\n")

// Add instructions to top of file
contentStr := frontMatter + installationInstructions + overviewHeader + string(content)
contentStr := frontMatter + autoGenMessage + installationInstructions + overviewHeader + string(content)

//Translate code blocks to Pulumi
contentStr, err = translateCodeBlocks(contentStr, g)
Expand Down

0 comments on commit 1ffc289

Please sign in to comment.