-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
migrate
sub-command (#314)
* Add migrate subcommand * Change migrated file extensions to `.md.tmpl` * Finish `migrate` subcommand implementation * Remove `-help` output check * Add changelog entry * Update changelog entry Co-authored-by: Brian Flad <bflad417@gmail.com> * fix changelog entry * Remove `--old-website-source-dir` flag and support migrating `docs/` subdirectory * Support converting files with any file extension to `.md.tmpl` * Refactor `Migrate()` method * Skip `layout` front matter * Fix linting errors * Add comment to generated templates explaining functionality * Remove `website/` directory at the end of migration * Fix `ineffassign` lint error * Update README.md Co-authored-by: Austin Valle <austinvalle@gmail.com> * Resolve comments from code review --------- Co-authored-by: Brian Flad <bflad417@gmail.com> Co-authored-by: Austin Valle <austinvalle@gmail.com>
- Loading branch information
1 parent
8456c0c
commit 068a226
Showing
12 changed files
with
2,413 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: FEATURES | ||
body: 'migrate: Added new `migrate` subcommand that migrates existing provider docs using the | ||
rendered website source directories (`website/docs/` or `/docs/`) to a `terraform-plugin-docs`-supported | ||
templates directory.' | ||
time: 2023-12-20T14:12:44.820323-05:00 | ||
custom: | ||
Issue: "314" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.