You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/03/18 05:44:16 UTC

[incubator-nuttx] branch master updated: Add a GH Actions build job for generating the inlined html documentaion to be published on the wiki

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new a3ac217  Add a GH Actions build job for generating the inlined html documentaion to be published on the wiki
a3ac217 is described below

commit a3ac217e56feef47defc351ee6cf9bc448aae54c
Author: Brennan Ashton <ba...@brennanashton.com>
AuthorDate: Sun Mar 15 17:27:39 2020 -0700

    Add a GH Actions build job for generating the inlined html documentaion to be published on the wiki
    
    Signed-off-by: Brennan Ashton <ba...@brennanashton.com>
---
 .github/workflows/main.yml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 04ab194..44165c6 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