This commit is contained in:
Robert Jelic
2025-02-09 18:40:30 +01:00
parent bc3fd8c0c2
commit 741f9446c1
2 changed files with 6 additions and 3 deletions

View File

@@ -23,7 +23,10 @@ jobs:
- name: Setup dependencies
run: luarocks install ldoc
- name: Build docs
run: make doc-site
run: |
mkdir -p out
ldoc -c config.ld src
ls -la out/
- name: Deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3

View File

@@ -1,4 +1,3 @@
LUA= $(shell echo `which lua`)
LUA_BINDIR= $(shell echo `dirname $(LUA)`)
LUA_PREFIX= $(shell echo `dirname $(LUA_BINDIR)`)
@@ -51,7 +50,8 @@ test-tables:
test-clean: clean-basic clean-example clean-md clean-tables
doc-site:
cd $(_REPODIR)/doc && lua $(_REPODIR)/ldoc.lua .
mkdir -p out
ldoc -c config.ld src
CLEAN=&& lua $(_REPODIR)/ldoc.lua . && rd /S /Q cdocs && cp -rf doc cdocs