mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-16 16:20:48 +00:00
docs: Add missing automounting guides (#1594)
* chore(docs): Fix cmdrun hook substituting urls with partial matches * docs: Add missing automounting articles
This commit is contained in:
parent
0c40fe7f6e
commit
6d05181146
@ -93,6 +93,14 @@ URL_MAPPINGS = [
|
||||
"https://universal-blue.discourse.group/docs?topic=970",
|
||||
"/Advanced/Auto-Mounting_Secondary_Drives/",
|
||||
),
|
||||
( # src/Advanced/kde-automount-guide.md
|
||||
"https://universal-blue.discourse.group/docs?topic=3780",
|
||||
"/Advanced/kde-automount-guide/",
|
||||
),
|
||||
( # src/Advanced/gnome-disks-automount-guide.md
|
||||
"https://universal-blue.discourse.group/docs?topic=3781",
|
||||
"/Advanced/gnome-disks-automount-guide/",
|
||||
),
|
||||
# endregion ADVANCED
|
||||
]
|
||||
|
||||
@ -171,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 = res.replace(src, dst)
|
||||
res = re.sub(rf"\b{re.escape(src)}\b", dst, res)
|
||||
return res
|
||||
|
||||
|
||||
|
3
docs/src/Advanced/gnome-disks-automount-guide.md
Normal file
3
docs/src/Advanced/gnome-disks-automount-guide.md
Normal file
@ -0,0 +1,3 @@
|
||||
# GNOME Disks Auto-Mount Guide
|
||||
|
||||
<!-- cmdrun fetch_discourse_md.py "https://universal-blue.discourse.group/docs?topic=3781" -->
|
3
docs/src/Advanced/kde-automount-guide.md
Normal file
3
docs/src/Advanced/kde-automount-guide.md
Normal file
@ -0,0 +1,3 @@
|
||||
# KDE Partition Manager Auto-Mount Guide
|
||||
|
||||
<!-- cmdrun fetch_discourse_md.py "https://universal-blue.discourse.group/docs?topic=3780" -->
|
Loading…
x
Reference in New Issue
Block a user