-
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.
Add an Overview subheader to logically separate Installation and gene…
…ral provider info (#2419) This pull request is the result of discovering #2420. This fix: - Avoids the rendering issues for unheadered text as outlined in #2420 by adding a `##` header - Visually and logically separates the provider summary text from the installation section. - Strips the H1 header earlier in the doc transformation so we can verify remaining content - Strips the "schema generated by tfplugindocs" HTML comment TL;DR: while this is on its face a quick fix, we _do_ want to separate the installation from the general text, so adding the Overview header is something we'd want to do anyway. Screenshots: Before: <img width="550" alt="Screenshot 2024-09-17 at 11 16 15 AM" src="https://github.com/user-attachments/assets/0b07e7a3-2f74-4049-9382-e5739d13577d"> After: <img width="578" alt="Screenshot 2024-09-17 at 11 16 34 AM" src="https://github.com/user-attachments/assets/2f648067-56a2-4c0c-96c5-d8297afe7f8c">
- Loading branch information
1 parent
2b4cd9b
commit 1cb7594
Showing
6 changed files
with
104 additions
and
9 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
2 changes: 2 additions & 0 deletions
2
pkg/tfgen/test_data/write-overview-header/empty-overview-with-context-expected.md
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,2 @@ | ||
## Schema | ||
Find information about the test provider schema here. |
4 changes: 4 additions & 0 deletions
4
pkg/tfgen/test_data/write-overview-header/empty-overview-with-context-input.md
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,4 @@ | ||
# Test Provider | ||
|
||
## Schema | ||
Find information about the test provider schema here. |
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,6 @@ | ||
|
||
|
||
|
||
|
||
|
||
## Schema |
11 changes: 11 additions & 0 deletions
11
pkg/tfgen/test_data/write-overview-header/with-overview-text.md
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,11 @@ | ||
|
||
# test Provider | ||
|
||
This provider has some functionality that we're introducing here. | ||
|
||
More text | ||
|
||
Lorem ipsum | ||
|
||
|
||
## Schema |