From 3bd9637fc3631131c557aabc75ded3d37e4a4d49 Mon Sep 17 00:00:00 2001 From: Robert Jelic Date: Sun, 9 Feb 2025 18:48:20 +0100 Subject: [PATCH] Test --- .github/workflows/docs.yml | 18 +++++++++--------- config.ld | 8 ++++++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b448271..6844746 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -24,24 +24,24 @@ jobs: run: luarocks install ldoc - name: Build docs run: | - echo "Current directory contents:" - ls -la - - echo "Creating output directory..." + rm -rf out mkdir -p out echo "Running LDoc..." - ldoc -c $(pwd)/config.ld $(pwd)/src --verbose --ext md + ldoc . --dir out --ext md --verbose - echo "Output directory contents:" + echo "Looking for generated files..." + find . -type f -name "*.md" + + echo "Moving any files to out directory..." + find . -type f -name "*.md" -not -path "./out/*" -exec mv {} out/ \; + + echo "Final output directory contents:" ls -la out/ - # Fail if no files were generated if [ -z "$(ls -A out/)" ]; then echo "Error: No documentation files were generated!" exit 1 - fi - - name: Deploy if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} uses: peaceiris/actions-gh-pages@v3 diff --git a/config.ld b/config.ld index a499cd7..8d0d976 100644 --- a/config.ld +++ b/config.ld @@ -1,7 +1,11 @@ project = 'Basalt2' title = 'Basalt Documentation' description = 'A UI Framework for ComputerCraft' -file = {'src'} +file = 'src' dir = 'out' +one = true format = 'markdown' -all = true \ No newline at end of file +ext = '.md' +all = true +merge = true +output = 'out' \ No newline at end of file