Skip to content

Commit a9ea51d

Browse files
committed
docs: Try fix doc build
1 parent 6b2a053 commit a9ea51d

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

docs/_examples/ctxdir.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../tests/roots/test-ctxdir-usage/conf.py

docs/conf.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
project = 'sphinxnotes-render'
1313
author = 'Shengyu Zhang'
14-
copyright = "2025, " + author
14+
copyright = '2025, ' + author
1515

1616
# The full version, including alpha/beta/rc tags
1717
version = release = '1.0a0'
@@ -58,9 +58,9 @@
5858
html_theme = 'furo'
5959

6060
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/',
6464
}
6565

6666
# The URL which points to the root of the HTML documentation.
@@ -96,8 +96,8 @@
9696
intersphinx_mapping = {}
9797

9898
extensions.append('sphinx_sitemap')
99-
sitemap_filename = "sitemap.xml"
100-
sitemap_url_scheme = "{link}"
99+
sitemap_filename = 'sitemap.xml'
100+
sitemap_url_scheme = '{link}'
101101

102102
extensions.append('sphinxext.opengraph')
103103
ogp_site_url = html_baseurl
@@ -119,6 +119,7 @@
119119
# documentation root, use os.path.abspath to make it absolute, like shown here.
120120
import os
121121
import sys
122+
122123
sys.path.insert(0, os.path.abspath('../src/'))
123124
extensions.append('sphinxnotes.render')
124125

@@ -134,9 +135,12 @@
134135
intersphinx_mapping['sphinx'] = ('https://www.sphinx-doc.org/en/master', None)
135136
intersphinx_mapping['data'] = ('https://sphinx.silverrainz.me/data', None)
136137

138+
137139
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
139145

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

Comments
 (0)