Skip to content

Commit 10177cc

Browse files
authored
Documentation (#7604)
1 parent f0c99d8 commit 10177cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: docs/plugins/privacy.md

+13
Original file line numberDiff line numberDiff line change
@@ -484,3 +484,16 @@ Instead, always use fully qualified URLs:
484484
``` js
485485
const url ="https://example.com/script.js"
486486
```
487+
488+
Note that the plugin does not scan embedded HTML for external assets –
489+
this is related to MkDocs, as it does not process HTML
490+
(not to be confused with the generated HTML) in the plugin pipeline.
491+
To self-host external assets of an embedded HTML,
492+
it has to be explicitly listed under [`extra_templates`][extra_templates] in `mkdocs.yml`:
493+
494+
[extra_templates]: https://www.mkdocs.org/user-guide/configuration/#extra_templates
495+
496+
``` yaml
497+
extra_templates:
498+
- embed.html
499+
```

0 commit comments

Comments
 (0)