From 10177cc2756a4fffc301ab8c104d8b396a6e8231 Mon Sep 17 00:00:00 2001 From: Marius Maryniak Date: Wed, 9 Oct 2024 10:02:32 +0200 Subject: [PATCH] Documentation (#7604) --- docs/plugins/privacy.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/plugins/privacy.md b/docs/plugins/privacy.md index 31966be21..cdde6591f 100644 --- a/docs/plugins/privacy.md +++ b/docs/plugins/privacy.md @@ -484,3 +484,16 @@ Instead, always use fully qualified URLs: ``` js const url ="https://example.com/script.js" ``` + +Note that the plugin does not scan embedded HTML for external assets – +this is related to MkDocs, as it does not process HTML +(not to be confused with the generated HTML) in the plugin pipeline. +To self-host external assets of an embedded HTML, +it has to be explicitly listed under [`extra_templates`][extra_templates] in `mkdocs.yml`: + + [extra_templates]: https://www.mkdocs.org/user-guide/configuration/#extra_templates + +``` yaml +extra_templates: + - embed.html +```