From 54592ba4d53bfc0e4b1c08bf5f3698093fe2d21c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 22 Mar 2020 16:14:17 -0600 Subject: [PATCH] docs: Minor improvements / fixes --- src/docs/markdown/caddyfile/directives.md | 5 +++-- src/docs/markdown/caddyfile/directives/templates.md | 4 ++-- src/docs/markdown/caddyfile/directives/uri.md | 4 ++-- src/resources/css/docs.css | 4 ++++ 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives.md b/src/docs/markdown/caddyfile/directives.md index 3511e59..c457816 100644 --- a/src/docs/markdown/caddyfile/directives.md +++ b/src/docs/markdown/caddyfile/directives.md @@ -66,16 +66,17 @@ Because matcher tokens all work the same, the various possibilities for the matc Many directives manipulate the HTTP handler chain. The order in which those directives are evaluated matters, so a default ordering is hard-coded into Caddy: ``` -root +header redir rewrite +root + uri try_files basicauth -headers request_header encode templates diff --git a/src/docs/markdown/caddyfile/directives/templates.md b/src/docs/markdown/caddyfile/directives/templates.md index 70499d8..f2bbc16 100644 --- a/src/docs/markdown/caddyfile/directives/templates.md +++ b/src/docs/markdown/caddyfile/directives/templates.md @@ -11,9 +11,9 @@ Executes the response body as a [template](/docs/json/apps/http/servers/errors/r ``` templates [] { - mime + mime between - root + root } ``` diff --git a/src/docs/markdown/caddyfile/directives/uri.md b/src/docs/markdown/caddyfile/directives/uri.md index 97022c6..3b8b617 100644 --- a/src/docs/markdown/caddyfile/directives/uri.md +++ b/src/docs/markdown/caddyfile/directives/uri.md @@ -28,10 +28,10 @@ uri [] strip_prefix|strip_suffix|replace \ ## Examples -Strip `api/` from the beginning of all request paths: +Strip `/api` from the beginning of all request paths: ``` -uri strip_prefix api/ +uri strip_prefix /api ``` Strip `.php` from the end of all request paths: diff --git a/src/resources/css/docs.css b/src/resources/css/docs.css index 844f7c9..421ff0b 100644 --- a/src/resources/css/docs.css +++ b/src/resources/css/docs.css @@ -747,6 +747,10 @@ td code { background-color: #000; color: #ccc; } + + .json .key a:not([href]) { + color: #bdd6f7 + } #hovercard, .arrow-box {