Skip to content

Commit

Permalink
🔨 Add script/ldoc.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 11, 2024
1 parent 55833c0 commit a35ed10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ build:
commands:
- pip install hererocks
- hererocks lua51 -l5.1 -rlatest
- bash -c '. ./lua51/bin/activate && luarocks install ldoc lua-discount && \
ldoc .'
- scripts/ldoc.sh
- mv doc $READTHEDOCS_OUTPUT/html
7 changes: 7 additions & 0 deletions scripts/ldoc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$(dirname "$(readlink -f "$0")")")"

. ./lua51/bin/activate &&
luarocks install ldoc lua-discount &&
ldoc .

0 comments on commit a35ed10

Please sign in to comment.