docs: avoid push of pycache

Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
Timofey Titovets 2025-12-23 19:39:09 +01:00
parent 8b58aa1302
commit eb37621b0b
2 changed files with 7 additions and 0 deletions

View file

@ -27,6 +27,8 @@ jobs:
run: pip install -r docs/_klipper3d/mkdocs-requirements.txt
- name: Build MkDocs Pages
run: docs/_klipper3d/build-translations.sh
- name: Sanitize mkdocs output
run: docs/_klipper3d/sanitize.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:

5
docs/_klipper3d/sanitize.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
# This scripts cleanups mkdocs output before commit
# Avoid push of pycache
find "${PWD}/site/" -type f -name "*.pyc" -delete