File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ sphinx:
2020# configuration: mkdocs.yml
2121
2222# Optionally build your docs in additional formats such as PDF and ePub
23- formats : all
23+ formats :
24+ - pdf
2425
2526# Optionally set the version of Python and requirements required to build your docs
2627python :
Original file line number Diff line number Diff line change 3737 'sphinx_toolbox.collapse' ,
3838]
3939
40+ # https://github.com/sphinx-doc/sphinx/issues/6316
41+ toc_object_entries = False
42+
4043primary_domain = "py"
4144default_role = "py:obj"
4245# intersphinx_mapping = {"python": ("https://docs.python.org/3.6/", None)}
7174html_static_path = ['static' ]
7275
7376
77+
7478def setup (app ):
7579 """Configure Sphinx"""
7680 app .add_css_file ('pywebio.css' )
81+ # from docutils.parsers.rst.directives.admonitions import Note
82+ # app.add_directive('collapse', Note)
7783
7884
7985# -- Extension configuration -------------------------------------------------
Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ ready(function () {
3535
3636// Translated Version Prompt
3737const 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 ] ;
3939if ( user_lang !== doc_lang && [ 'zh' , 'en' ] . indexOf ( user_lang ) !== - 1 ) {
4040 let u = new URL ( window . location . href ) ;
4141 let t = u . pathname . split ( '/' ) ;
42- t [ 1 ] = user_lang === 'en' ? 'en' : 'zh_CN ' ;
42+ t [ 1 ] = user_lang === 'en' ? 'en' : 'zh-cn ' ;
4343 u . pathname = t . join ( '/' ) ;
4444
4545 let turl = u . href ;
Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ percy-selenium
2121coverage
2222
2323# doc building requirements
24- Jinja2 == 3.0.3
25- sphinx == 3.*
24+ Jinja2
25+ sphinx
2626sphinx-tabs
27- sphinx-rtd-theme == 0.4.*
28- sphinx-toolbox == 2.15.0
27+ sphinx-rtd-theme
28+ sphinx-toolbox
2929sphinx-intl
30- pywebio_battery
30+ # pywebio_battery in master branch
31+ https://github.com/pywebio/pywebio-battery/archive/refs/heads/master.zip
3132
3233# demo running requirements
3334numpy
You can’t perform that action at this time.
0 commit comments