WIP documentation book

This commit is contained in:
Tony Bark 2023-01-09 15:44:41 -05:00
parent 7c3230685b
commit 31e6c2d099
20 changed files with 281 additions and 12 deletions

26
.github/workflows/book.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Build
on:
schedule:
- cron: "0 0 * * 0"
push:
branches: [main, publish]
jobs:
build:
timeout-minutes: 15
continue-on-error: true
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Setup
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"
- name: Build
run: mdbook build ./docs

30
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Publish
on:
schedule:
- cron: "0 0 1 * *"
push:
branches: [main]
jobs:
deploy:
timeout-minutes: 15
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"
- name: Build
run: mdbook build ./docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
cname: tomas.tonybark.com
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book