Skip to content

Commit

Permalink
use pyproject.toml for pydoctor config (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwutk authored Jul 29, 2024
1 parent c41e5bf commit ef78e68
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# 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
name: Generate and Deploy Spatialyze Documentations

on:
push:
Expand All @@ -31,36 +25,29 @@ jobs:
steps:
- 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
pydoctor ./spatialyze
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
needs: build
steps:
Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,16 @@ pythonVersion = '3.10'
ignore = [
'spatialyze/video_processor/modules',
]

[tool.pydoctor]
project-name = "Spatialyze"
project-version = "0.1.0"
project-url = "https://apperception-db.github.io/spatialyze"
html-viewsource = "https://github.com/apperception-db/spatialyze/tree/main"
make-html = true
html-output = "_site"
project-base-dir = "."
docformat = "epytext"
intersphinx = "https://docs.python.org/3/objects.inv"
privacy = ["HIDDEN:spatialyze.video_processor.modules",
"HIDDEN:spatialyze.video_processor.stages",]

0 comments on commit ef78e68

Please sign in to comment.