diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 4436554f..962ec792 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,4 +1,11 @@ +build: + image: latest + python: version: 3.8 setup_py_install: true - pip_install: true \ No newline at end of file + pip_install: true + +formats: + - pdf + - epub diff --git a/docs/Makefile b/docs/Makefile index 01c04856..60b12bbd 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -5,8 +5,8 @@ SPHINXOPTS = SPHINXBUILD = sphinx-build SOURCEDIR = . -BUILDDIR = build -PYTHON3 = python3 +BUILDDIR = _build +PYTHON3 = python # TODO handle like this? export NETQASM_SIMULATOR = debug diff --git a/docs/api_root.rst b/docs/api_root.rst index 84bda24b..0f51256b 100644 --- a/docs/api_root.rst +++ b/docs/api_root.rst @@ -9,4 +9,4 @@ netqasm package netqasm.logging netqasm.runtime netqasm.sdk - netqasm.util \ No newline at end of file + netqasm.util diff --git a/docs/api_sdk/netqasm.sdk.compiling.rst b/docs/api_sdk/netqasm.sdk.compiling.rst deleted file mode 100644 index f847758f..00000000 --- a/docs/api_sdk/netqasm.sdk.compiling.rst +++ /dev/null @@ -1,8 +0,0 @@ -netqasm\.sdk\.compiling ---------------------------- - -.. automodule:: netqasm.sdk.compiling - :members: - :undoc-members: - :show-inheritance: - :inherited-members: diff --git a/docs/conf.py b/docs/conf.py index 445ac0a2..8f2c0fac 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,9 +22,9 @@ author = "QuTech" # The full version, including alpha/beta/rc tags -from importlib.metadata import version +from importlib.metadata import version as get_release_version -release = version("netqasm") +release = get_release_version("netqasm") # -- General configuration --------------------------------------------------- @@ -84,4 +84,4 @@ # Add any paths that contain custom static files (such as style sheets) here, # 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"] +# html_static_path = ["_static"] diff --git a/docs/netqasm.examples.rst b/docs/netqasm.examples.rst index aed5013a..23d7ac49 100644 --- a/docs/netqasm.examples.rst +++ b/docs/netqasm.examples.rst @@ -8,4 +8,6 @@ netqasm\.examples api_examples/netqasm.examples.apps api_examples/netqasm.examples.lib api_examples/netqasm.examples.netqasm_files - api_examples/netqasm.examples.sdk_examples \ No newline at end of file + api_examples/netqasm.examples.qne_apps + api_examples/netqasm.examples.sdk_compilation + api_examples/netqasm.examples.sdk_scripts diff --git a/docs/netqasm.sdk.rst b/docs/netqasm.sdk.rst index b692486a..5fa0d382 100644 --- a/docs/netqasm.sdk.rst +++ b/docs/netqasm.sdk.rst @@ -1,5 +1,5 @@ netqasm\.sdk -================ +============ .. toctree:: :caption: Modules @@ -7,7 +7,6 @@ netqasm\.sdk api_sdk/netqasm.sdk.builder api_sdk/netqasm.sdk.classical_communication - api_sdk/netqasm.sdk.compiling api_sdk/netqasm.sdk.config api_sdk/netqasm.sdk.connection api_sdk/netqasm.sdk.epr_socket @@ -17,4 +16,4 @@ netqasm\.sdk api_sdk/netqasm.sdk.progress_bar api_sdk/netqasm.sdk.qubit api_sdk/netqasm.sdk.shared_memory - api_sdk/netqasm.sdk.toolbox \ No newline at end of file + api_sdk/netqasm.sdk.toolbox diff --git a/docs/quickstart/modules.rst b/docs/quickstart/modules.rst index 698f7f29..327c917a 100644 --- a/docs/quickstart/modules.rst +++ b/docs/quickstart/modules.rst @@ -50,7 +50,7 @@ NetQASM connection :noindex: :special-members: __enter__, __exit__ :members: - :undoc-members: app_name, node_name, app_id, flush, block + :undoc-members: app_name, node_name, app_id, flush, block Qubit ----- @@ -61,7 +61,7 @@ Qubit .. autoclass:: Qubit :noindex: :members: - :undoc-members: qubit_id, entanglement_info, remote_entangled_node, measure, + :undoc-members: qubit_id, entanglement_info, remote_entangled_node, measure, X, Y, Z, H, S, K, T, rot_X, rot_Y, rot_Z, cnot, cphase, reset, free @@ -74,8 +74,8 @@ EPR socket .. autoclass:: EPRSocket :members: - :undoc-members: conn, remote_app_name, remote_node_id, epr_socket_id, remote_epr_socket_id, min_fidelity, - create, recv, + :undoc-members: conn, remote_app_name, remote_node_id, epr_socket_id, remote_epr_socket_id, min_fidelity, + create, recv, :noindex: .. automethod:: create_context(number=1, sequential=False) @@ -92,20 +92,19 @@ Futures .. autoclass:: Future :members: - :undoc-members: add, value + :undoc-members: add, value :noindex: .. autoclass:: Array :members: - :undoc-members: get_future_index, get_future_slice, foreach, enumerate + :undoc-members: get_future_index, get_future_slice, foreach, enumerate :noindex: .. autoclass:: RegFuture :members: - :undoc-members: add, value + :undoc-members: add, value :noindex: - Classical communication ----------------------- diff --git a/docs/requirements.txt b/docs/requirements.txt index 73611b25..a153311d 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,3 +1,5 @@ sphinx>=3.5.3,<4.0.0 sphinx-rtd-theme>=0.5.2,<1.0.0 sphinx-autodoc-typehints>=1.11.1,<2.0.0 +jinja2<3.0.0 +MarkupSafe==2.0.1