Skip to content

Commit 1f28b7c

Browse files
authored
Move schemamd and functionmd packages to internal (#354)
* Move `schemamd` and `functionmd` packages to `internal` * Add changelog entries * Switch changelog entry kind to `Breaking Changes`
1 parent ab779d3 commit 1f28b7c

29 files changed

+25
-9
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: BREAKING CHANGES
2+
body: 'schemamd: The `schemamd` package has moved to `internal/schemamd` and can no
3+
longer be imported'
4+
time: 2024-04-10T16:14:45.685307-04:00
5+
custom:
6+
Issue: "354"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: BREAKING CHANGES
2+
body: 'functionmd: The `functionmd` package has moved to `internal/functionmd` and
3+
can no longer be imported'
4+
time: 2024-04-10T16:15:40.388578-04:00
5+
custom:
6+
Issue: "354"

functionmd/render.go renamed to internal/functionmd/render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
tfjson "github.com/hashicorp/terraform-json"
1212

13-
"github.com/hashicorp/terraform-plugin-docs/schemamd"
13+
"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"
1414
)
1515

1616
// RenderArguments returns a Markdown formatted string of the function arguments.

functionmd/render_test.go renamed to internal/functionmd/render_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/google/go-cmp/cmp"
1313
tfjson "github.com/hashicorp/terraform-json"
1414

15-
"github.com/hashicorp/terraform-plugin-docs/functionmd"
15+
"github.com/hashicorp/terraform-plugin-docs/internal/functionmd"
1616
)
1717

1818
func TestRenderArguments(t *testing.T) {
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/provider/template.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ import (
1616

1717
tfjson "github.com/hashicorp/terraform-json"
1818

19-
"github.com/hashicorp/terraform-plugin-docs/functionmd"
19+
"github.com/hashicorp/terraform-plugin-docs/internal/schemamd"
20+
21+
"github.com/hashicorp/terraform-plugin-docs/internal/functionmd"
2022
"github.com/hashicorp/terraform-plugin-docs/internal/mdplain"
2123
"github.com/hashicorp/terraform-plugin-docs/internal/tmplfuncs"
22-
"github.com/hashicorp/terraform-plugin-docs/schemamd"
2324
)
2425

2526
const (
File renamed without changes.

0 commit comments

Comments
 (0)