Updated the redirect scripts in build.ps1 and build.sh to append the current URL hash to the target URL, ensuring that anchor links are preserved during redirection.
* Add KaTeX support for math rendering in documentation
Introduced web_extras/katex.js and updated build scripts to copy it to the appropriate assets directories. Updated mkdocs.yml to include KaTeX CSS/JS and enabled pymdownx.arithmatex extension for math rendering. This enables LaTeX-style math support in the documentation.
* Add mermaid
Configured pymdownx.superfences in mkdocs.yml to support custom 'mermaid' code fences, enabling better integration of mermaid diagrams in documentation.
Introduces web_extras/icon-theme.js to handle dynamic icon switching based on theme. Updates build scripts (build.ps1, build.sh) to copy custom CSS and JS assets for both docs and wiki outputs. mkdocs.yml is updated to include the new JS asset and reorganizes the Print Prepare navigation for clarity.
Enhances both build.ps1 and build.sh to copy the contents of the web_extras directory into the wiki output folder, ensuring extra assets are available in the generated site. Adds warnings if the web_extras directory or specific files are missing.
Co-authored-by: yw4z <yw4z@outlook.com>
* Normalize path separators in navigation links
Replaces backslashes with forward slashes in relative paths when generating navigation items to ensure consistency across different operating systems.
* Fix URL encoding and path normalization in build script
Normalizes path separators to forward slashes for URLs and updates URL encoding to only encode spaces, preserving forward slashes. This improves the correctness of generated redirect URLs in the build process.