mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-28 00:17:39 +00:00
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:
parent
6f1d3b5b24
commit
95094c381e
5
.github/workflows/deploy_docs.yml
vendored
5
.github/workflows/deploy_docs.yml
vendored
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user