Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Guide site builder: no backslash in f-string expressions (Python 3.9 on Rocky 9)

islandmed17b8c9fa2a6b
diff --git a/tools/guide/build_site.py b/tools/guide/build_site.py
index fbd5e4ed..a63cefd3 100644
--- a/tools/guide/build_site.py
+++ b/tools/guide/build_site.py
@@ -439,8 +439,8 @@ def page_html(page: Page, index: Page, chapters, position: int) -> str:
group = g
is_cur = ch.name == current
href = ch.name[:-3] + ".html"
- toc.append(f'<li><a href="{href}"{" class=\"current\" aria-current=\"page\"" if is_cur else ""}>'
- f'{html.escape(ch.title)}</a>')
+ current_attr = ' class="current" aria-current="page"' if is_cur else ""
+ toc.append(f'<li><a href="{href}"{current_attr}>{html.escape(ch.title)}</a>')
if is_cur:
subs = [h for h in ch.headings if h[0] == 2]
if subs: