Skip to content
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

Fix documentation and upload to read the docs #22

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# File: .readthedocs.yaml

version: 2

# Build from the doc/ directory with Sphinx
sphinx:
configuration: doc/source/conf.py

# Explicitly set the version of Python and its requirements
python:
version: 3.8
install:
- requirements: doc/requirements.txt
- method: pip
path: .
15 changes: 10 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import packaging.version

import sys
import os
sys.path.insert(0, os.path.abspath('../src/qutip_cupy'))

needs_sphinx = "4.0"

Expand Down Expand Up @@ -71,9 +74,11 @@ def _version():
# Intersphinx setup

intersphinx_mapping = {
"qutip": ("https://qutip.org/docs/latest/", None),
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
"cython": ("https://cython.readthedocs.io/en/latest/", None),

'qutip': ('https://qutip.org/docs/latest/', None),
'python': ('https://docs.python.org/3', None),
'numpy': ('https://numpy.org/doc/stable/', None),
'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
'cython': ('https://cython.readthedocs.io/en/latest/', None),
'cupy': ('https://docs.cupy.dev/en/stable/index.html', None)
}
11 changes: 10 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@ qutip-cupy: CuPy backend for QuTiP

.. toctree::
:maxdepth: 2
:caption: Contents:
:caption: API documentation:

qutip_cupy.rst

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

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
13 changes: 13 additions & 0 deletions doc/qutip_cupy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:mod:`qutip_cupy`
==========================

.. automodule:: qutip_cupy
:members:
:inherited-members:
:show-inheritance:

Module contents
---------------
.. automodule:: qutip_cupy.dense
:members:
:show-inheritance:
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
urllib3==1.26.4
wincertstore==0.2
cupy[stylecheck]