Skip to content

Commit bfedb6e

Browse files
adrian-changAdrian Chang
andauthored
[PLT-0] Breakup docs/source to docs/labelbox (#1503)
Co-authored-by: Adrian Chang <achang@labelbox.com>
1 parent 8f08800 commit bfedb6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+288
-344
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build:
1212

1313
# Build documentation in the docs/ directory with Sphinx
1414
sphinx:
15-
configuration: docs/source/conf.py
15+
configuration: docs/conf.py
1616

1717
# Not building additional formats, as PDF build is failing
1818
# formats:

docs/Makefile

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

docs/source/conf.py renamed to docs/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# If extensions (or modules to document with autodoc) are in another directory,
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
1312
import os
1413
import sys
1514

@@ -18,9 +17,8 @@
1817
# -- Project information -----------------------------------------------------
1918

2019
project = 'Python SDK reference'
21-
copyright = '2021, Labelbox'
20+
copyright = '2024, Labelbox'
2221
author = 'Labelbox'
23-
2422
release = '3.66.0'
2523

2624
# -- General configuration ---------------------------------------------------
@@ -29,7 +27,8 @@
2927
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3028
# ones.
3129
extensions = [
32-
'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon'
30+
'multiproject', 'sphinx.ext.autodoc', 'sphinx.ext.viewcode',
31+
'sphinx.ext.napoleon', 'sphinx_rtd_theme'
3332
]
3433

3534
# Add any paths that contain templates here, relative to this directory.
@@ -40,6 +39,8 @@
4039
# This pattern also affects html_static_path and html_extra_path.
4140
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
4241

42+
multiproject_projects = {"labelbox": {"path": "labelbox"}}
43+
4344
# -- Options for HTML output -------------------------------------------------
4445

4546
# The theme to use for HTML and HTML Help pages. See the documentation for
@@ -50,10 +51,9 @@
5051
# Add any paths that contain custom static files (such as style sheets) here,
5152
# relative to this directory. They are copied after the builtin static files,
5253
# so a file named "default.css" will overwrite the builtin "default.css".
53-
html_static_path = ['_static']
54+
html_static_path = []
5455

5556
# Prevent the sidebar from collapsing
56-
html_js_files = ['js/prevent_collapse.js']
5757
html_theme_options = {
5858
"collapse_navigation": False,
59-
}
59+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Annotation Import
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.schema.annotation_import
5+
:members:
6+
:show-inheritance:
7+

docs/labelbox/app.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
App
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.schema.foundry.app
5+
:members:
6+
:show-inheritance:

docs/labelbox/asset-attachment.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Asset Attachment
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.schema.asset_attachment
5+
:members:
6+
:show-inheritance:

docs/labelbox/batch.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Batch
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.schema.batch
5+
:members:
6+
:show-inheritance:

docs/labelbox/benchmark.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Benchmark
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.schema.benchmark
5+
:members:
6+
:show-inheritance:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Bulk Import Request
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.schema.bulk_import_request
5+
:members:
6+
:exclude-members: create_from_local_file, create_from_objects, create_from_url, from_name
7+
:show-inheritance:

docs/labelbox/client.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Client
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.client
5+
:members:
6+
:special-members: __init__
7+
:exclude-members: upload_data, upload_file
8+
:show-inheritance:

0 commit comments

Comments
 (0)