Documentation ¶
Index ¶
- Constants
- Variables
- func Generate(ui cli.Ui, ...) error
- func Migrate(ui cli.Ui, providerDir string, templatesDir string, examplesDir string, ...) error
- func TerraformProviderSchemaFromFile(providerName, providersSchemaPath string, l *Logger) (*tfjson.ProviderSchema, error)
- func TerraformProviderSchemaFromTerraform(ctx context.Context, providerName, providerDir, tfVersion string, l *Logger) (*tfjson.ProviderSchema, error)
- func Validate(ui cli.Ui, providerDir, providerName, providersSchemaPath, tfversion string) error
- type Logger
Constants ¶
View Source
const ( FileExtensionHtmlMarkdown = `.html.markdown` FileExtensionHtmlMd = `.html.md` FileExtensionMarkdown = `.markdown` FileExtensionMd = `.md` DocumentationGlobPattern = `{docs/index.*,docs/{,cdktf/}{data-sources,ephemeral-resources,guides,resources,functions}/**/*,website/docs/**/*}` DocumentationDirGlobPattern = `{docs/{,cdktf/}{data-sources,ephemeral-resources,guides,resources,functions}{,/*},website/docs/**/*}` )
Variables ¶
View Source
var LegacyFrontMatterOptions = &check.FrontMatterOptions{ NoSidebarCurrent: true, RequireDescription: true, RequireLayout: true, RequirePageTitle: true, }
View Source
var LegacyIndexFrontMatterOptions = &check.FrontMatterOptions{ NoSidebarCurrent: true, NoSubcategory: true, RequireDescription: true, RequireLayout: true, RequirePageTitle: true, }
View Source
var RegistryFrontMatterOptions = &check.FrontMatterOptions{ NoLayout: true, NoSidebarCurrent: true, }
View Source
var RegistryGuideFrontMatterOptions = &check.FrontMatterOptions{ NoLayout: true, NoSidebarCurrent: true, RequirePageTitle: true, }
View Source
var RegistryIndexFrontMatterOptions = &check.FrontMatterOptions{ NoLayout: true, NoSidebarCurrent: true, NoSubcategory: true, }
View Source
var ValidLegacyFileExtensions = []string{ FileExtensionHtmlMarkdown, FileExtensionHtmlMd, FileExtensionMarkdown, FileExtensionMd, }
View Source
var ValidRegistryFileExtensions = []string{ FileExtensionMd, }
Functions ¶
func TerraformProviderSchemaFromFile ¶ added in v0.19.0
func TerraformProviderSchemaFromFile(providerName, providersSchemaPath string, l *Logger) (*tfjson.ProviderSchema, error)
func TerraformProviderSchemaFromTerraform ¶ added in v0.19.0
Types ¶
Click to show internal directories.
Click to hide internal directories.