|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | """Configuration file for the Sphinx documentation builder.""" |
3 | 3 |
|
4 | | -# tsml-subpackage-template documentation master file, created by |
| 4 | +# tsml documentation master file, created by |
5 | 5 | # sphinx-quickstart on Wed Dec 14 00:20:27 2022. |
6 | 6 |
|
7 | 7 | import inspect |
8 | 8 | import os |
9 | 9 | import sys |
10 | 10 |
|
11 | | -import tsml_subpackage_template |
| 11 | +import tsml |
12 | 12 |
|
13 | 13 | # The version info for the project you're documenting, acts as replacement for |
14 | 14 | # |version| and |release|, also used in various other places throughout the |
15 | 15 | # built documents. |
16 | 16 |
|
17 | | -version = tsml_subpackage_template.__version__ |
18 | | -release = tsml_subpackage_template.__version__ |
| 17 | +version = tsml.__version__ |
| 18 | +release = tsml.__version__ |
19 | 19 |
|
20 | 20 | github_tag = f"v{version}" |
21 | 21 |
|
|
37 | 37 | # -- Project information ----------------------------------------------------- |
38 | 38 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
39 | 39 |
|
40 | | -project = "tsml-subpackage-template" |
| 40 | +project = "tsml" |
41 | 41 | copyright = "2022 - 2023, The tsml developers (BSD-3 License)" |
42 | 42 | author = "Matthew Middlehurst" |
43 | 43 |
|
|
87 | 87 |
|
88 | 88 | # add link to original notebook at the bottom and add Binder launch button |
89 | 89 | # points to latest stable release, not main |
90 | | -notebook_url = f"https://github.com/time-series-machine-learning/tsml-subpackage-template/tree/{github_tag}/{current_file}" # noqa |
91 | | -binder_url = f"https://mybinder.org/v2/gh/time-series-machine-learning/tsml-subpackage-template/{github_tag}?filepath={current_file}" # noqa |
| 90 | +notebook_url = f"https://github.com/time-series-machine-learning/tsml-py/tree/{github_tag}/{current_file}" # noqa |
| 91 | +binder_url = f"https://mybinder.org/v2/gh/time-series-machine-learning/tsml-py/{github_tag}?filepath={current_file}" # noqa |
92 | 92 | nbsphinx_epilog = f""" |
93 | 93 | ---- |
94 | 94 |
|
@@ -120,24 +120,18 @@ def find_source(): |
120 | 120 | obj = getattr(obj, part) |
121 | 121 |
|
122 | 122 | fn = inspect.getsourcefile(obj) |
123 | | - fn = os.path.relpath( |
124 | | - fn, start=os.path.dirname(tsml_subpackage_template.__file__) |
125 | | - ) |
| 123 | + fn = os.path.relpath(fn, start=os.path.dirname(tsml.__file__)) |
126 | 124 | source, lineno = inspect.getsourcelines(obj) |
127 | 125 | return fn, lineno, lineno + len(source) - 1 |
128 | 126 |
|
129 | 127 | if domain != "py" or not info["module"]: |
130 | 128 | return None |
131 | 129 | try: |
132 | | - filename = "tsml_subpackage_template/%s#L%d-L%d" % find_source() |
| 130 | + filename = "tsml/%s#L%d-L%d" % find_source() |
133 | 131 | except Exception: |
134 | 132 | filename = info["module"].replace(".", "/") + ".py" |
135 | 133 |
|
136 | | - return ( |
137 | | - "https://github.com/time-series-machine-learning/" |
138 | | - + "tsml-subpackage-template/blob/%s/%s" |
139 | | - % ( |
140 | | - version, |
141 | | - filename, |
142 | | - ) |
| 134 | + return "https://github.com/time-series-machine-learning/tsml-py/blob/%s/%s" % ( |
| 135 | + version, |
| 136 | + filename, |
143 | 137 | ) |
0 commit comments