From d323766360bd9366be933cea9c0e5cb2330e4a82 Mon Sep 17 00:00:00 2001 From: David Baynard Date: Tue, 7 Nov 2023 21:28:25 +0000 Subject: [PATCH] Note that caddy fmt doesn't support heredocs The lexer and formatter are separate, and the additional work is a significant undertaking. https://github.com/caddyserver/caddy/issues/5930#issuecomment-1797709061 --- src/docs/markdown/caddyfile/concepts.md | 4 ++++ src/docs/markdown/command-line.md | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/docs/markdown/caddyfile/concepts.md b/src/docs/markdown/caddyfile/concepts.md index 8ae75c7..d73a047 100644 --- a/src/docs/markdown/caddyfile/concepts.md +++ b/src/docs/markdown/caddyfile/concepts.md @@ -181,6 +181,10 @@ The closing marker can be indented, which causes every line of text to have that Additional tokens may follow the closing marker as arguments to the directive (such as in the example above, the status code `200`). + + ## Global options diff --git a/src/docs/markdown/command-line.md b/src/docs/markdown/command-line.md index 4dec964..d993133 100644 --- a/src/docs/markdown/command-line.md +++ b/src/docs/markdown/command-line.md @@ -234,6 +234,9 @@ Formats or prettifies a Caddyfile, then exits. The result is printed to stdout u `--diff` causes the output to be compared against the input, and lines will be prefixed with `-` and `+` where they differ. Note that unchanges lines are prefixed with two spaces for alignment, and that this is not a valid patch format; it's just meant as a visual tool. + ### `caddy hash-password`