Skip to content

Commit 185333a

Browse files
committed
upgrade sphinx dependents
1 parent 90becbd commit 185333a

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.readthedocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
2627
python:

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
'sphinx_toolbox.collapse',
3838
]
3939

40+
# https://github.com/sphinx-doc/sphinx/issues/6316
41+
toc_object_entries = False
42+
4043
primary_domain = "py"
4144
default_role = "py:obj"
4245
# intersphinx_mapping = {"python": ("https://docs.python.org/3.6/", None)}
@@ -74,6 +77,8 @@
7477
def setup(app):
7578
"""Configure Sphinx"""
7679
app.add_css_file('pywebio.css')
80+
# from docutils.parsers.rst.directives.admonitions import Note
81+
# app.add_directive('collapse', Note)
7782

7883

7984
# -- Extension configuration -------------------------------------------------

docs/static/pywebio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ ready(function () {
3535

3636
// Translated Version Prompt
3737
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];
3939
if (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;

requirements.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ percy-selenium
2121
coverage
2222

2323
# doc building requirements
24-
Jinja2==3.0.3
25-
sphinx==3.*
24+
Jinja2
25+
sphinx
2626
sphinx-tabs
27-
sphinx-rtd-theme==0.4.*
28-
sphinx-toolbox==2.15.0
27+
sphinx-rtd-theme
28+
sphinx-toolbox
2929
sphinx-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
3334
numpy

0 commit comments

Comments
 (0)