mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-26 22:55:57 +00:00
Updated Wiki content
2
build.sh
2
build.sh
@@ -23,7 +23,7 @@ done
|
|||||||
command -v mkdocs >/dev/null 2>&1 || { echo "Error: mkdocs is required but not installed."; exit 1; }
|
command -v mkdocs >/dev/null 2>&1 || { echo "Error: mkdocs is required but not installed."; exit 1; }
|
||||||
command -v python3 >/dev/null 2>&1 || { echo "Error: python3 is required but not installed."; exit 1; }
|
command -v python3 >/dev/null 2>&1 || { echo "Error: python3 is required but not installed."; exit 1; }
|
||||||
|
|
||||||
# python3 generate_nav.py --update
|
python3 generate_nav.py --update
|
||||||
|
|
||||||
echo "Building documentation with mkdocs..."
|
echo "Building documentation with mkdocs..."
|
||||||
|
|
||||||
|
|||||||
@@ -105,6 +105,9 @@ def get_sort_key(path: Path) -> tuple:
|
|||||||
return (8, name)
|
return (8, name)
|
||||||
if any(x in name for x in ['other', 'misc', 'dependencies']):
|
if any(x in name for x in ['other', 'misc', 'dependencies']):
|
||||||
return (9, name)
|
return (9, name)
|
||||||
|
# Developer reference goes to the bottom
|
||||||
|
if name == 'developer-reference':
|
||||||
|
return (10, name)
|
||||||
|
|
||||||
return (5, name) # Default: middle priority, alphabetical
|
return (5, name) # Default: middle priority, alphabetical
|
||||||
|
|
||||||
@@ -217,10 +220,10 @@ def update_mkdocs_yml(mkdocs_path: Path, nav_yaml: str) -> None:
|
|||||||
content = mkdocs_path.read_text(encoding='utf-8')
|
content = mkdocs_path.read_text(encoding='utf-8')
|
||||||
|
|
||||||
# Find and replace the nav section
|
# Find and replace the nav section
|
||||||
# Match nav: followed by indented content until next top-level key or EOF
|
# Match nav: followed by lines starting with - or whitespace until next top-level key or EOF
|
||||||
nav_pattern = re.compile(
|
nav_pattern = re.compile(
|
||||||
r'^nav:\s*\n((?:[ \t]+.*\n)*?)(?=^[a-zA-Z]|\Z)',
|
r'^nav:\s*\n((?:[ \t-].*\n)*)',
|
||||||
re.MULTILINE | re.DOTALL
|
re.MULTILINE
|
||||||
)
|
)
|
||||||
|
|
||||||
match = nav_pattern.search(content)
|
match = nav_pattern.search(content)
|
||||||
|
|||||||
20
mkdocs.yml
20
mkdocs.yml
@@ -45,16 +45,6 @@ nav:
|
|||||||
- "Filament Tolerance Calibration": "calibration/tolerance-calib.md"
|
- "Filament Tolerance Calibration": "calibration/tolerance-calib.md"
|
||||||
- VFA: "calibration/vfa-calib.md"
|
- VFA: "calibration/vfa-calib.md"
|
||||||
- "Max Volumetric Speed (FlowRate) Calibration": "calibration/volumetric-speed-calib.md"
|
- "Max Volumetric Speed (FlowRate) Calibration": "calibration/volumetric-speed-calib.md"
|
||||||
- "Developer Reference":
|
|
||||||
- "Localization and translation guide": "developer-reference/Localization_guide.md"
|
|
||||||
- "Placeholders Variables": "developer-reference/Built-in-placeholders-variables.md"
|
|
||||||
- "How to Build": "developer-reference/How-to-build.md"
|
|
||||||
- "Guide: Develop Profiles for OrcaSlicer": "developer-reference/How-to-create-profiles.md"
|
|
||||||
- "How to Test": "developer-reference/How-to-test.md"
|
|
||||||
- "How to Contribute to the Wiki": "developer-reference/How-to-wiki.md"
|
|
||||||
- "Application Structure Overview": "developer-reference/plater-sidebar-tab-combobox.md"
|
|
||||||
- "Preset and Bundle": "developer-reference/Preset-and-bundle.md"
|
|
||||||
- "Slicing Hierarchy": "developer-reference/slicing-hierarchy.md"
|
|
||||||
- "General Settings":
|
- "General Settings":
|
||||||
- "Keyboard Shortcuts": "general-settings/keyboard-shortcuts.md"
|
- "Keyboard Shortcuts": "general-settings/keyboard-shortcuts.md"
|
||||||
- "Material Settings":
|
- "Material Settings":
|
||||||
@@ -143,3 +133,13 @@ nav:
|
|||||||
- "Multimaterial setup": printer_settings/multimaterial/printer_multimaterial_setup.md
|
- "Multimaterial setup": printer_settings/multimaterial/printer_multimaterial_setup.md
|
||||||
- "Wipe Tower": printer_settings/multimaterial/printer_multimaterial_wipe_tower.md
|
- "Wipe Tower": printer_settings/multimaterial/printer_multimaterial_wipe_tower.md
|
||||||
- "Advanced Multi-Material Settings": printer_settings/multimaterial/printer_multimaterial_advanced.md
|
- "Advanced Multi-Material Settings": printer_settings/multimaterial/printer_multimaterial_advanced.md
|
||||||
|
- "Developer Reference":
|
||||||
|
- "Localization and translation guide": "developer-reference/Localization_guide.md"
|
||||||
|
- "Placeholders Variables": "developer-reference/Built-in-placeholders-variables.md"
|
||||||
|
- "How to Build": "developer-reference/How-to-build.md"
|
||||||
|
- "Guide: Develop Profiles for OrcaSlicer": "developer-reference/How-to-create-profiles.md"
|
||||||
|
- "How to Test": "developer-reference/How-to-test.md"
|
||||||
|
- "How to Contribute to the Wiki": "developer-reference/How-to-wiki.md"
|
||||||
|
- "Application Structure Overview": "developer-reference/plater-sidebar-tab-combobox.md"
|
||||||
|
- "Preset and Bundle": "developer-reference/Preset-and-bundle.md"
|
||||||
|
- "Slicing Hierarchy": "developer-reference/slicing-hierarchy.md"
|
||||||
|
|||||||
Reference in New Issue
Block a user