diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6844746..638b8cd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,10 +31,13 @@ jobs: ldoc . --dir out --ext md --verbose echo "Looking for generated files..." - find . -type f -name "*.md" + find . -maxdepth 1 -type f -name "*.md" - echo "Moving any files to out directory..." - find . -type f -name "*.md" -not -path "./out/*" -exec mv {} out/ \; + echo "Moving relevant files to out directory..." + find . -maxdepth 1 -type f -name "*.md" -exec mv {} out/ \; + + # Cleanup - remove LDoc test files + rm -f out/one.md out/two.md out/opt.md echo "Final output directory contents:" ls -la out/