add docs. add mkdocs deploy

This commit is contained in:
2024-01-08 23:28:22 +08:00
parent 013096459a
commit 50b2cf2cf1
8 changed files with 114 additions and 3 deletions

22
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- ng
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout ng
uses: actions/checkout@v4
with:
ref: ng
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: docs/mkdocs.yml
# GITHUB_DOMAIN: github.myenterprise.com