Skip to content

Commit d0d068d

Browse files
authored
Merge branch 'main' into asarray-copy
2 parents 6397108 + ecb4c57 commit d0d068d

File tree

3 files changed

+38
-17
lines changed

3 files changed

+38
-17
lines changed

.github/workflows/docs-build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docs Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-python@v5
11+
- name: Install Dependencies
12+
run: |
13+
python -m pip install -r docs/requirements.txt
14+
- name: Build Docs
15+
run: |
16+
cd docs
17+
make html
18+
- name: Upload Artifact
19+
uses: actions/upload-artifact@v4
20+
with:
21+
name: docs-build
22+
path: docs/_build/html

.github/workflows/docs.yml renamed to .github/workflows/docs-deploy.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
name: Docs
2-
on: [push, pull_request]
1+
name: Docs Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
38
jobs:
4-
docs:
9+
deploy:
510
runs-on: ubuntu-latest
6-
strategy:
7-
fail-fast: false
811
environment:
9-
name: docs-build-and-deploy
12+
name: docs-deploy
1013
steps:
1114
- uses: actions/checkout@v4
12-
- uses: actions/setup-python@v5
13-
- name: Install Dependencies
14-
run: |
15-
python -m pip install -r docs/requirements.txt
16-
17-
- name: Build Docs
18-
run: |
19-
cd docs
20-
make html
15+
- name: Download Artifact
16+
uses: dawidd6/action-download-artifact@v2
17+
with:
18+
workflow: docs-build.yml
19+
name: docs-build
20+
path: docs/_build/html
2121

2222
# Note, the gh-pages deployment requires setting up a SSH deploy key.
2323
# See
2424
# https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-
2525
- name: Deploy
2626
uses: JamesIves/github-pages-deploy-action@v4
27-
if: ${{ github.ref == 'refs/heads/main' }}
2827
with:
2928
folder: docs/_build/html
3029
ssh-key: ${{ secrets.DEPLOY_KEY }}

docs/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Minor Changes
66

77
- Add [HTML documentation](https://data-apis.org/array-api-compat/). Includes
8-
new documentation on the [module scope](scope) and new [developer
8+
new documentation on the [scope of the package](scope) and new [developer
99
documentation](dev/index.md).
1010

1111
- Fix `array_api_compat.numpy.asarray(torch.Tensor)` to return a NumPy array.

0 commit comments

Comments
 (0)