Test
This commit is contained in:
5
.github/workflows/docs.yml
vendored
5
.github/workflows/docs.yml
vendored
@@ -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
|
||||
|
||||
4
Makefile
4
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user