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
3333
3434Supported Python versions:
3535
36- * Python >= 3.6
36+ * Python >= 3.6.2
3737* PyPy3
3838
3939**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 77import sys
88from pathlib import Path
99
10- from overpy import __about__ as overpy_about
1110
1211# If extensions (or modules to document with autodoc) are in another directory,
1312# add these directories to sys.path here. If the directory is relative to the
2524# ones.
2625extensions = [
2726 'sphinx.ext.autodoc' ,
27+ 'sphinx_autodoc_typehints' ,
2828 'sphinx.ext.todo' ,
2929 'sphinx.ext.coverage' ,
3030 'sphinx.ext.viewcode' ,
5050# |version| and |release|, also used in various other places throughout the
5151# built documents.
5252#
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
5762
5863# The language for content autogenerated by Sphinx. Refer to documentation
5964# for a list of supported languages.
9398# If true, keep warnings as "system message" paragraphs in the built documents.
9499#keep_warnings = False
95100
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
96104
97105# -- Options for HTML output ----------------------------------------------
98106
You can’t perform that action at this time.
0 commit comments