-
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.
* osm_parser doc-strings * calculate_od_raw doc-strings * fetch_pois doc-strings * style network_clean.py * doc-strings conversion_utils.py * doc-strings graphtool.py * doc-strings optimization.py * doc-strings fetch_od.py * doc-strings load_osm.py * doc-strings core.py * symlink the tutorials dir for docs * re-org the docs * readme symlink * move api docs pages * update gitignore * fix symlinks * add some pre-commit hooks * reorg for docs * rename to remove spaces and clean notebook outputs * more space removal and notebook cleaning * revisions to toc and tutorial * Remove auto-generated content from version control --------- Co-authored-by: Gabriel Stefanini Vicente <[email protected]>
- Loading branch information
Showing
29 changed files
with
1,610 additions
and
13,481 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,32 @@ | ||
name: docs | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
- name: Dependencies | ||
run: | | ||
if [ -f pyproject.toml ]; then pip install ".[docs]"; fi | ||
- name: Clear notebooks and create conf.py file | ||
run: | | ||
jupyter-book config sphinx docs/ | ||
jupyter nbconvert --ClearOutputPreprocessor.enabled=True --ClearMetadataPreprocessor.enabled=True --clear-output --inplace $(find . -type f -name '*.ipynb') | ||
- name: Build Sphinx Documentation | ||
run: | | ||
sphinx-build docs _build/html -b html | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/main' && job.status == 'success' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./_build/html | ||
enable_jekyll: 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
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.