Skip to content

Commit f6cbf7d

Browse files
authored
Merge pull request #62 from stackql/claude/fix-readthedocs-api-docs-011CUyEuSL8DhJp3P2VBZZgn
Fix missing API documentation on ReadTheDocs
2 parents 44e69f6 + aab3179 commit f6cbf7d

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

.readthedocs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
13+
# Build documentation in the docs/ directory with Sphinx
14+
sphinx:
15+
configuration: docs/source/conf.py
16+
17+
# Optionally declare the Python requirements required to build your docs
18+
python:
19+
install:
20+
- method: pip
21+
path: .
22+
- requirements: docs/requirements.txt

docs/source/conf.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,34 @@
4242
'sphinx.ext.autodoc',
4343
'sphinx.ext.viewcode',
4444
'sphinx.ext.todo',
45+
'sphinx.ext.napoleon',
4546
]
4647

48+
# Autodoc configuration
49+
autodoc_default_options = {
50+
'members': True,
51+
'member-order': 'bysource',
52+
'special-members': '__init__',
53+
'undoc-members': True,
54+
'exclude-members': '__weakref__'
55+
}
56+
57+
# Napoleon settings for Google/NumPy style docstrings
58+
napoleon_google_docstring = True
59+
napoleon_numpy_docstring = True
60+
napoleon_include_init_with_doc = True
61+
napoleon_include_private_with_doc = False
62+
napoleon_include_special_with_doc = True
63+
napoleon_use_admonition_for_examples = False
64+
napoleon_use_admonition_for_notes = False
65+
napoleon_use_admonition_for_references = False
66+
napoleon_use_ivar = False
67+
napoleon_use_param = True
68+
napoleon_use_rtype = True
69+
napoleon_preprocess_types = False
70+
napoleon_type_aliases = None
71+
napoleon_attr_annotations = True
72+
4773
# Add any paths that contain templates here, relative to this directory.
4874
templates_path = ['../_templates']
4975

docs/source/pystackql.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ API Reference for pystackql
44
StackQL Class
55
-------------
66
.. autoclass:: pystackql.StackQL
7-
:noindex:
87
:members:
98
:undoc-members:
109
:show-inheritance:
10+
:special-members: __init__
1111

1212

0 commit comments

Comments
 (0)