Skip to content

[book] Fix rendering issue in book with sidebar (#56) #220

[book] Fix rendering issue in book with sidebar (#56)

[book] Fix rendering issue in book with sidebar (#56) #220

Workflow file for this run

name: Docs
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: generate documentation
run: cargo doc --no-deps
- name: generate book
run: |
cargo install mdbook
cd book/text
mdbook build
- name: prep deployment branch
if: github.ref == 'refs/heads/main'
run: |
mkdir -p dist
cp -r target/doc/* dist/
cp -r book/text/book dist/
cd dist
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m 'deploy'
- name: push deployment branch
uses: ad-m/[email protected]
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: ./dist