-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
134 additions
and
644 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,17 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os, sys | ||
from build.util import project_wheel_metadata | ||
|
||
if 'GITHUB_OUTPUT' in os.environ: | ||
file = open(os.environ['GITHUB_OUTPUT'], 'w') | ||
else: | ||
file = sys.stdout | ||
|
||
msg = project_wheel_metadata('.') | ||
version = msg.get('version') | ||
project = msg.get('name') | ||
|
||
print(f'project={project}', file=file) | ||
print(f'version={version}', file=file) | ||
print(f'tag=v{version}', file=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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,44 +6,36 @@ on: | |
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
contents: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
- name: Install python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
python-version: '3.11' | ||
cache: 'pip' | ||
cache-dependency-path: setup.cfg | ||
cache-dependency-path: pyproject.toml | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade pip setuptools build | ||
pip install -e '.[docs]' | ||
- name: Build documentation | ||
- name: Get version | ||
id: version | ||
# outputs project, version, and tag | ||
run: python .github/scripts/get_versioninfo.py | ||
- name: Set git user | ||
run: | | ||
sphinx-build docs _build | ||
- name: Setup GitHub Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload Artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: '_build/' | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- name: Fetch gh-pages branch | ||
run: git fetch origin gh-pages --depth=1 | ||
- name: Deploy | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
|
||
run: mike deploy -u '${{ steps.version.outputs.version }}' dev --push |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# `atomlib` API Reference | ||
|
||
Top-level exports: | ||
|
||
::: atomlib |
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,2 @@ | ||
|
||
::: atomlib.util |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.