forked from 1b-agent/opencadstudio-upstream
Balance all website sections and improve mobile navigation
This commit is contained in:
1 parent
a86f46375d
commit
2d06004c1f
4 files changed
+51
-29
No files matched your search
@@ -103,7 +103,7 @@ def build(output):
|
||||
|
||||
app = output / "app/index.html"
|
||||
if app.exists():
|
||||
html = re.sub(r'<link\b(?=[^>]*\brel=["\'](?:shortcut )?icon["\'])[^>]*>', '', app.read_text())
|
||||
html = re.sub(r'<link\b(?=[^>]*\brel=["\'](?:(?:shortcut )?icon|apple-touch-icon)["\'])[^>]*>', '', app.read_text())
|
||||
app.write_text(html.replace('</head>', icons + '\n</head>'), encoding="utf-8")
|
||||
print(f"Built {len(catalogs)} website languages and current application icons")
|
||||
|
||||
|
||||
Reference in new issue
Block a user