-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add documentation * install dependencies * update docs * style: [CI] format * update data assets * images in readme * update readme * do not import * dont install all dependencies * add references * just api * remove ignored modules * . * dont remove * . * clean up --------- Co-authored-by: Github Actions Bot <spatialyze-actions-bot@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
108 additions
and
62 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 |
---|---|---|
@@ -1,31 +1,69 @@ | ||
name: Publish GitHub Pages | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
name: Deploy Jekyll site to Pages | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: ["main", "doc"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: write | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
name: Publish GitHub Pages | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v5 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- name: API Doc | ||
run: | | ||
pip install pydoctor | ||
pydoctor --project-name=Spatialyze \ | ||
--project-version=0.1.0 \ | ||
--project-url=https://apperception-db.github.io/spatialyze \ | ||
--html-viewsource-base=https://github.com/apperception-db/spatialyze/tree/main \ | ||
--make-html \ | ||
--html-output=_site \ | ||
--project-base-dir="." \ | ||
--docformat=epytext \ | ||
--intersphinx=https://docs.python.org/3/objects.inv \ | ||
--privacy="HIDDEN:spatialyze.video_processor.modules" \ | ||
--privacy="HIDDEN:spatialyze.video_processor.stages" \ | ||
./spatialyze | ||
- name: Upload artifact | ||
# Automatically uploads an artifact from the './_site' directory by default | ||
uses: actions/upload-pages-artifact@v3 | ||
|
||
- name: Setup GitHub Pages Folder | ||
run: | | ||
rm -rf ./build | ||
mkdir ./build | ||
cp ./README.md ./build/ | ||
mkdir -p ./build/data/assets | ||
cp ./data/assets/* ./build/data/assets/ | ||
# - name: Publish Website | ||
# uses: JamesIves/github-pages-deploy-action@v4 | ||
# with: | ||
# folder: 'build' | ||
# single-commit: true | ||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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
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
9 changes: 6 additions & 3 deletions
9
spatialyze/video_processor/stages/detection_estimation/detection_estimation.py
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
16 changes: 9 additions & 7 deletions
16
spatialyze/video_processor/stages/detection_estimation/segment_mapping.py
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
Empty file.
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