Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Publish book
Browse files Browse the repository at this point in the history
  • Loading branch information
leolara committed Nov 19, 2023
1 parent 34e1716 commit 8397503
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/api_rust_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:

- name: Add CNAME file to docs root
run: |
mkdir -p ./target/doc
echo 'apidocs.pecadorplonkish.xyz' > ./target/doc/CNAME
mkdir -p ./book/_build/html
echo 'docs.pecadorplonkish.xyz' > ./book/_build/html/CNAME
touch ./book/_build/html/.nojekyll
- name: Deploy book
uses: peaceiris/actions-gh-pages@v3
Expand All @@ -37,9 +38,9 @@ jobs:
publish_dir: ./book/_build/html
destination_dir: ./docs

- name: Deploy Api docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
destination_dir: ./docs/apidocs
# - name: Deploy Api docs
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./target/doc
# destination_dir: ./docs/apidocs
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ test:
./target/test_coverage/grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/test_coverage/tests.lcov

book:
python3 -m venv .env
. .env/bin/activate; pip install -r requirements.txt; maturin develop; pip install jupyter; python -m ipykernel install --user --name=chiquito_kernel
jupyter-book build book

.PHONY: precommit build test book

0 comments on commit 8397503

Please sign in to comment.