Deploying to gh-pages from @ Klipper3d/klipper@9047702a00 🚀

This commit is contained in:
KevinOConnor 2022-06-03 23:14:55 +00:00
parent b96f4ccc94
commit 8eaa90972b
162 changed files with 2792 additions and 2712 deletions

View file

@ -27,6 +27,16 @@ while IFS="," read dirname langsite langdesc langsearch; do
new_docs_dir="${WORK_DIR}lang/${langsite}/docs/"
locale_dir="${TRANS_DIR}/docs/locales/${dirname}"
# read toc
title=$(sed -n '1p' ${locale_dir}/Navigation.md)
installation_and_configuration=$(sed -n '3p' ${locale_dir}/Navigation.md)
configuration_reference=$(sed -n '5p' ${locale_dir}/Navigation.md)
bed_level=$(sed -n '7p' ${locale_dir}/Navigation.md)
resonance_compensation=$(sed -n '9p' ${locale_dir}/Navigation.md)
command_template=$(sed -n '11p' ${locale_dir}/Navigation.md)
developer_documentation=$(sed -n '13p' ${locale_dir}/Navigation.md)
device_specific_documents=$(sed -n '15p' ${locale_dir}/Navigation.md)
# Copy markdown files to new_docs_dir
echo "Copying $dirname to $langsite"
mkdir -p "${new_docs_dir}"
@ -56,6 +66,16 @@ while IFS="," read dirname langsite langdesc langsearch; do
echo "replace site language"
sed -i "s%^ language: en$% language: ${langsite}%" "${new_mkdocs_file}"
echo "replace toc"
sed -i "s%Klipper documentation$%${title}%" "${new_mkdocs_file}"
sed -i "s%Installation and Configuration:$%${installation_and_configuration}:%" "${new_mkdocs_file}"
sed -i "s%Configuration Reference:$%${configuration_reference}:%" "${new_mkdocs_file}"
sed -i "s%Bed Level:$%${bed_level}:%" "${new_mkdocs_file}"
sed -i "s%Resonance Compensation:$%${resonance_compensation}:%" "${new_mkdocs_file}"
sed -i "s%Command templates:$%${command_template}:%" "${new_mkdocs_file}"
sed -i "s%Developer Documentation:$%${developer_documentation}:%" "${new_mkdocs_file}"
sed -i "s%Device Specific Documents:$%${device_specific_documents}:%" "${new_mkdocs_file}"
# Build site
echo "building site for ${langsite}"
mkdir -p "${PWD}/site/${langsite}/"

View file

@ -4,7 +4,7 @@
# layout. See that script and the README file for more details.
# Site and directory configuration
site_name: Klipper documentation
site_name: Klipper dokumentáció
repo_url: https://github.com/Klipper3d/klipper
repo_name: Klipper3d/klipper
edit_uri: blob/master/docs/
@ -96,13 +96,13 @@ nav:
- Releases.md
- Config_Changes.md
- Contact.md
- Installation and Configuration:
- Telepítés és Konfiguráció:
- Installation.md
- Configuration Reference:
- Konfigurációs Hivatkozás:
- Config_Reference.md
- Rotation_Distance.md
- Config_checks.md
- Bed Level:
- Ágy szint:
- Bed_Level.md
- Delta_Calibrate.md
- Probe_Calibrate.md
@ -110,12 +110,12 @@ nav:
- Manual_Level.md
- Bed_Mesh.md
- Endstop_Phase.md
- Resonance Compensation:
- Rezonancia Kompenzáció:
- Resonance_Compensation.md
- Measuring_Resonances.md
- Pressure_Advance.md
- G-Codes.md
- Command templates:
- Parancssablonok:
- Command_Templates.md
- Status_Reference.md
- TMC_Drivers.md
@ -124,7 +124,7 @@ nav:
- Skew_Correction.md
- Exclude_Object.md
- Using_PWM_Tools.md
- Developer Documentation:
- Fejlesztői Dokumentáció:
- Code_Overview.md
- Kinematics.md
- Protocol.md
@ -135,7 +135,7 @@ nav:
- Benchmarks.md
- CONTRIBUTING.md
- Packaging.md
- Device Specific Documents:
- Eszközspecifikus Dokumentumok:
- Example_Configs.md
- SDCard_Updates.md
- RPi_microcontroller.md