Skip to content

Commit

Permalink
Merge pull request #11 from lucascolley/pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley authored Sep 26, 2024
2 parents 6e596d9 + 00ca8ad commit 046ca91
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 28 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Docs Build

on: [push, pull_request]

jobs:
docs-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.30.0
cache: true
- name: Build Docs
run: pixi run -e docs docs
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: docs-build
path: docs/build/
30 changes: 30 additions & 0 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Docs Deploy

on:
push:
branches:
- main

jobs:
docs-deploy:
runs-on: ubuntu-latest
environment:
name: docs-deploy
steps:
- uses: actions/checkout@v4
- name: Download Artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: docs-build.yml
name: docs-build
path: docs/build/

# Note, the gh-pages deployment requires setting up a SSH deploy key.
# See
# https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/_build/html
ssh-key: ${{ secrets.DEPLOY_KEY }}
force: no
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,3 @@ repos:
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs
24 changes: 0 additions & 24 deletions .readthedocs.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# array-api-extra

[![Actions Status][actions-badge]][actions-link]
[![Documentation Status][rtd-badge]][rtd-link]
[![Pixi Badge](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/prefix-dev/pixi/main/assets/badge/v0.json)](https://pixi.sh)

[![PyPI version][pypi-version]][pypi-link]
Expand All @@ -20,8 +19,6 @@
[pypi-link]: https://pypi.org/project/array-api-extra/
[pypi-platforms]: https://img.shields.io/pypi/pyversions/array-api-extra
[pypi-version]: https://img.shields.io/pypi/v/array-api-extra
[rtd-badge]: https://readthedocs.org/projects/array-api-extra/badge/?version=latest
[rtd-link]: https://array-api-extra.readthedocs.io/en/latest/?badge=latest

<!-- prettier-ignore-end -->

Expand Down

0 comments on commit 046ca91

Please sign in to comment.