From 98ac27732c896e02ec95d8f2f0928bd3de1b48be Mon Sep 17 00:00:00 2001 From: mmattel Date: Wed, 6 Jul 2022 09:44:02 +0200 Subject: [PATCH 1/4] Fix adoc type --- docs/templates/ADOC.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/templates/ADOC.tmpl b/docs/templates/ADOC.tmpl index 74b0aef9d76..052667d226c 100644 --- a/docs/templates/ADOC.tmpl +++ b/docs/templates/ADOC.tmpl @@ -13,7 +13,8 @@ {{ end -}} `{{- $value }}` {{- end }} -| {{.Type}} +a| [subs=-attributes] ++{{.Type}}+ a| [subs=-attributes] pass:[{{.DefaultValue}}] a| [subs=-attributes] From 96605163c8bdf5e620b760c9c2749d9089a34213 Mon Sep 17 00:00:00 2001 From: mmattel Date: Wed, 6 Jul 2022 10:12:50 +0200 Subject: [PATCH 2/4] fix description text for array --- services/frontend/pkg/config/config.go | 2 +- services/thumbnails/pkg/config/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/frontend/pkg/config/config.go b/services/frontend/pkg/config/config.go index a946409ca16..a1f1fda5ab4 100644 --- a/services/frontend/pkg/config/config.go +++ b/services/frontend/pkg/config/config.go @@ -128,6 +128,6 @@ type CBOXDriver struct { } type Checksums struct { - SupportedTypes []string `yaml:"supported_types" env:"FRONTEND_CHECKSUMS_SUPPORTED_TYPES" desc:"Supported checksum types to be announced to the client (e.g. md5)"` + SupportedTypes []string `yaml:"supported_types" env:"FRONTEND_CHECKSUMS_SUPPORTED_TYPES" desc:"Supported checksum types to be announced to the client. You can provide multiple types separated by blank or comma."` PreferredUploadType string `yaml:"preferred_upload_type" env:"FRONTEND_CHECKSUMS_PREFERRED_UPLOAD_TYPES" desc:"Preferred checksum types to be announced to the client for uploads (e.g. md5)"` } diff --git a/services/thumbnails/pkg/config/config.go b/services/thumbnails/pkg/config/config.go index bf851e49a50..18518673e3e 100644 --- a/services/thumbnails/pkg/config/config.go +++ b/services/thumbnails/pkg/config/config.go @@ -31,7 +31,7 @@ type FileSystemStorage struct { // Thumbnail defines the available thumbnail related configuration. type Thumbnail struct { - Resolutions []string `yaml:"resolutions" env:"THUMBNAILS_RESOLUTIONS" desc:"The supported target resolutions in the format WidthxHeight e.g. 32x32. You can provide multiple resolutions separated by a comma."` + Resolutions []string `yaml:"resolutions" env:"THUMBNAILS_RESOLUTIONS" desc:"The supported target resolutions in the format WidthxHeight e.g. 32x32. You can provide multiple resolutions separated by blank or comma."` FileSystemStorage FileSystemStorage `yaml:"filesystem_storage"` WebdavAllowInsecure bool `yaml:"webdav_allow_insecure" env:"OCIS_INSECURE;THUMBNAILS_WEBDAVSOURCE_INSECURE" desc:"Ignore untrusted SSL certificates when connecting to the webdav source."` CS3AllowInsecure bool `yaml:"cs3_allow_insecure" env:"OCIS_INSECURE;THUMBNAILS_CS3SOURCE_INSECURE" desc:"Ignore untrusted SSL certificates when connecting to the CS3 source."` From 26e1d8018c6f74fa384ba1a16f22dc78c879120b Mon Sep 17 00:00:00 2001 From: mmattel Date: Wed, 6 Jul 2022 10:23:07 +0200 Subject: [PATCH 3/4] remove pass from description --- docs/templates/ADOC.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/templates/ADOC.tmpl b/docs/templates/ADOC.tmpl index 052667d226c..0028eafa222 100644 --- a/docs/templates/ADOC.tmpl +++ b/docs/templates/ADOC.tmpl @@ -18,7 +18,7 @@ a| [subs=-attributes] a| [subs=-attributes] pass:[{{.DefaultValue}}] a| [subs=-attributes] -pass:[{{.Description}}] +{{.Description}} {{- end }} |=== From 62a54a44b1fc0ce20ebe8a04d2395ee1297e53ae Mon Sep 17 00:00:00 2001 From: mmattel Date: Wed, 6 Jul 2022 11:13:02 +0200 Subject: [PATCH 4/4] update resolution text --- services/thumbnails/pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/thumbnails/pkg/config/config.go b/services/thumbnails/pkg/config/config.go index 18518673e3e..20d66c72c78 100644 --- a/services/thumbnails/pkg/config/config.go +++ b/services/thumbnails/pkg/config/config.go @@ -31,7 +31,7 @@ type FileSystemStorage struct { // Thumbnail defines the available thumbnail related configuration. type Thumbnail struct { - Resolutions []string `yaml:"resolutions" env:"THUMBNAILS_RESOLUTIONS" desc:"The supported target resolutions in the format WidthxHeight e.g. 32x32. You can provide multiple resolutions separated by blank or comma."` + Resolutions []string `yaml:"resolutions" env:"THUMBNAILS_RESOLUTIONS" desc:"The supported target resolutions in the format WidthxHeight e.g. 32x32. You can define any resolution as required and separate multiple resolutions by blank or comma."` FileSystemStorage FileSystemStorage `yaml:"filesystem_storage"` WebdavAllowInsecure bool `yaml:"webdav_allow_insecure" env:"OCIS_INSECURE;THUMBNAILS_WEBDAVSOURCE_INSECURE" desc:"Ignore untrusted SSL certificates when connecting to the webdav source."` CS3AllowInsecure bool `yaml:"cs3_allow_insecure" env:"OCIS_INSECURE;THUMBNAILS_CS3SOURCE_INSECURE" desc:"Ignore untrusted SSL certificates when connecting to the CS3 source."`