Skip to content

Commit afae3cc

Browse files
committed
chore: docs
1 parent 530b380 commit afae3cc

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

docs/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,20 @@
3333
"sphinx.ext.intersphinx",
3434
"sphinx.ext.viewcode",
3535
"sphinx_inline_tabs",
36+
"hoverxref.extension",
3637
]
38+
3739
intersphinx_mapping = {
3840
"python": ("https://docs.python.org/zh-cn/3", None),
3941
"requests": ("https://docs.python-requests.org/zh_CN/latest", None),
4042
"PIL": ("https://pillow.readthedocs.io/en/stable", None),
4143
}
44+
hoverxref_auto_ref = True
45+
hoverxref_intersphinx = [
46+
"python",
47+
"requests",
48+
"PIL",
49+
]
4250

4351
# Add any paths that contain templates here, relative to this directory.
4452
templates_path = ["_templates"]

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
furo
22
sphinx
3+
sphinx-hoverxref
34
sphinx-inline-tabs

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ long_description_content_type = text/markdown
99
url = https://github.com/piterator-org/pyluogu
1010
project_urls =
1111
Bug Tracker = https://github.com/piterator-org/pyluogu/issues
12+
Documentation = https://pyluogu.readthedocs.io/
1213
classifiers =
1314
Programming Language :: Python :: 3
1415
License :: OSI Approved :: MIT License

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ deps =
1414
black
1515
flake8
1616
commands =
17-
flake8 src tests
18-
black src tests
17+
flake8
18+
black --check .
1919

2020
[testenv:docs]
2121
allowlist_externals = make

0 commit comments

Comments
 (0)