Skip to content

Create API docs #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Run before each commit: `bandit -r numba_dppy -lll`

Install Sphinx and plugins:
```bash
pip install sphinx autodoc recommonmark sphinx-rtd-theme
pip install sphinx autodoc recommonmark sphinx-rtd-theme sphinxcontrib-apidoc
```

Generate HTML:
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apidoc
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"sphinx_rtd_theme",
"sphinx.ext.autodoc",
"sphinx.ext.todo",
"sphinxcontrib.apidoc",
]

todo_include_todos = True
Expand All @@ -62,3 +63,11 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

modindex_common_prefix = ["numba_dppy."]

# See https://github.com/sphinx-contrib/apidoc
apidoc_module_dir = "../numba_dppy"
apidoc_output_dir = "apidoc"
apidoc_excluded_paths = ["tests"]
apidoc_separate_modules = True
14 changes: 14 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,17 @@ Numba-dppy is Licensed under Apache License 2.0 that can be found in
`LICENSE <https://github.com/IntelPython/numba-dppy/blob/main/LICENSE>`_.
All usage and contributions to the project are subject to the terms and
conditions of this license.


Indices and tables
==================

.. only:: builder_html

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

.. only:: not builder_html

* :ref:`modindex`
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ specifically to implement device functions.
To use a device function from an another device function:

.. literalinclude:: ../../../numba_dppy/examples/dppy_func.py
:pyobject: an_another_device_function
:pyobject: another_device_function

To use a device function from a kernel function ``numba_dppy.kernel``:

Expand Down
246 changes: 0 additions & 246 deletions numba_dppy/dispatcher.py

This file was deleted.