Skip to content

Commit

Permalink
doc: Add pipeline for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gliga committed Jan 17, 2024
1 parent 8a305cb commit 984189c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Documentation

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
- name: Sphinx build
run: |
sphinx-build doc _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interest to those already familiar with the Kokkos framework.
concepts
patterns
policies
work-units
workunits
ndarrays
examples

Expand Down
8 changes: 4 additions & 4 deletions docs/ndarrays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
N-dimensional Arrays
====================

Two common types of arguments given to workunits (:doc:`work-units`)
Two common types of arguments given to workunits (:doc:`workunits`)
are those of primitive types and n-dimensional arrays. PyKokkos nicely
interoperates with ``numpy`` and ``cupy`` arrays, as well as
introduces its own abstraction (``View``) used mostly for research
Expand All @@ -18,7 +18,7 @@ Interoperability with NumPy
---------------------------

``numpy`` arrays can be directly passed as arguments to workunits
(:doc:`work-units`). As any other argument to a workunit, the arrays
(:doc:`workunits`). As any other argument to a workunit, the arrays
are passed as keyword arguments when executing a pattern
(:doc:`patterns`).

Expand Down Expand Up @@ -60,7 +60,7 @@ Interoperability with CuPy
--------------------------

``cupy`` arrays can be directly passed as arguments to workunits
(:doc:`work-units`). As any other argument to a workunit, the arrays
(:doc:`workunits`). As any other argument to a workunit, the arrays
are passed as keyword arguments when executing a pattern
(:doc:`patterns`).

Expand Down Expand Up @@ -130,7 +130,7 @@ scalar to all elements of a view.
pk.parallel_for(n, add, v=v, x=1)
Recall (:doc:`work-units`) that type annotations are not required.
Recall (:doc:`workunits`) that type annotations are not required.

.. toctree::
:maxdepth: 2
Expand Down
File renamed without changes.

0 comments on commit 984189c

Please sign in to comment.