diff --git a/build.sh b/build.sh index 811a884..f46b0da 100755 --- a/build.sh +++ b/build.sh @@ -48,6 +48,7 @@ rsync -av \ --exclude='Home.md' \ --exclude='.gitignore' \ --exclude='infill-analysis' \ + --exclude='web_extras' \ . docs/ 2>/dev/null || { # Fallback: manually copy directories and markdown files echo "Using fallback copy method..." @@ -184,27 +185,10 @@ mkdir -p wiki/assets/stylesheets mkdir -p wiki/assets/images # Copy shared assets that complement MkDocs' static site output -if [ -f "web_extras/extra.css" ]; then - cp "web_extras/extra.css" wiki/assets/stylesheets/extra.css -else - echo "Warning: web_extras/extra.css not found - skipping" -fi - -if [ -f "web_extras/OrcaSlicer.ico" ]; then - cp "web_extras/OrcaSlicer.ico" wiki/assets/images/OrcaSlicer.ico -else - echo "Warning: web_extras/OrcaSlicer.ico not found - skipping" -fi - -if [ -f "web_extras/OrcaSlicer.png" ]; then - cp "web_extras/OrcaSlicer.png" wiki/assets/images/OrcaSlicer.png -else - echo "Warning: web_extras/OrcaSlicer.png not found - skipping" -fi - if [ -d "web_extras" ]; then - mkdir -p wiki/web_extras - cp -r web_extras/* wiki/web_extras/ 2>/dev/null || true + cp "web_extras/*.css" "wiki/assets/stylesheets/" + cp "web_extras/*.ico" "wiki/assets/images/" + cp "web_extras/*.png" "wiki/assets/images/" else echo "Warning: web_extras directory not found - skipping" fi