fix docs generate

This commit is contained in:
Michael Barz
2022-05-04 15:49:18 +02:00
parent 5ab09764aa
commit 2eb906a3ff
3 changed files with 5 additions and 5 deletions

View File

@@ -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
@@ -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())...)
}

View File

@@ -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
@@ -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())...)
}

View File

@@ -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{