|
20 | 20 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
21 | 21 |
|
22 | 22 | extensions = [ |
23 | | - 'myst_parser', # Markdown support |
24 | | - 'sphinx.ext.autodoc', # API documentation from docstrings |
25 | | - 'sphinx.ext.napoleon', # Support for NumPy and Google style docstrings |
26 | | - 'sphinx.ext.viewcode', # Add links to source code |
27 | | - 'autoapi.extension', # Automatic API documentation generation |
28 | | - 'nbsphinx', # Jupyter notebook support |
| 23 | + 'myst_parser', # Markdown support |
| 24 | + 'sphinx.ext.autodoc', # API documentation from docstrings |
| 25 | + 'sphinx.ext.autosummary', # Generate summary tables for modules |
| 26 | + 'sphinx.ext.napoleon', # Support for NumPy and Google style docstrings |
| 27 | + 'sphinx.ext.viewcode', # Add links to source code |
| 28 | + 'nbsphinx', # Jupyter notebook support |
29 | 29 | 'sphinx.ext.intersphinx', # Link to other project docs |
30 | 30 | ] |
31 | 31 |
|
|
44 | 44 | "tasklist", # Task lists |
45 | 45 | ] |
46 | 46 |
|
47 | | -# AutoAPI Configuration (replaces mkdocstrings) |
48 | | -autoapi_type = 'python' |
49 | | -autoapi_dirs = ['../labcore'] |
50 | | -autoapi_options = [ |
51 | | - 'members', |
52 | | - 'undoc-members', |
53 | | - 'show-inheritance', |
54 | | - 'show-module-summary', |
55 | | - 'imported-members', |
56 | | -] |
57 | | -autoapi_keep_files = False |
58 | | -autoapi_add_toctree_entry = True |
59 | | -autoapi_python_class_content = 'both' # Include both class and __init__ docstrings |
| 47 | +# Allow MyST to parse Sphinx roles and directives |
| 48 | +myst_enable_roles = True |
| 49 | + |
| 50 | +# Autosummary configuration (auto-generate API docs) |
| 51 | +autosummary_generate = True |
| 52 | +autosummary_generate_overwrite = True |
| 53 | + |
| 54 | +# Autodoc configuration (required for proper cross-references) |
| 55 | +autodoc_default_options = { |
| 56 | + 'members': True, |
| 57 | + 'undoc-members': False, |
| 58 | + 'show-inheritance': True, |
| 59 | +} |
| 60 | + |
| 61 | +# MyST configuration for proper cross-references in Markdown |
| 62 | +myst_linkify_fuzzy_links = True |
60 | 63 |
|
61 | 64 | # nbsphinx configuration (for Jupyter notebooks) |
62 | 65 | nbsphinx_execute = 'never' # Don't execute notebooks during build (safer) |
|
89 | 92 | html_baseurl = 'https://toolsforexperiments.github.io/labcore/' |
90 | 93 |
|
91 | 94 | html_theme_options = { |
| 95 | + "show_nav_level": 2, |
92 | 96 | "logo": { |
93 | 97 | "text": "Labcore", |
94 | 98 | }, |
|
0 commit comments