File tree Expand file tree Collapse file tree 3 files changed +46
-7
lines changed
Expand file tree Collapse file tree 3 files changed +46
-7
lines changed Original file line number Diff line number Diff line change 1+ API
2+ ===
3+
4+ .. toctree ::
5+ :maxdepth: 2
6+ :caption: API
7+
8+ API
9+ ---
10+
11+ .. automodule :: judge0.api
12+ :members:
13+ :undoc-members:
14+
15+ Submission
16+ ----------
17+
18+ .. automodule :: judge0.submission
19+ :members:
20+ :undoc-members:
Original file line number Diff line number Diff line change 66# -- Project information -----------------------------------------------------
77# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88
9+
10+ import os
11+ import sys
12+
913project = "Judge0 Python SDK"
1014copyright = "2024, Judge0"
1115author = "Judge0"
1418# -- General configuration ---------------------------------------------------
1519# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1620
17- extensions = ["sphinx_rtd_theme " ]
21+ extensions = ["sphinx.ext.autodoc " ]
1822
1923templates_path = ["_templates" ]
2024exclude_patterns = []
2529
2630html_theme = "sphinx_rtd_theme"
2731html_static_path = ["_static" ]
32+
33+ sys .path .insert (0 , os .path .abspath ("../src/judge0" )) # Adjust as needed
34+
35+ html_theme_options = {
36+ # Toc options
37+ "collapse_navigation" : True ,
38+ "sticky_navigation" : True ,
39+ "navigation_depth" : 4 ,
40+ "includehidden" : True ,
41+ "titles_only" : False ,
42+ }
43+
44+ autodoc_default_options = {
45+ "members" : True ,
46+ "undoc-members" : True ,
47+ "private-members" : False ,
48+ "special-members" : False ,
49+ "inherited-members" : False ,
50+ }
Original file line number Diff line number Diff line change 66 Judge0 Python SDK documentation
77===============================
88
9- Add your content using ``reStructuredText `` syntax. See the
10- `reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html >`_
11- documentation for details.
12-
13-
149.. toctree ::
1510 :maxdepth: 2
16- :caption: Contents:
11+ :caption: Contents
1712
13+ api_index
You can’t perform that action at this time.
0 commit comments