Skip to content

Commit

Permalink
fix docs generate
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar committed May 4, 2022
1 parent 5ab0976 commit 2eb906a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/helpers/adoc-generator.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if err != nil {
log.Fatal(err)
}
replacer := strings.NewReplacer(
"github.com/owncloud/ocis/extensions/", "",
"github.com/owncloud/ocis/v2/extensions/", "",
"/pkg/config/defaults", "",
)
var fields []ConfigField
Expand Down Expand Up @@ -95,7 +95,7 @@ func GetAnnotatedVariables(s interface{}) []ConfigField {
// and this should not be an issue then
if !value.IsZero() && value.Elem().CanInterface() {
fields = append(fields, GetAnnotatedVariables(value.Elem().Interface())...)
}
}
case reflect.Struct:
fields = append(fields, GetAnnotatedVariables(value.Interface())...)
}
Expand Down
4 changes: 2 additions & 2 deletions docs/helpers/environment-variable-docs-generator.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if err != nil {
log.Fatal(err)
}
replacer := strings.NewReplacer(
"github.com/owncloud/ocis/extensions/", "",
"github.com/owncloud/ocis/v2/extensions/", "",
"/pkg/config/defaults", "",
)
var fields []ConfigField
Expand Down Expand Up @@ -84,7 +84,7 @@ func GetAnnotatedVariables(s interface{}) []ConfigField {
// and this should not be an issue then
if !value.IsZero() && value.Elem().CanInterface() {
fields = append(fields, GetAnnotatedVariables(value.Elem().Interface())...)
}
}
case reflect.Struct:
fields = append(fields, GetAnnotatedVariables(value.Interface())...)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/helpers/example-config-generator.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func main() {
replacer := strings.NewReplacer(
"github.com/owncloud/ocis/extensions/", "",
"github.com/owncloud/ocis/v2/extensions/", "",
"/pkg/config/defaults", "",
)
cfg := map[string]string{
Expand Down

0 comments on commit 2eb906a

Please sign in to comment.