diff --git a/CHANGELOG.md b/CHANGELOG.md index eb34bdf9..f9f7021b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 0.14.0 (Unreleased) + +BUG FIXES: + +* cmd/validate: allow top level templates (`resources.md.tmpl` and `data-sources.md.tmpl`) to pass validation ([#184](https://github.com/hashicorp/terraform-plugin-docs/pull/184)). + # 0.13.0 (July 8, 2022) ENHANCEMENTS: diff --git a/internal/provider/validate.go b/internal/provider/validate.go index 5bc53656..1dc5437c 100644 --- a/internal/provider/validate.go +++ b/internal/provider/validate.go @@ -34,7 +34,6 @@ func Validate(ui cli.Ui) error { return err } } - return err case dirExists("docs"): ui.Info("detected static docs directory, running checks") return validateStaticDocs(ui, "docs") @@ -43,6 +42,8 @@ func Validate(ui cli.Ui) error { return validateLegacyWebsite(ui, "website") } + ui.Info("validation checks complete, no issues detected!") + return nil } @@ -55,6 +56,10 @@ func validateTemplates(ui cli.Ui, dir string) error { checkAllowedFiles( "index.md", "index.md.tmpl", + "resources.md", + "resources.md.tmpl", + "data-sources.md", + "data-sources.md.tmpl", ), checkAllowedDirs( "data-sources",