fix: ship the real DTD in the Pelican plugin

This commit is contained in:
randogoth 2026-10-11 20:55:07 +03:00
parent f54d350216
commit 884300f3cf
8 changed files with 483 additions and 74 deletions

View file

@ -10,9 +10,10 @@ well-formed UTF-8 XML with the XHTML namespace on `<html>`. The plugin also
copies the Mews stylesheet into the output tree and gives themes a
`MEWS_CSS` global plus the `mews/head.html` partial.
The bundled `pelican/plugins/mews/dtd/mews.dtd` is a minimal placeholder.
Replace it with the real Mews Profile DTD when it is available; the plugin
picks up the change without any code edit.
The subset comes from `pelican/plugins/mews/dtd/mews.dtd`, which is a copy of
the Mews Profile 0.1 DTD. Only element and attribute names are read from it, so
the plugin lists none of them in code: change the DTD and the allowlist changes
with it.
## Install