diff --git a/build/config.go b/build/config.go index 1466a513..99e3d164 100644 --- a/build/config.go +++ b/build/config.go @@ -8,7 +8,7 @@ import ( "strconv" "github.com/issue9/version" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/core" "github.com/caixw/apidoc/v7/internal/ast" diff --git a/build/config_test.go b/build/config_test.go index 0c4af57a..3d7710cd 100644 --- a/build/config_test.go +++ b/build/config_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/issue9/assert/v2" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/core" "github.com/caixw/apidoc/v7/core/messagetest" diff --git a/docs/example/index.xml b/docs/example/index.xml index a9e27186..bb83d063 100755 --- a/docs/example/index.xml +++ b/docs/example/index.xml @@ -1,7 +1,7 @@ - + 示例文档 这是一个用于测试的文档用例

diff --git a/internal/cmd/cmd_test.go b/internal/cmd/cmd_test.go index 9a5af220..bb5caa56 100644 --- a/internal/cmd/cmd_test.go +++ b/internal/cmd/cmd_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/issue9/assert/v2" - "github.com/issue9/term/v2/colors" + "github.com/issue9/term/v3/colors" "github.com/caixw/apidoc/v7/core" "github.com/caixw/apidoc/v7/internal/locale" diff --git a/internal/cmd/detect.go b/internal/cmd/detect.go index 025c0a81..2c1617eb 100644 --- a/internal/cmd/detect.go +++ b/internal/cmd/detect.go @@ -7,7 +7,7 @@ import ( "io" "github.com/issue9/cmdopt" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/build" "github.com/caixw/apidoc/v7/core" diff --git a/internal/cmd/detect_test.go b/internal/cmd/detect_test.go index 6a1f1bab..ca386b77 100644 --- a/internal/cmd/detect_test.go +++ b/internal/cmd/detect_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/issue9/assert/v2" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/build" "github.com/caixw/apidoc/v7/internal/ast" diff --git a/internal/openapi/parse.go b/internal/openapi/parse.go index ee1f038f..92836053 100644 --- a/internal/openapi/parse.go +++ b/internal/openapi/parse.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "github.com/caixw/apidoc/v7/core" "github.com/caixw/apidoc/v7/internal/ast"