-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] Drop support for 3.8. - [x] Drop deprecated code. - [x] Migrate to uv as package manager. - [x] Migrate to pyright as type checker. - [x] Remove theme switcher button.
- Loading branch information
Showing
52 changed files
with
2,287 additions
and
5,200 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,103 @@ | ||
name: CI | ||
on: push | ||
jobs: | ||
test: | ||
name: Run CI workflows | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: | ||
- 3.9 | ||
- 3.13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up nox | ||
run: | | ||
uv tool install nox | ||
- name: Run workflow | ||
run: | | ||
nox -p ${{ matrix.python-version }} | ||
env: | ||
DOCSEARCH_APP_ID: ${{ vars.DOCSEARCH_APP_ID }} | ||
DOCSEARCH_API_KEY: ${{ vars.DOCSEARCH_API_KEY }} | ||
DOCSEARCH_INDEX_NAME: ${{ vars.DOCSEARCH_INDEX_NAME }} | ||
links: | ||
name: Check for broken links | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.13 | ||
- name: Set up nox | ||
run: | | ||
uv tool install nox | ||
- name: Check links | ||
run: | | ||
nox -s links | ||
env: | ||
DOCSEARCH_APP_ID: ${{ vars.DOCSEARCH_APP_ID }} | ||
DOCSEARCH_API_KEY: ${{ vars.DOCSEARCH_API_KEY }} | ||
DOCSEARCH_INDEX_NAME: ${{ vars.DOCSEARCH_INDEX_NAME }} | ||
build: | ||
name: Build the package | ||
runs-on: ubuntu-latest | ||
needs: | ||
- test | ||
- links | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
- name: Build packages | ||
run: | | ||
uv build | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-packages | ||
path: dist/ | ||
publish: | ||
name: Publish package to PyPI | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: python-packages | ||
path: dist/ | ||
- name: Upload to PyPI | ||
run: | | ||
uv publish | ||
env: | ||
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
release: | ||
name: Create new GitHub release | ||
runs-on: ubuntu-latest | ||
needs: | ||
- publish | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: python-packages | ||
path: dist/ | ||
- name: Create GitHub release | ||
run: | | ||
gh release create ${{ github.ref_name }} ./dist/** | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} |
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,22 +1,17 @@ | ||
name: Algolia indexing | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "docs/**" | ||
|
||
jobs: | ||
index: | ||
runs-on: ubuntu-latest | ||
|
||
name: Index docs with Algolia | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Algolia Crawler | ||
uses: algolia/[email protected] | ||
id: index_after_push | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
default_stages: | ||
- pre-push | ||
repos: | ||
- repo: meta | ||
hooks: | ||
- id: check-hooks-apply | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
- id: no-commit-to-branch | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.4 | ||
hooks: | ||
- id: ruff-format | ||
- repo: local | ||
hooks: | ||
- id: formatting | ||
name: format code | ||
entry: nox -s fmt | ||
pass_filenames: false | ||
language: system | ||
types: [python] | ||
- id: sync | ||
name: sync requirements.txt | ||
- id: requirements | ||
name: Sync requirements.txt | ||
entry: nox -s export | ||
pass_filenames: false | ||
language: system | ||
files: 'pyproject\.toml|poetry\.lock' | ||
files: 'pyproject\.toml|uv\.lock' |
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,17 +1,15 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
builder: dirhtml | ||
fail_on_warning: true | ||
|
||
python: | ||
install: | ||
- requirements: docs/readthedocs.txt | ||
- requirements: requirements.txt | ||
- method: pip | ||
path: . | ||
path: . | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
|
||
1. Install the theme as a Python package: | ||
|
||
```console | ||
```sh | ||
pip install sphinxawesome-theme | ||
``` | ||
|
||
|
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.