File tree Expand file tree Collapse file tree 8 files changed +310
-261
lines changed Expand file tree Collapse file tree 8 files changed +310
-261
lines changed Original file line number Diff line number Diff line change
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
+ # Required
6
+ version : 2
7
+
8
+ # Build documentation in the docs/ directory with Sphinx
9
+ sphinx :
10
+ configuration : docs/source/conf.py
11
+
12
+ # Optionally build your docs in additional formats such as PDF
13
+ formats : all
14
+
15
+ # Optionally set the version of Python and requirements required to build your docs
16
+ python :
17
+ version : 3.7
18
+ install :
19
+ - requirements : docs/requirements.txt
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Install
33
33
34
34
Supported Python versions:
35
35
36
- * Python >= 3.6
36
+ * Python >= 3.6.2
37
37
* PyPy3
38
38
39
39
**Install: **
Original file line number Diff line number Diff line change
1
+ sphinx
2
+ sphinx-autodoc-typehints
Original file line number Diff line number Diff line change 7
7
import sys
8
8
from pathlib import Path
9
9
10
- from overpy import __about__ as overpy_about
11
10
12
11
# If extensions (or modules to document with autodoc) are in another directory,
13
12
# add these directories to sys.path here. If the directory is relative to the
25
24
# ones.
26
25
extensions = [
27
26
'sphinx.ext.autodoc' ,
27
+ 'sphinx_autodoc_typehints' ,
28
28
'sphinx.ext.todo' ,
29
29
'sphinx.ext.coverage' ,
30
30
'sphinx.ext.viewcode' ,
50
50
# |version| and |release|, also used in various other places throughout the
51
51
# built documents.
52
52
#
53
- # The short X.Y version.
54
- version = overpy_about .__version__
55
- # The full version, including alpha/beta/rc tags.
56
- release = overpy_about .__version__
53
+ try :
54
+ from overpy import __about__ as overpy_about
55
+ # The short X.Y version.
56
+ version = overpy_about .__version__
57
+ # The full version, including alpha/beta/rc tags.
58
+ release = overpy_about .__version__
59
+ except ImportError :
60
+ version = "unknown"
61
+ release = version
57
62
58
63
# The language for content autogenerated by Sphinx. Refer to documentation
59
64
# for a list of supported languages.
93
98
# If true, keep warnings as "system message" paragraphs in the built documents.
94
99
#keep_warnings = False
95
100
101
+ # sphinx-autodoc-typehints options
102
+ # If True, add stub documentation for undocumented parameters to be able to add type info.
103
+ always_document_param_types = True
96
104
97
105
# -- Options for HTML output ----------------------------------------------
98
106
You can’t perform that action at this time.
0 commit comments