Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add docs workflows #3

Merged
merged 25 commits into from
Sep 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 40 additions & 0 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Check docs"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install doc dependencies
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install sphinx numpydoc nbsphinx sphinx_gallery sphinx_rtd_theme
- name: Install adapt dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install adapt
run: |
pip install -e .
- name: Build documentation
run: |
sudo rm -r -f docs/*
make html
sudo rm -r -f docs/doctrees
mv -v docs/html/* docs/
sudo rm -r -f docs/html
touch .nojekyll
- uses: actions/upload-artifact@v1
with:
name: DocumentationHTML
path: docs/
42 changes: 42 additions & 0 deletions .github/workflows/publish-doc-to-remote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Publish docs online"

on:
release:
types: [created]

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install doc dependencies
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install sphinx numpydoc nbsphinx sphinx_gallery sphinx_rtd_theme
- name: Install adapt dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install adapt
run: |
pip install -e .
- name: Build documentation
run: |
sudo rm -r -f docs/*
make html
sudo rm -r -f docs/doctrees
mv -v docs/html/* docs/
sudo rm -r -f docs/html
touch .nojekyll
- name: Push changes to remote
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs
git commit -m "Update docs"
git push
19 changes: 19 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# with:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# config-name: my-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/upload-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload package to Pypi

on:
workflow_dispatch:
inputs:
overrideVersion:
description: Manually force a version

env:
CIBW_BUILD_VERBOSITY: 1
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.overrideVersion }}

jobs:
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install deps
run: python -m pip install build twine
- name: Build SDist
run: python -m build --sdist
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz
- name: Check metadata
run: twine check dist/*
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ __pycache__
# Distribution / packaging
.Python
env/
build/
source/
develop-eggs/
dist/
downloads/
Expand Down
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = src_docs
BUILDDIR = docs

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)


#html-noplot:
# $(SPHINXBUILD) -D plot_gallery=0 -b html $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html
# @echo
# @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
4 changes: 0 additions & 4 deletions docs/.buildinfo

This file was deleted.

Binary file added docs/_images/examples_Classification_17_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Classification_25_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Classification_34_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Classification_41_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Classification_9_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Multi_fidelity_11_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Multi_fidelity_14_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Multi_fidelity_17_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Multi_fidelity_6_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Regression_17_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Regression_23_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Regression_28_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Regression_33_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Regression_40_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/examples_Regression_46_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Regression_9_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_11_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_12_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_14_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_15_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_17_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_18_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_4_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_6_0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Rotation_8_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/examples_Two_moons_12_0.png
Binary file modified docs/_images/examples_Two_moons_14_0.png
Binary file modified docs/_images/examples_Two_moons_17_0.png
Binary file modified docs/_images/examples_Two_moons_19_0.png
Binary file modified docs/_images/examples_Two_moons_22_0.png
Binary file modified docs/_images/examples_Two_moons_24_0.png
Binary file modified docs/_images/examples_Two_moons_27_0.png
Binary file modified docs/_images/examples_Two_moons_29_0.png
Binary file modified docs/_images/examples_Two_moons_33_0.png
Binary file modified docs/_images/examples_Two_moons_35_0.png
Binary file modified docs/_images/examples_Two_moons_6_0.png
Binary file modified docs/_images/examples_sample_bias_12_0.png
Binary file modified docs/_images/examples_sample_bias_15_0.png
Binary file modified docs/_images/examples_sample_bias_2d_11_0.png
Binary file modified docs/_images/examples_sample_bias_2d_14_0.png
Binary file modified docs/_images/examples_sample_bias_2d_17_0.png
Binary file modified docs/_images/examples_sample_bias_2d_6_0.png
Binary file modified docs/_images/examples_sample_bias_6_0.png
Binary file modified docs/_images/examples_sample_bias_9_0.png
665 changes: 467 additions & 198 deletions docs/_sources/examples/Classification.ipynb.txt

Large diffs are not rendered by default.

182 changes: 138 additions & 44 deletions docs/_sources/examples/Multi_fidelity.ipynb.txt

Large diffs are not rendered by default.

832 changes: 615 additions & 217 deletions docs/_sources/examples/Regression.ipynb.txt

Large diffs are not rendered by default.

281 changes: 228 additions & 53 deletions docs/_sources/examples/Rotation.ipynb.txt

Large diffs are not rendered by default.

425 changes: 332 additions & 93 deletions docs/_sources/examples/Two_moons.ipynb.txt

Large diffs are not rendered by default.

249 changes: 202 additions & 47 deletions docs/_sources/examples/sample_bias.ipynb.txt

Large diffs are not rendered by default.

232 changes: 180 additions & 52 deletions docs/_sources/examples/sample_bias_2d.ipynb.txt

Large diffs are not rendered by default.