This commit is contained in:
Michael Zhang 2021-02-16 04:52:42 -06:00
parent 00d67d429f
commit 8b6f78f546
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
5 changed files with 38 additions and 0 deletions

27
.github/workflows/doc.yml vendored Normal file
View file

@ -0,0 +1,27 @@
on: [push]
name: CI
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: |
cargo install mdbook
mdbook build docs -d $(pwd)/public
cargo test
cargo doc --workspace --no-deps
cp -r target/doc public/api
- name: deploy
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: gh-pages
folder: public
# vim: set sw=2 tw=2 :

1
docs/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
book

6
docs/book.toml Normal file
View file

@ -0,0 +1,6 @@
[book]
authors = ["Michael Zhang"]
language = "en"
multilingual = false
src = "src"
title = "Panorama"

3
docs/src/SUMMARY.md Normal file
View file

@ -0,0 +1,3 @@
# Summary
- [Chapter 1](./chapter_1.md)

1
docs/src/chapter_1.md Normal file
View file

@ -0,0 +1 @@
# Chapter 1