-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
800 additions
and
2 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,46 @@ | ||
name: Build main branch documentation website | ||
on: | ||
push: | ||
branches: [main, feature/website] | ||
permissions: | ||
contents: write | ||
jobs: | ||
docs: | ||
name: Generate Website | ||
runs-on: ubuntu-latest | ||
env: | ||
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install docs requirements | ||
run: pip install -r docs/requirements.txt | ||
|
||
- name: Install project | ||
run: pip install -e .[all] | ||
|
||
- name: Build env docs | ||
run: python docs/_scripts/gen_env_docs.py | ||
|
||
- name: Build | ||
run: sphinx-build -b dirhtml -v docs _build | ||
|
||
- name: Move 404 | ||
run: mv _build/404/index.html _build/404.html | ||
|
||
- name: Update 404 links | ||
run: python docs/_scripts/move_404.py _build/404.html | ||
|
||
- name: Remove .doctrees | ||
run: rm -r _build/.doctrees | ||
|
||
- name: Upload to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: _build | ||
target-folder: main | ||
clean: false |
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,59 @@ | ||
name: Docs Versioning | ||
on: | ||
push: | ||
tags: | ||
- 'v?*.*.*' | ||
permissions: | ||
contents: write | ||
jobs: | ||
docs: | ||
name: Generate Website for new version | ||
runs-on: ubuntu-latest | ||
env: | ||
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Get tag | ||
id: tag | ||
uses: dawidd6/action-get-tag@v1 | ||
|
||
- name: Install docs requirements | ||
run: pip install -r docs/requirements.txt | ||
|
||
- name: Install project | ||
run: pip install -e .[all] | ||
|
||
- name: Build env docs | ||
run: python docs/_scripts/gen_env_docs.py | ||
|
||
- name: Build | ||
run: sphinx-build -b dirhtml -v docs _build | ||
|
||
- name: Move 404 | ||
run: mv _build/404/index.html _build/404.html | ||
|
||
- name: Update 404 links | ||
run: python docs/_scripts/move_404.py _build/404.html | ||
|
||
- name: Remove .doctrees | ||
run: rm -r _build/.doctrees | ||
|
||
- name: Upload to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: _build | ||
target-folder: ${{steps.tag.outputs.tag}} | ||
clean: false | ||
|
||
- name: Upload to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: _build | ||
clean-exclude: | | ||
*.*.*/ | ||
main |
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,65 @@ | ||
# This workflow will build and (if release) publish Python distributions to PyPI | ||
# For more information see: | ||
# - https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
# - https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | ||
# | ||
# derived from https://github.com/Farama-Foundation/PettingZoo/blob/e230f4d80a5df3baf9bd905149f6d4e8ce22be31/.github/workflows/build-publish.yml | ||
name: build-publish | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-wheels: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python: 38 | ||
platform: manylinux_x86_64 | ||
- os: ubuntu-latest | ||
python: 39 | ||
platform: manylinux_x86_64 | ||
- os: ubuntu-latest | ||
python: 310 | ||
platform: manylinux_x86_64 | ||
- os: ubuntu-latest | ||
python: 311 | ||
platform: manylinux_x86_64 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: python -m pip install --upgrade pip setuptools build | ||
- name: Build sdist and wheels | ||
run: python -m build | ||
- name: Store wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: dist | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-wheels | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- name: Download dists | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
- name: Publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_MOGYM }} |
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,71 @@ | ||
name: Manual Docs Versioning | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Documentation version to create' | ||
required: true | ||
commit: | ||
description: 'Commit used to build the Documentation version' | ||
required: false | ||
latest: | ||
description: 'Latest version' | ||
type: boolean | ||
|
||
permissions: | ||
contents: write | ||
jobs: | ||
docs: | ||
name: Generate Website for new version | ||
runs-on: ubuntu-latest | ||
env: | ||
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
if: inputs.commit == '' | ||
|
||
- uses: actions/checkout@v3 | ||
if: inputs.commit != '' | ||
with: | ||
ref: ${{ inputs.commit }} | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install docs requirements | ||
run: pip install -r docs/requirements.txt | ||
|
||
- name: Install project | ||
run: pip install -e .[all] | ||
|
||
- name: Build env docs | ||
run: python docs/_scripts/gen_env_docs.py | ||
|
||
- name: Build | ||
run: sphinx-build -b dirhtml -v docs _build | ||
|
||
- name: Move 404 | ||
run: mv _build/404/index.html _build/404.html | ||
|
||
- name: Update 404 links | ||
run: python docs/_scripts/move_404.py _build/404.html | ||
|
||
- name: Remove .doctrees | ||
run: rm -r _build/.doctrees | ||
|
||
- name: Upload to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: _build | ||
target-folder: ${{ inputs.version }} | ||
clean: false | ||
|
||
- name: Upload to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
if: inputs.latest | ||
with: | ||
folder: _build | ||
clean-exclude: | | ||
*.*.*/ | ||
main |
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,2 @@ | ||
environments/**/*.md | ||
environments/**/list.html |
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,3 @@ | ||
# 404 - Page Not Found | ||
|
||
## The requested page could not be found. |
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,20 @@ | ||
# 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 = . | ||
BUILDDIR = build | ||
|
||
# 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) |
Oops, something went wrong.