Skip to content

Commit 026b9b1

Browse files
committed
Remove tables from docstrings. Render as numpy-based docs using napoleon extension.
1 parent 58a2be7 commit 026b9b1

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

docs/source/api_index.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
API
22
===
33

4-
.. toctree::
5-
:maxdepth: 2
6-
:caption: API
4+
.. autosummary::
5+
:toctree: generated
76

8-
API
9-
---
7+
API Module
8+
----------
109

1110
.. automodule:: judge0.api
1211
:members:
1312
:undoc-members:
1413

15-
Submission
16-
----------
14+
Submission Module
15+
-----------------
1716

1817
.. automodule:: judge0.submission
1918
:members:

docs/source/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
# -- General configuration ---------------------------------------------------
1919
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2020

21-
extensions = ["sphinx.ext.autodoc"]
21+
extensions = [
22+
"sphinx.ext.autodoc",
23+
"sphinx.ext.napoleon",
24+
"sphinx.ext.autosummary",
25+
]
2226

2327
templates_path = ["_templates"]
2428
exclude_patterns = []
@@ -48,3 +52,5 @@
4852
"special-members": False,
4953
"inherited-members": False,
5054
}
55+
56+
napoleon_google_docstring = False

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy