Skip to content

Commit 7a84003

Browse files
authored
Update all docstrings (#155)
* add autoapi to reqs * fix API Reference title * checkpoint * update * lint * finish up * lint * sphinx cosmetics * pylint * mypy * consistent example style * lint * typo: frame -> scene for scene method * add AsyncJob example usage * update links * fix typehint * fix optional typehints * annotation and prediction constructor examples * examples for API instantiations * JSON-like -> JSON * update -> overwrite (metadata) * fix * fix scene and model * fix quaternion * example fillins: str -> global
1 parent ef5331f commit 7a84003

File tree

17 files changed

+1669
-1082
lines changed

17 files changed

+1669
-1082
lines changed

docs/_templates/python/module.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
:orphan:
33

44
{% endif %}
5-
:py:mod:`{{ obj.name }}`
6-
=========={{ "=" * obj.name|length }}
5+
API Reference
6+
=============
77

88
.. py:module:: {{ obj.name }}
99

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
# The theme to use for HTML and HTML Help pages. See the documentation for
5555
# a list of builtin themes.
5656
#
57+
html_title = "Nucleus API Reference"
5758
html_theme = "furo"
5859

5960
# Add any paths that contain custom static files (such as style sheets) here,
@@ -77,7 +78,7 @@
7778
autoapi_dirs = ["../nucleus"]
7879
autoapi_options = [
7980
"members",
80-
"undoc-members", # TODO: no-undoc-members once all docstrings are populated
81+
"no-undoc-members",
8182
"inherited-members",
8283
"show-module-summary",
8384
"imported-members",
@@ -87,4 +88,5 @@
8788
autoapi_python_class_content = "both"
8889
autoapi_member_order = "groupwise"
8990
autodoc_typehints = "description"
91+
autoapi_add_toctree_entry = False
9092
napoleon_include_init_with_doc = True

docs/index.rst

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
.. Nucleus documentation master file, created by
2-
sphinx-quickstart on Mon Oct 18 13:08:57 2021.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
1+
Welcome to the Nucleus API Reference!
2+
=====================================
53

6-
Welcome to Nucleus's documentation!
7-
===================================
8-
9-
Aggregate metrics in ML are not good enough. To improve production ML, you need to understand their qualitative failure modes, fix them by gathering more data, and curate diverse scenarios.
4+
Aggregate metrics in ML are not good enough. To improve production ML, you need to understand qualitative failure modes, fix them by gathering more data, and curate diverse scenarios.
105

116
Scale Nucleus helps you:
127

@@ -17,21 +12,28 @@ Scale Nucleus helps you:
1712

1813
Nucleus is a new way—the right way—to develop ML models, helping us move away from the concept of one dataset and towards a paradigm of collections of scenarios.
1914

20-
Check out the :doc:`usage` section for further information, including how to :ref:`install <installation>` the client.
15+
.. _installation:
16+
Installation
17+
------------
18+
19+
To use Nucleus, first install it using `pip`:
20+
21+
.. code-block:: console
2122
23+
(venv) $ pip install scale-nucleus
2224
23-
Contents
25+
26+
.. _api:
27+
Sections
2428
--------
2529

2630
.. toctree::
2731
:maxdepth: 4
2832

29-
usage
30-
api
33+
api/nucleus/index
34+
3135

32-
Indices and tables
33-
==================
36+
Index
37+
-----
3438

3539
* :ref:`genindex`
36-
* :ref:`modindex`
37-
* :ref:`search`

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
sphinx-autoapi
12
sphinx
23
furo

docs/usage.rst

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)