Clean up lua docs scripts
- ldoc is now a git submodule
- ldoc can be installed using scripts/install.{sh,ps1}
- lua docs can be build using scripts/build.{sh,ps1}
- all lua docs-related files now reside inside of the docs folder
This commit is contained in:
26
.github/workflows/generate-lua-docs.yml
vendored
26
.github/workflows/generate-lua-docs.yml
vendored
@@ -13,30 +13,22 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v2
|
||||
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- uses: leafo/gh-actions-lua@v8.0.0
|
||||
with:
|
||||
luaVersion: "5.2"
|
||||
|
||||
- uses: leafo/gh-actions-luarocks@v4.0.0
|
||||
|
||||
- name: Pull LDoc
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: impulsh/LDoc
|
||||
path: ldoc
|
||||
- name: Run install script
|
||||
working-directory: docs
|
||||
run: ./scripts/install.sh
|
||||
|
||||
- name: Build LDoc
|
||||
working-directory: ldoc
|
||||
run: luarocks make
|
||||
|
||||
- name: Build docs
|
||||
run: ldoc .
|
||||
|
||||
- name: Copy assets
|
||||
run: |
|
||||
cp -v docs/css/* docs/html
|
||||
cp -v docs/js/* docs/html
|
||||
- name: Run build script
|
||||
working-directory: docs
|
||||
run: ./scripts/build.sh
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
|
||||
Reference in New Issue
Block a user