Skip to content

Commit 2fc3416

Browse files
committed
Follow the PR #39990, remove ability to conditionalize parts of the documentation from Chinese docs.
1 parent 7888c42 commit 2fc3416

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

src/doc/zh/a_tour_of_sage/conf.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
from sage_docbuild.conf import release
1414
from sage_docbuild.conf import * # NOQA
1515

16-
17-
for tag in feature_tags():
18-
tags.add(tag)
19-
20-
2116
# Add any paths that contain custom static files (such as style sheets),
2217
# relative to this directory to html_static_path. They are copied after the
2318
# builtin static files, so a file named "default.css" will overwrite the
@@ -27,8 +22,8 @@
2722

2823
# Add small view/edit buttons.
2924
html_theme_options.update({
30-
'source_view_link': os.path.join(source_repository, 'blob/develop/src/doc/zh/a_tour_of_sage', '{filename}'),
31-
'source_edit_link': os.path.join(source_repository, 'edit/develop/src/doc/zh/a_tour_of_sage', '{filename}'),
25+
'source_view_link': os.path.join(source_repository, 'blob/develop/src/doc/zh/a_tour_of_sage', '{filename}'),
26+
'source_edit_link': os.path.join(source_repository, 'edit/develop/src/doc/zh/a_tour_of_sage', '{filename}'),
3227
})
3328

3429
# General information about the project.
@@ -50,6 +45,6 @@
5045
# Grouping the document tree into LaTeX files. List of tuples
5146
# (source start file, target name, title, author, document class [howto/manual]).
5247
latex_documents = [
53-
('index', name + '.tex', project,
54-
'The Sage Development Team', 'manual'),
48+
('index', name + '.tex', project,
49+
'Sage 开发团队', 'manual'),
5550
]

src/doc/zh/tutorial/conf.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
from sage_docbuild.conf import release
1414
from sage_docbuild.conf import * # NOQA
1515

16-
17-
for tag in feature_tags():
18-
tags.add(tag)
19-
20-
2116
# Add any paths that contain custom static files (such as style sheets),
2217
# relative to this directory to html_static_path. They are copied after the
2318
# builtin static files, so a file named "default.css" will overwrite the
@@ -27,8 +22,8 @@
2722

2823
# Add small view/edit buttons.
2924
html_theme_options.update({
30-
'source_view_link': os.path.join(source_repository, 'blob/develop/src/doc/zh/tutorial', '{filename}'),
31-
'source_edit_link': os.path.join(source_repository, 'edit/develop/src/doc/zh/tutorial', '{filename}'),
25+
'source_view_link': os.path.join(source_repository, 'blob/develop/src/doc/zh/tutorial', '{filename}'),
26+
'source_edit_link': os.path.join(source_repository, 'edit/develop/src/doc/zh/tutorial', '{filename}'),
3227
})
3328

3429
# General information about the project.
@@ -50,6 +45,6 @@
5045
# Grouping the document tree into LaTeX files. List of tuples
5146
# (source start file, target name, title, author, document class [howto/manual]).
5247
latex_documents = [
53-
('index', name + '.tex', project,
54-
'The Sage Development Team', 'manual'),
48+
('index', name + '.tex', project,
49+
'Sage 开发团队', 'manual'),
5550
]

src/doc/zh/tutorial/latex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Sage 中的每个“对象”都必须有 LaTeX 表示。你可以通过执行 `
4141
在 Jupyter Notebook 中,你可以自动看到输入命令输出的渲染 LaTeX 表示。
4242
你可以通过执行 ``%display latex`` 来启动自动渲染(并通过执行 ``%display plain`` 停止)。
4343

44-
.. ONLY:: html and feature_jupyter_sphinx
44+
.. ONLY:: html
4545

4646
因此,在 Jupyter notebook 中,你得到
4747

0 commit comments

Comments
 (0)