diff --git a/docs/content/reference/dynamic-configuration/kv-ref.md b/docs/content/reference/dynamic-configuration/kv-ref.md index b39dc96ab..0b2f7c5f0 100644 --- a/docs/content/reference/dynamic-configuration/kv-ref.md +++ b/docs/content/reference/dynamic-configuration/kv-ref.md @@ -2,6 +2,9 @@ CODE GENERATED AUTOMATICALLY THIS FILE MUST NOT BE EDITED BY HAND --> + +| Key (Path) | Value | +|------------|-------| | `traefik/http/middlewares/Middleware01/addPrefix/prefix` | `foobar` | | `traefik/http/middlewares/Middleware02/basicAuth/headerField` | `foobar` | | `traefik/http/middlewares/Middleware02/basicAuth/realm` | `foobar` | diff --git a/docs/content/reference/dynamic-configuration/kv.md b/docs/content/reference/dynamic-configuration/kv.md index 8db8415e5..71fe4ab06 100644 --- a/docs/content/reference/dynamic-configuration/kv.md +++ b/docs/content/reference/dynamic-configuration/kv.md @@ -8,6 +8,4 @@ description: "Read the technical documentation to learn the Traefik Dynamic Conf Dynamic configuration with KV stores. {: .subtitle } -| Key (Path) | Value | -|----------------------------------------------------------------------------------------------|-------------| --8<-- "content/reference/dynamic-configuration/kv-ref.md" diff --git a/internal/gendoc.go b/internal/gendoc.go index 76f650582..e2362faf5 100644 --- a/internal/gendoc.go +++ b/internal/gendoc.go @@ -349,6 +349,11 @@ func genKVDynConfDoc(outputFile string) { CODE GENERATED AUTOMATICALLY THIS FILE MUST NOT BE EDITED BY HAND --> +`) + + _, _ = fmt.Fprintf(file, ` +| Key (Path) | Value | +|------------|-------| `) for _, k := range keys {