-
Notifications
You must be signed in to change notification settings - Fork 2
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 #3 from bouthilx/feature/newalgos
Add Bohamiann and DNGO + adapt to new test suite
- Loading branch information
Showing
24 changed files
with
2,256 additions
and
781 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
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,30 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
release: | ||
types: | ||
[published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build_docs_job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Install dependencies | ||
run: bash ./scripts/setup_gh.sh | ||
- name: Test with tox | ||
run: tox -vv -e docs | ||
- name: Deploy doc on gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: bash docs/deploy.sh |
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
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
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
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,45 @@ | ||
#!/bin/bash | ||
|
||
################################################################################ | ||
# Modified version of | ||
# https://tech.michaelaltfield.net/2020/07/18/sphinx-rtd-github-pages-1/ | ||
################################################################################ | ||
|
||
##################### | ||
# DECLARE VARIABLES # | ||
##################### | ||
|
||
pwd | ||
ls -lah | ||
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) | ||
|
||
####################### | ||
# Update GitHub Pages # | ||
####################### | ||
|
||
git config --global user.name "${GITHUB_ACTOR}" | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
|
||
docroot=`mktemp -d` | ||
rsync -av "docs/build/html/" "${docroot}/" | ||
|
||
pushd "${docroot}" | ||
|
||
# don't bother maintaining history; just generate fresh | ||
git init | ||
git remote add deploy "https://token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | ||
git checkout -b gh-pages | ||
|
||
# add .nojekyll to the root so that github won't 404 on content added to dirs | ||
# that start with an underscore (_), such as our "_content" dir.. | ||
touch .nojekyll | ||
|
||
# copy the resulting html pages built from sphinx above to our new git repo | ||
git add . | ||
|
||
# commit all the new files | ||
msg="Updating Docs for commit ${GITHUB_SHA} made on `date -d"@${SOURCE_DATE_EPOCH}" --iso-8601=seconds` from ${GITHUB_REF} by ${GITHUB_ACTOR}" | ||
git commit -am "${msg}" | ||
|
||
# overwrite the contents of the gh-pages branch on our github.com repo | ||
git push deploy gh-pages --force |
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,5 @@ | ||
sphinx | ||
sphinx_rtd_theme | ||
sphinxcontrib.httpdomain | ||
sphinx-autoapi | ||
numpydoc |
Empty file.
Oops, something went wrong.