forked from jameskabbes/HackIllinois2024
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 238b6ce
Showing
44 changed files
with
10,284 additions
and
0 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,59 @@ | ||
name: gh-pages documentation builder | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install sphinx sphinx-rtd-theme | ||
pip install -r code/requirements.txt | ||
- name: Generate documentation | ||
run: | | ||
cd code/sphinx/ | ||
sphinx-apidoc -o . ../ | ||
make html | ||
cd ../.. | ||
- name: Ensure docs directory exists | ||
run: | | ||
rm -rf docs | ||
mkdir docs | ||
- name: Move documentation files | ||
run: | | ||
mv code/sphinx/_build/html/* docs | ||
- name: Add .nojekyll file | ||
run: | | ||
touch docs/.nojekyll | ||
- uses: actions/checkout@master | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
|
||
- name: Commit and push changes | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git add docs | ||
git commit -m "Auto-generated documentation" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
force: 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Data/ | ||
__pycache__/ |
Oops, something went wrong.