Skip to content

Commit b1966bc

Browse files
Merge pull request flagos-ai#47 from armstrongttwalker-alt/docs/fix-homepage
docs: fix zh-CN translation warnings
2 parents d1b00b1 + 9b99d1b commit b1966bc

6 files changed

Lines changed: 56 additions & 35 deletions

File tree

docs/source/_static/css/custom.css

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,33 @@
77
.sidebar-primary-item .logo__image {
88
max-height: 45px !important;
99
width: auto !important;
10-
}
10+
}
11+
12+
/* ============================================
13+
SPHINX-TIPPY BUG FIX
14+
Ensures tooltips are visible and layered correctly
15+
============================================ */
16+
17+
.tippy-box {
18+
background-color: var(--pst-color-surface) !important;
19+
color: var(--pst-color-text-base) !important;
20+
border: 1px solid var(--pst-color-border) !important;
21+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
22+
z-index: 10000 !important; /* Forces tooltips above the book-theme sidebar/navbar content */
23+
}
24+
25+
/* Fix the tooltip arrow color to match the card background */
26+
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
27+
border-top-color: var(--pst-color-surface) !important;
28+
}
29+
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
30+
border-bottom-color: var(--pst-color-surface) !important;
31+
}
32+
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
33+
border-left-color: var(--pst-color-surface) !important;
34+
}
35+
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
36+
border-right-color: var(--pst-color-surface) !important;
37+
}
38+
39+
tippy_tip_selector = "figure, table, img, p, aside, div.admonition, div.literal-block-wrapper, dl.glossary dd"

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
html_theme = "sphinx_book_theme"
7676
html_static_path = ["_static"]
77-
# html_css_files = ["css/custom.css"]
77+
html_css_files = ["css/custom.css"]
7878
# html_js_files = []
7979

8080
# Logo and favicon configuration based on build language

docs/source/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A benchmark framework for evaluating LLM and agent-based Triton kernel generation across multiple hardware platforms.
44

55
```{button-ref} getting-started/index
6-
:ref-type: myst
6+
:ref-type: doc
77
:color: primary
88
:class: sd-btn-lg sd-px-4 sd-py-2 sd-fw-bold
99

docs/source/locale/zh_CN/LC_MESSAGES/development/contributing.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: KernelGenBench Documentation \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-06-15 10:42+0800\n"
11+
"POT-Creation-Date: 2026-06-18 11:36+0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language: zh_CN\n"
@@ -150,6 +150,6 @@ msgstr "许可证"
150150
#: ../../source/development/contributing.md:68
151151
msgid ""
152152
"By contributing, you agree that your contributions will be licensed under"
153-
" the MIT License."
154-
msgstr ""
155-
"通过贡献,您同意您的贡献将根据 MIT 许可证授权。"
153+
" the Apache 2.0 License."
154+
msgstr "通过贡献,您同意您的贡献将根据 Apache 2.0 许可证授权。"
155+

docs/source/locale/zh_CN/LC_MESSAGES/getting-started/index.po

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: KernelGenBench Documentation \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-06-17 11:11+0800\n"
11+
"POT-Creation-Date: 2026-06-18 11:36+0800\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language: zh_CN\n"
@@ -40,8 +40,8 @@ msgid "Before installing {term}`KernelGenBench`, ensure you have:"
4040
msgstr "在安装 {term}`KernelGenBench` 之前,请确保您具备:"
4141

4242
#: ../../source/getting-started/index.md:9
43-
msgid "Python 3.8 or higher"
44-
msgstr "Python 3.8 或更高版本"
43+
msgid "Python 3.10 or higher"
44+
msgstr "Python 3.10 或更高版本"
4545

4646
#: ../../source/getting-started/index.md:10
4747
#, python-brace-format
@@ -149,56 +149,48 @@ msgid "Description"
149149
msgstr "描述"
150150

151151
#: ../../source/getting-started/index.md
152-
#, python-brace-format
153-
msgid "`{term}`KernelGenBench``"
154-
msgstr "{term}`KernelGenBench`"
152+
msgid "`KernelGenBench`"
153+
msgstr "`KernelGenBench`"
155154

156155
#: ../../source/getting-started/index.md
157156
msgid "210"
158157
msgstr "210"
159158

160159
#: ../../source/getting-started/index.md
161-
#, python-brace-format
162-
msgid "Full set ({term}`ATen` + {term}`vLLM` + {term}`cuBLAS`)"
163-
msgstr "完整集合({term}`ATen` + {term}`vLLM` + {term}`cuBLAS`)"
160+
msgid "Full set (ATen + vLLM + cuBLAS, NVIDIA)"
161+
msgstr "完整集合 (ATen + vLLM + cuBLAS, NVIDIA)"
164162

165163
#: ../../source/getting-started/index.md
166-
#, python-brace-format
167-
msgid "`{term}`KernelGenBench-aten``"
168-
msgstr "{term}`KernelGenBench-aten`"
164+
msgid "`KernelGenBench-aten`"
165+
msgstr "`KernelGenBench-aten`"
169166

170167
#: ../../source/getting-started/index.md
171168
msgid "110"
172169
msgstr "110"
173170

174171
#: ../../source/getting-started/index.md
175-
#, python-brace-format
176-
msgid "{term}`ATen` operators only"
177-
msgstr "仅 {term}`ATen` 算子"
172+
msgid "ATen operators only"
173+
msgstr "仅 ATen 算子"
178174

179175
#: ../../source/getting-started/index.md
180-
#, python-brace-format
181-
msgid "`{term}`KernelGenBench-vllm``"
182-
msgstr "{term}`KernelGenBench-vllm`"
176+
msgid "`KernelGenBench-vllm`"
177+
msgstr "`KernelGenBench-vllm`"
183178

184179
#: ../../source/getting-started/index.md
185180
msgid "50"
186181
msgstr "50"
187182

188183
#: ../../source/getting-started/index.md
189-
#, python-brace-format
190-
msgid "{term}`vLLM` operators only (NVIDIA only)"
191-
msgstr "仅 {term}`vLLM` 算子(仅限 NVIDIA)"
184+
msgid "vLLM operators only (NVIDIA only)"
185+
msgstr "仅 vLLM 算子 (仅限 NVIDIA)"
192186

193187
#: ../../source/getting-started/index.md
194-
#, python-brace-format
195-
msgid "`{term}`KernelGenBench-cublas``"
196-
msgstr "{term}`KernelGenBench-cublas`"
188+
msgid "`KernelGenBench-cublas`"
189+
msgstr "`KernelGenBench-cublas`"
197190

198191
#: ../../source/getting-started/index.md
199-
#, python-brace-format
200-
msgid "{term}`cuBLAS` operators only (NVIDIA only)"
201-
msgstr "仅 {term}`cuBLAS` 算子(仅限 NVIDIA)"
192+
msgid "cuBLAS operators only (NVIDIA only)"
193+
msgstr "仅 cuBLAS 算子 (仅限 NVIDIA)"
202194

203195
#: ../../source/getting-started/index.md:124
204196
#, python-brace-format

docs/source/locale/zh_CN/LC_MESSAGES/index.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ msgstr "一个用于评估 LLM 和智能体驱动的 Triton 内核生成的基
5959

6060
#: ../../source/index.md:5
6161
msgid "Getting Started"
62-
msgstr "<getting-started/index>快速开始"
62+
msgstr "快速开始"
6363

6464
#: ../../source/index.md:17
6565
msgid ""

0 commit comments

Comments
 (0)