Skip to content

Commit

Permalink
Merge pull request #22 from noahhusby/docs/pdoc
Browse files Browse the repository at this point in the history
Add pdoc
  • Loading branch information
noahhusby authored Sep 16, 2024
2 parents 68658c3 + caca20a commit 74c6596
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 73 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/build.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Deploy pdocs to Pages

on:
push:
branches:
- main

permissions:
contents: read
pages: write
id-token: write
actions: read

env:
PYTHON_VERSION: 3.11

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🏗 Set up Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "poetry"
- name: 🏗 Install workflow dependencies
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: 🏗 Install dependencies
run: poetry install --no-interaction --with docs
- run: pdoc ./aiostreammagic -o docs/
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
39 changes: 0 additions & 39 deletions .github/workflows/python-matrix-test.yml

This file was deleted.

4 changes: 3 additions & 1 deletion aiostreammagic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Asynchronous Python client for StreamMagic API."""
"""
.. include:: ../README.md
"""

from .exceptions import StreamMagicError, StreamMagicConnectionError
from .models import (
Expand Down
121 changes: 120 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ pytest-asyncio = "0.24.0"
pytest-cov = "5.0.0"
ruff = "0.6.4"


[tool.poetry.group.docs.dependencies]
pdoc = "^14.7.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 74c6596

Please sign in to comment.