fix map local examples

This commit is contained in:
Maximilian Hils 2022-02-09 09:03:46 +01:00
parent 4d1d54d4a5
commit ffe58ae34c
2 changed files with 7 additions and 4 deletions

View File

@ -12,3 +12,6 @@ tag = "tags"
[markup.goldmark.renderer]
unsafe = true
[security.funcs]
getenv = ["DOCS_ARCHIVE"]

View File

@ -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