|
10 | 10 | # add these directories to sys.path here. If the directory is relative to the |
11 | 11 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
12 | 12 | # |
13 | | -# import os |
14 | | -# import sys |
15 | | -# sys.path.insert(0, os.path.abspath('.')) |
| 13 | +import os |
| 14 | +import sys |
| 15 | + |
| 16 | +sys.path.insert(0, os.path.abspath("../py_wave_runup/")) |
16 | 17 |
|
17 | 18 |
|
18 | 19 | # -- Project information ----------------------------------------------------- |
|
26 | 27 |
|
27 | 28 |
|
28 | 29 | # -- General configuration --------------------------------------------------- |
29 | | - |
30 | 30 | # Add any Sphinx extension module names here, as strings. They can be |
31 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
32 | 32 | # ones. |
33 | | -extensions = [] |
| 33 | +extensions = ["sphinx.ext.autodoc"] |
34 | 34 |
|
35 | 35 | # Add any paths that contain templates here, relative to this directory. |
36 | 36 | templates_path = ["_templates"] |
|
43 | 43 | # The master toctree document. |
44 | 44 | master_doc = "index" |
45 | 45 |
|
| 46 | +source_suffix = ".rst" |
| 47 | +autoclass_content = "both" |
| 48 | + |
| 49 | + |
46 | 50 | # -- Options for HTML output ------------------------------------------------- |
47 | 51 |
|
48 | 52 | # The theme to use for HTML and HTML Help pages. See the documentation for |
|
54 | 58 | # relative to this directory. They are copied after the builtin static files, |
55 | 59 | # so a file named "default.css" will overwrite the builtin "default.css". |
56 | 60 | html_static_path = ["_static"] |
| 61 | + |
| 62 | +pygments_style = "sphinx" |
| 63 | + |
| 64 | + |
| 65 | +def autodoc_skip_member(app, what, name, obj, skip, options): |
| 66 | + exclusions = ("RunupModel",) |
| 67 | + exclude = name in exclusions |
| 68 | + return skip or exclude |
| 69 | + |
| 70 | + |
| 71 | +def setup(app): |
| 72 | + app.connect("autodoc-skip-member", autodoc_skip_member) |
0 commit comments