From a3ac217e56feef47defc351ee6cf9bc448aae54c Mon Sep 17 00:00:00 2001 From: Brennan Ashton Date: Sun, 15 Mar 2020 17:27:39 -0700 Subject: [PATCH] Add a GH Actions build job for generating the inlined html documentaion to be published on the wiki Signed-off-by: Brennan Ashton --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 04ab194be4b..44165c63591 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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