|
11 | 11 |
|
12 | 12 | project = 'sphinxnotes-render' |
13 | 13 | author = 'Shengyu Zhang' |
14 | | -copyright = "2025, " + author |
| 14 | +copyright = '2025, ' + author |
15 | 15 |
|
16 | 16 | # The full version, including alpha/beta/rc tags |
17 | 17 | version = release = '1.0a0' |
|
58 | 58 | html_theme = 'furo' |
59 | 59 |
|
60 | 60 | html_theme_options = { |
61 | | - "source_repository": "https://github.com/sphinx-notes/data/", |
62 | | - "source_branch": "master", |
63 | | - "source_directory": "docs/", |
| 61 | + 'source_repository': 'https://github.com/sphinx-notes/data/', |
| 62 | + 'source_branch': 'master', |
| 63 | + 'source_directory': 'docs/', |
64 | 64 | } |
65 | 65 |
|
66 | 66 | # The URL which points to the root of the HTML documentation. |
|
96 | 96 | intersphinx_mapping = {} |
97 | 97 |
|
98 | 98 | extensions.append('sphinx_sitemap') |
99 | | -sitemap_filename = "sitemap.xml" |
100 | | -sitemap_url_scheme = "{link}" |
| 99 | +sitemap_filename = 'sitemap.xml' |
| 100 | +sitemap_url_scheme = '{link}' |
101 | 101 |
|
102 | 102 | extensions.append('sphinxext.opengraph') |
103 | 103 | ogp_site_url = html_baseurl |
|
119 | 119 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
120 | 120 | import os |
121 | 121 | import sys |
| 122 | + |
122 | 123 | sys.path.insert(0, os.path.abspath('../src/')) |
123 | 124 | extensions.append('sphinxnotes.render') |
124 | 125 |
|
|
134 | 135 | intersphinx_mapping['sphinx'] = ('https://www.sphinx-doc.org/en/master', None) |
135 | 136 | intersphinx_mapping['data'] = ('https://sphinx.silverrainz.me/data', None) |
136 | 137 |
|
| 138 | + |
137 | 139 | def setup(app): |
138 | | - app.add_object_type('event', 'event') # for intersphinx |
| 140 | + app.add_object_type('event', 'event') # for intersphinx |
| 141 | + |
| 142 | + sys.path.insert(0, os.path.abspath('./_examples')) |
| 143 | + print('DEBUG:', os.listdir('./_examples')) |
| 144 | + from ctxdir import setup as ctxdir_example_setup |
139 | 145 |
|
140 | | - sys.path.insert(0, os.path.abspath('../tests/roots/test-ctxdir-usage')) |
141 | | - from conf import setup as setup_ctxdir_usage_example |
142 | | - setup_ctxdir_usage_example(app) |
| 146 | + ctxdir_example_setup(app) |
0 commit comments