-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A new documentation website. And: * add actions for doc * update docstr * installation instructions for doc dev * unify README and Getting Started * rename notebook * doc about best_model_for_estimator #340 * docstr for keep_search_state #340 * DNN Co-authored-by: Qingyun Wu <[email protected]> Co-authored-by: Z.sk <[email protected]>
- Loading branch information
1 parent
671ccbb
commit efd85b4
Showing
91 changed files
with
12,276 additions
and
751 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,88 @@ | ||
name: docs | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
checks: | ||
if: github.event_name != 'push' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: website | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
# cache: yarn | ||
# cache-dependency-path: '**/yarn.lock' | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
- name: pydoc-markdown install | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pydoc-markdown | ||
- name: pydoc-markdown run | ||
run: | | ||
pydoc-markdown | ||
- name: Test Build | ||
run: | | ||
if [ -e yarn.lock ]; then | ||
yarn install --frozen-lockfile | ||
yarn build | ||
elif [ -e package-lock.json ]; then | ||
npm ci | ||
npm run build | ||
else | ||
npm i --legacy-peer-deps | ||
npm run build | ||
fi | ||
gh-release: | ||
if: github.event_name != 'pull_request' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: website | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
# cache: yarn | ||
# cache-dependency-path: '**/yarn.lock' | ||
- name: setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
- name: pydoc-markdown install | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pydoc-markdown | ||
- name: pydoc-markdown run | ||
run: | | ||
pydoc-markdown | ||
- name: Build website | ||
run: | | ||
if [ -e yarn.lock ]; then | ||
yarn install --frozen-lockfile | ||
yarn build | ||
elif [ -e package-lock.json ]; then | ||
npm ci | ||
npm run build | ||
else | ||
npm i --legacy-peer-deps | ||
npm run build | ||
fi | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Build output to publish to the `gh-pages` branch: | ||
publish_dir: ./website/build |
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 |
---|---|---|
|
@@ -70,27 +70,27 @@ jobs: | |
file: ./coverage.xml | ||
flags: unittests | ||
|
||
docs: | ||
# docs: | ||
|
||
runs-on: ubuntu-latest | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Compile documentation | ||
run: | | ||
pip install -e . | ||
python -m pip install sphinx sphinx_rtd_theme | ||
cd docs | ||
make html | ||
- name: Deploy to GitHub pages | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: docs/_build/html | ||
CLEAN: true | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Setup Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.8' | ||
# - name: Compile documentation | ||
# run: | | ||
# pip install -e . | ||
# python -m pip install sphinx sphinx_rtd_theme | ||
# cd docs | ||
# make html | ||
# - name: Deploy to GitHub pages | ||
# if: ${{ github.ref == 'refs/heads/main' }} | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# BRANCH: gh-pages | ||
# FOLDER: docs/_build/html | ||
# CLEAN: true |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Project | ||
# Project | ||
/.vs | ||
.vscode | ||
|
||
|
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
Oops, something went wrong.