-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate docs source from parsing v2 (#1387)
This PR refactors the code used to acquire the markdown files we source our docs from. The goal is to make it easy to test file acquisition and parsing separately. The new interface looks like this: https://github.com/pulumi/pulumi-terraform-bridge/blob/856055a0cd3238780c9c35bbe605282f75cc2de7/pkg/tfgen/source.go#L30-L47 This PR is best reviewed as two separate commits: - d463605 is a byte for byte copy of the functionality that we want to refactor from `docs.go` to the newly created `source.go`. - 856055a implements and consumes the interface. This PR does not have *any* effect on downstream users. It is purely a refactor for maintainability.
- Loading branch information
Showing
3 changed files
with
231 additions
and
152 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
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.