Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliang-ms committed Nov 22, 2023
0 parents commit 5b4c26a
Show file tree
Hide file tree
Showing 1,594 changed files with 2,231,749 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docs/.github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Doc

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 12.18.2
- name: install gitbook
run: npm install gitbook-cli gitbook-summary -g
- name: set timezone
run: sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- name: install
run: gitbook install
- name: clear README.md
run: echo "" > README.md
- name: generate-toc
run: book sm --disableTitleFormatting
- name: build
run: gitbook build
- name: install git
run: sudo apt-get install git -y
- name: publish
env:
ACCESS_TOKEN: ${{ secrets.AWESOME_PUBLISH_TOKEN }}
run: |
mkdir -p deploy-doc-dir
cd deploy-doc-dir
rm -rf *
git init
git config user.name "weiliang-ms"
git config user.email "[email protected]"
ls -R ../_book
mv ../_book docs
git add docs
git commit -m "Update docs"
git push --force "https://[email protected]/weiliang-ms/wl-awesome" master:docs
9 changes: 9 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.idea
.DS_Store
npm-debug.log
*.orig
package-lock.json
*.iml
/_book/
/node_modules/
.npmrc
Empty file added docs/.nojekyll
Empty file.
Loading

0 comments on commit 5b4c26a

Please sign in to comment.