Fix incorrect documentation in Plugins.md

This commit is contained in:
WithoutPants 2024-02-22 08:15:40 +11:00 committed by GitHub
parent 37acd6b79b
commit 61bd9233b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,12 +127,12 @@ As an example, for a plugin with id `foo` with the following `assets` value:
```
assets:
foo: bar
root: .
/: .
```
The following URLs will be mapped to these locations:
`/plugin/foo/assets/foo/file.txt` -> `{pluginDir}/bar/file.txt`
`/plugin/foo/assets/file.txt` -> `{pluginDir}/file.txt`
`/plugin/foo/assets/bar/file.txt` -> `{pluginDir}/bar/file.txt` (via the `root` entry)
`/plugin/foo/assets/bar/file.txt` -> `{pluginDir}/bar/file.txt` (via the `/` entry)
Mappings that try to go outside of the directory containing the plugin configuration file will be
ignored.