actions
This commit is contained in:
parent
00d67d429f
commit
8b6f78f546
5 changed files with 38 additions and 0 deletions
27
.github/workflows/doc.yml
vendored
Normal file
27
.github/workflows/doc.yml
vendored
Normal 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
1
docs/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
book
|
6
docs/book.toml
Normal file
6
docs/book.toml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[book]
|
||||||
|
authors = ["Michael Zhang"]
|
||||||
|
language = "en"
|
||||||
|
multilingual = false
|
||||||
|
src = "src"
|
||||||
|
title = "Panorama"
|
3
docs/src/SUMMARY.md
Normal file
3
docs/src/SUMMARY.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Summary
|
||||||
|
|
||||||
|
- [Chapter 1](./chapter_1.md)
|
1
docs/src/chapter_1.md
Normal file
1
docs/src/chapter_1.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# Chapter 1
|
Loading…
Reference in a new issue