-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from RichRick1/website
Website
- Loading branch information
Showing
71 changed files
with
408 additions
and
20,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: deploy-book | ||
|
||
# Only run this when the master branch changes | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- website | ||
|
||
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
branches: | ||
- main | ||
|
||
# This job installs dependencies, builds the book, and pushes it to `gh-pages` | ||
jobs: | ||
deploy-book: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
# https://github.com/JamesIves/github-pages-deploy-action/issues/1110 | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install package | ||
run: | | ||
python3 -m pip install . | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install -r website/requirements.txt | ||
# Add soft links to the notebooks | ||
- name: Add soft links to the notebooks | ||
run: | | ||
cd website | ||
ln -s ../examples ./examples | ||
ln -s ../docs/ ./api | ||
cd ../ | ||
# Build the book | ||
- name: Build the website | ||
run: | | ||
jupyter-book build ./website/ | ||
# Push the book's HTML to github-pages | ||
# inspired by https://github.com/orgs/community/discussions/26724 | ||
# only push to gh-pages if the master branch has been updated | ||
- name: GitHub Pages Action | ||
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./website/_build/html | ||
publish_branch: gh-pages | ||
cname: moha.qcdevs.org |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Hamiltonian API | ||
=============== | ||
|
||
.. autoclass:: moha.api.HamiltonianAPI | ||
:members: | ||
|
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.