Test
This commit is contained in:
18
.github/workflows/docs.yml
vendored
18
.github/workflows/docs.yml
vendored
@@ -24,24 +24,24 @@ jobs:
|
|||||||
run: luarocks install ldoc
|
run: luarocks install ldoc
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: |
|
run: |
|
||||||
echo "Current directory contents:"
|
rm -rf out
|
||||||
ls -la
|
|
||||||
|
|
||||||
echo "Creating output directory..."
|
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
|
|
||||||
echo "Running LDoc..."
|
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/
|
ls -la out/
|
||||||
|
|
||||||
# Fail if no files were generated
|
|
||||||
if [ -z "$(ls -A out/)" ]; then
|
if [ -z "$(ls -A out/)" ]; then
|
||||||
echo "Error: No documentation files were generated!"
|
echo "Error: No documentation files were generated!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
project = 'Basalt2'
|
project = 'Basalt2'
|
||||||
title = 'Basalt Documentation'
|
title = 'Basalt Documentation'
|
||||||
description = 'A UI Framework for ComputerCraft'
|
description = 'A UI Framework for ComputerCraft'
|
||||||
file = {'src'}
|
file = 'src'
|
||||||
dir = 'out'
|
dir = 'out'
|
||||||
|
one = true
|
||||||
format = 'markdown'
|
format = 'markdown'
|
||||||
all = true
|
ext = '.md'
|
||||||
|
all = true
|
||||||
|
merge = true
|
||||||
|
output = 'out'
|
||||||
Reference in New Issue
Block a user