Add a GH Actions build job for generating the inlined html documentaion to be published on the wiki
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
parent
4e475cb630
commit
a3ac217e56
|
@ -36,6 +36,28 @@ jobs:
|
|||
echo "./tools/checkpatch.sh -g $commits"
|
||||
./tools/checkpatch.sh -g $commits
|
||||
|
||||
docs:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: nuttx
|
||||
fetch-depth: 1
|
||||
- name: Generate Inlined Docs
|
||||
run: |
|
||||
echo "Inline Docs"
|
||||
npm install --no-audit inliner
|
||||
inliner=`pwd`/node_modules/inliner/cli/index.js
|
||||
build_output=`pwd`/build
|
||||
mkdir $build_output
|
||||
cd nuttx/Documentation
|
||||
find ./ -type f -name "*.html" -exec script -e -c "$inliner {} > $build_output/{}" \;
|
||||
ls -l $build_output/
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: htmldocs
|
||||
path: ./build/
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
container: liuguo09/ubuntu-nuttx:18.04
|
||||
|
|
Loading…
Reference in New Issue