File tree 4 files changed +15
-8
lines changed
4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ sphinx:
20
20
# configuration: mkdocs.yml
21
21
22
22
# Optionally build your docs in additional formats such as PDF and ePub
23
- formats : all
23
+ formats :
24
+ - pdf
24
25
25
26
# Optionally set the version of Python and requirements required to build your docs
26
27
python :
Original file line number Diff line number Diff line change 37
37
'sphinx_toolbox.collapse' ,
38
38
]
39
39
40
+ # https://github.com/sphinx-doc/sphinx/issues/6316
41
+ toc_object_entries = False
42
+
40
43
primary_domain = "py"
41
44
default_role = "py:obj"
42
45
# intersphinx_mapping = {"python": ("https://docs.python.org/3.6/", None)}
74
77
def setup (app ):
75
78
"""Configure Sphinx"""
76
79
app .add_css_file ('pywebio.css' )
80
+ # from docutils.parsers.rst.directives.admonitions import Note
81
+ # app.add_directive('collapse', Note)
77
82
78
83
79
84
# -- Extension configuration -------------------------------------------------
Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ ready(function () {
35
35
36
36
// Translated Version Prompt
37
37
const user_lang = ( navigator . language || navigator . userLanguage || 'en' ) . toLowerCase ( ) . split ( '-' ) [ 0 ] ;
38
- const doc_lang = window . location . pathname . split ( '/' ) [ 1 ] . split ( '_ ' ) [ 0 ] ;
38
+ const doc_lang = window . location . pathname . split ( '/' ) [ 1 ] . split ( '- ' ) [ 0 ] ;
39
39
if ( user_lang !== doc_lang && [ 'zh' , 'en' ] . indexOf ( user_lang ) !== - 1 ) {
40
40
let u = new URL ( window . location . href ) ;
41
41
let t = u . pathname . split ( '/' ) ;
42
- t [ 1 ] = user_lang === 'en' ? 'en' : 'zh_CN ' ;
42
+ t [ 1 ] = user_lang === 'en' ? 'en' : 'zh-cn ' ;
43
43
u . pathname = t . join ( '/' ) ;
44
44
45
45
let turl = u . href ;
Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ percy-selenium
21
21
coverage
22
22
23
23
# doc building requirements
24
- Jinja2 == 3.0.3
25
- sphinx == 3.*
24
+ Jinja2
25
+ sphinx
26
26
sphinx-tabs
27
- sphinx-rtd-theme == 0.4.*
28
- sphinx-toolbox == 2.15.0
27
+ sphinx-rtd-theme
28
+ sphinx-toolbox
29
29
sphinx-intl
30
- pywebio_battery
30
+ # pywebio_battery in master branch
31
+ https://github.com/pywebio/pywebio-battery/archive/refs/heads/master.zip
31
32
32
33
# demo running requirements
33
34
numpy
You can’t perform that action at this time.
0 commit comments