chore(docs): fix cmdrun breaking image url replacement (#1600)

* chore(docs): fix cmdrun breaking image url replacement

* ci(docs): Trigger deploy_docs with any change in docs dir
This commit is contained in:
Zeglius 2024-09-03 17:53:20 +02:00 committed by GitHub
parent 6f1d3b5b24
commit 95094c381e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -10,10 +10,7 @@ on:
branches:
- main
paths:
- docs/**/*.md
- docs/**/*.png
- docs/**/*.jpg
- docs/**/*.jpeg
- docs/**
- .github/workflows/deploy_docs.yml
- README*.md
workflow_dispatch:

View File

@ -179,7 +179,7 @@ def _on_page_markdown_replace_urls(
for src, dst in URL_MAPPINGS:
if config.site_url:
dst = f"{config.site_url.rstrip("/")}/{dst.lstrip("/")}"
res = re.sub(rf"\b{re.escape(src)}\b", dst, res)
res = re.sub(rf"\b{re.escape(src)}\b", dst, res, flags=re.UNICODE)
return res