From 2977c7faa42817239cf6bb63bb0dd30790c96674 Mon Sep 17 00:00:00 2001 From: Cameron Martin Date: Mon, 23 Sep 2024 15:55:38 -0700 Subject: [PATCH] docs: Remove `sh` language hint from Caddyfile examples (#207) * Remove `sh` language hint from Caddyfile examples * Fix mixed indentation chars to favor tabs in example Caddyfiles --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index bd99d69..e56c56b 100644 --- a/README.md +++ b/README.md @@ -118,19 +118,19 @@ This allows you to hack on Caddy core (and optionally plug in extra modules at t If `--embed` is used without an alias prefix, the contents of the source directory are written directly into the root directory of the embedded filesystem within the Caddy executable. The contents of multiple unaliased source directories will be merged together: -```sh +``` $ xcaddy build --embed ./my-files --embed ./my-other-files $ cat Caddyfile { - # You must declare a custom filesystem using the `embedded` module. - # The first argument to `filesystem` is an arbitrary identifier - # that will also be passed to `fs` directives. - filesystem my_embeds embedded + # You must declare a custom filesystem using the `embedded` module. + # The first argument to `filesystem` is an arbitrary identifier + # that will also be passed to `fs` directives. + filesystem my_embeds embedded } localhost { - # This serves the files or directories that were - # contained inside of ./my-files and ./my-other-files + # This serves the files or directories that were + # contained inside of ./my-files and ./my-other-files file_server { fs my_embeds } @@ -139,16 +139,16 @@ localhost { You may also prefix the source directory with a custom alias and colon separator to write the source directory's contents to a separate subdirectory within the `embedded` filesystem: -```sh +``` $ xcaddy build --embed foo:./sites/foo --embed bar:./sites/bar $ cat Caddyfile { - filesystem my_embeds embedded + filesystem my_embeds embedded } foo.localhost { - # This serves the files or directories that were - # contained inside of ./sites/foo + # This serves the files or directories that were + # contained inside of ./sites/foo root * /foo file_server { fs my_embeds @@ -156,8 +156,8 @@ foo.localhost { } bar.localhost { - # This serves the files or directories that were - # contained inside of ./sites/bar + # This serves the files or directories that were + # contained inside of ./sites/bar root * /bar file_server { fs my_embeds