From ffe58ae34cd2a32e02634adb1198ea7a5708391d Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 9 Feb 2022 09:03:46 +0100 Subject: [PATCH] fix map local examples --- docs/src/config.toml | 3 +++ docs/src/content/overview-features.md | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/src/config.toml b/docs/src/config.toml index 0d26241bc..4dbe047fd 100644 --- a/docs/src/config.toml +++ b/docs/src/config.toml @@ -12,3 +12,6 @@ tag = "tags" [markup.goldmark.renderer] unsafe = true + +[security.funcs] +getenv = ["DOCS_ARCHIVE"] diff --git a/docs/src/content/overview-features.md b/docs/src/content/overview-features.md index ef90aa430..725234f95 100644 --- a/docs/src/content/overview-features.md +++ b/docs/src/content/overview-features.md @@ -94,10 +94,10 @@ The _separator_ is arbitrary, and is defined by the first character (`|` in the Pattern | Description ------- | ----------- -`|example.com/main.js|~/main-local.js` | Replace `example.com/main.js` with `~/main-local.js`. -`|example.com/static|~/static` | Replace `example.com/static/foo/bar.css` with `~/static/foo/bar.css`. -`|example.com/static/foo|~/static` | Replace `example.com/static/foo/bar.css` with `~/static/bar.css`. -`|~m GET|example.com/static|~/static` | Replace `example.com/static/foo/bar.css` with `~/static/foo/bar.css` (but only for GET requests). +`\|example.com/main.js\|~/main-local.js` | Replace `example.com/main.js` with `~/main-local.js`. +`\|example.com/static\|~/static` | Replace `example.com/static/foo/bar.css` with `~/static/foo/bar.css`. +`\|example.com/static/foo\|~/static` | Replace `example.com/static/foo/bar.css` with `~/static/bar.css`. +`\|~m GET\|example.com/static\|~/static` | Replace `example.com/static/foo/bar.css` with `~/static/foo/bar.css` (but only for GET requests). ### Details