Refactors the workflow to export a concise error block with invalid list indentation details as an environment variable. Adds a new step to display the error block and fail the workflow if issues are found, improving clarity and output formatting.
Updated the regex to match all list patterns (e.g., '- ', '* ', '1. ') instead of only checklist items. This allows the workflow to validate indentation for all list types, not just checklists.
Introduces a GitHub Actions workflow that checks Markdown files in pull requests and on manual dispatch for checklist items with invalid indentation. The workflow ensures checklist items are indented with 0 or multiples of 4 spaces, helping maintain consistent formatting.
Refactors the YAML loading logic in update_mkdocs_yml to first attempt strict safe_load, and only fall back to a custom loader if Python tags are present. This makes the validation stricter and only relaxes it when necessary for mkdocs-specific tags.
Adds a custom SafeLoader to handle the !!python/name:pymdownx.superfences.fence_code_format tag during YAML validation, preventing errors when validating mkdocs.yml files that use this extension.
Adds a custom SafeLoader to tolerate !!python/name tags in mkdocs.yml, allowing validation of YAML files that use MkDocs or pymdownx extensions without executing code.
* 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.
* Condense calibration steps and inline images
Reformatted the calibration steps by combining list items and their associated images into single lines using <br> tags, reducing vertical space and improving readability. No content was removed; only the layout and formatting were changed.
* Number list fix
* Update Calibration.md
* Update pressure-advance-calib.md
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.
Introduced CSS rules to set explicit heights for images with height attributes of 22, 45, and 200 pixels, targeting text icons, patterns table, and calibrations guide preview.
Co-authored-by: yw4z <yw4z@outlook.com>
Added multiple new entries under the 'Print Prepare' section in the navigation, providing links to various preparation tools and features. This improves documentation structure and accessibility for print preparation topics.
Changed the image height override from 'unset' to 'revert' in .md-typeset img to better respect explicit height attributes and restore default behavior when needed.
Swapped the raster PNG image with a vector SVG version for the STL transformation parameters illustration in the documentation. Updated the Markdown reference to use the new SVG file for improved scalability and clarity.
* Format final update
* Update VSCode markdown extension settings
Configured markdown TOC levels to 2-6 and enabled automatic TOC update on save in .vscode/settings.json.
* Add editor and markdown configuration files
Introduces .editorconfig, .markdownlint.json, and VS Code settings for consistent formatting and markdown linting. These files help standardize code style and markdown indentation across the project.
* Full reformat
* Vertically align table cells for icons
Added vertical-align: middle to table td and th elements to ensure icons and content are centered within table cells. This improves visual alignment in tables.
* Set fixed height for pattern icons in tables
Updated CSS to ensure images with alt text starting with 'param_' inside tables have a fixed height of 45px for consistent appearance.
* Set fixed height for param_ images in tables
Added CSS rule to ensure images with alt text starting with 'param_' inside tables have a fixed height of 45px, maintaining consistent appearance and preventing layout issues.
* Update table image styles to respect explicit dimensions
Replaces the fixed height for table images with styles that allow images to use their explicit width and height. This provides more flexibility for displaying images with custom dimensions inside tables.
Updates the unreferenced_images workflow to skip the 'misc' directory under 'images' when collecting files. This prevents files in 'images/misc' from being processed.
* Correct prism object list numbering in documentation
Updated the numbering of prism object purposes and test settings in the pressure advance calibration documentation to ensure sequential and logical order. This improves clarity and readability for users following the calibration process.
* Fix markdown line breaks in documentation
Replaced backslash line breaks with double spaces in pressure advance calibration and strength settings infill markdown files for proper formatting.