File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 33
33
"sphinx.ext.intersphinx" ,
34
34
"sphinx.ext.viewcode" ,
35
35
"sphinx_inline_tabs" ,
36
+ "hoverxref.extension" ,
36
37
]
38
+
37
39
intersphinx_mapping = {
38
40
"python" : ("https://docs.python.org/zh-cn/3" , None ),
39
41
"requests" : ("https://docs.python-requests.org/zh_CN/latest" , None ),
40
42
"PIL" : ("https://pillow.readthedocs.io/en/stable" , None ),
41
43
}
44
+ hoverxref_auto_ref = True
45
+ hoverxref_intersphinx = [
46
+ "python" ,
47
+ "requests" ,
48
+ "PIL" ,
49
+ ]
42
50
43
51
# Add any paths that contain templates here, relative to this directory.
44
52
templates_path = ["_templates" ]
Original file line number Diff line number Diff line change 1
1
furo
2
2
sphinx
3
+ sphinx-hoverxref
3
4
sphinx-inline-tabs
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ long_description_content_type = text/markdown
9
9
url = https://github.com/piterator-org/pyluogu
10
10
project_urls =
11
11
Bug Tracker = https://github.com/piterator-org/pyluogu/issues
12
+ Documentation = https://pyluogu.readthedocs.io/
12
13
classifiers =
13
14
Programming Language :: Python :: 3
14
15
License :: OSI Approved :: MIT License
Original file line number Diff line number Diff line change 14
14
black
15
15
flake8
16
16
commands =
17
- flake8 src tests
18
- black src tests
17
+ flake8
18
+ black --check .
19
19
20
20
[testenv:docs]
21
21
allowlist_externals = make
You can’t perform that action at this time.
0 commit comments