-
Notifications
You must be signed in to change notification settings - Fork 509
/
MathMLRef.ejs
86 lines (84 loc) · 2.33 KB
/
MathMLRef.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<%
const locale = env.locale;
const text = mdn.localStringMap({
'de': {
'Reference': 'Referenz',
'Elements': 'Elemente',
'Global attributes': 'Globale Attribute',
'Guides': 'Anleitungen',
'Examples': 'Beispiele',
},
'en-US': {
'Reference': 'Reference',
'Elements': 'Elements',
'Global attributes': 'Global attributes',
'Guides': 'Guides',
'Examples': 'Examples',
},
'fr': {
'Reference': 'Références',
'Elements': 'Éléments',
'Guides': 'Guides',
},
'ja': {
'Reference': 'リファレンス',
'Elements': '要素',
},
'ko': {
'Reference': '참고서:',
'Elements': '요소',
'Guides': '안내서:',
},
'pt-BR': {
'Reference': 'Referências',
'Elements': 'Elementos',
'Guides': 'Guides',
},
'ru': {
'Reference': 'Справочники',
'Elements': 'Элементы',
'Guides': 'Путеводитель',
},
'zh-CN': {
'Reference': '参考',
'Elements': '元素',
'Global attributes': '全局属性',
'Guides': '指南',
'Examples': '示例',
},
});
%>
<section id="Quick_links" data-macro="MathMLRef">
<ol>
<li class="section"><%-web.smartLink(`/${locale}/docs/Web/MathML`)%></li>
<li class="section no-link"><%=text['Guides']%></li>
<li>
<ol>
<li><%-web.smartLink(`/${locale}/docs/Web/MathML/Authoring`)%></li>
<li><%-web.smartLink(`/${locale}/docs/Web/MathML/Fonts`)%></li>
<li><%-web.smartLink(`/${locale}/docs/Web/MathML/Values`)%></li>
</ol>
</li>
<li class="section no-link"><%=text['Reference']%></li>
<li class="toggle">
<details>
<summary><%=text['Elements']%></summary>
<%-await template("ListSubpagesForSidebar", ['/en-US/docs/Web/MathML/Element'])%>
</details>
</li>
<li class="toggle">
<details>
<summary><%=text['Global attributes']%></summary>
<%-await template("ListSubpagesForSidebar", ['/en-US/docs/Web/MathML/Global_attributes'])%>
</details>
</li>
<li><%-web.smartLink(`/${locale}/docs/Web/MathML/Attribute`)%></li>
<li class="section no-link"><%=text['Examples']%></li>
<li>
<ol>
<li><%-web.smartLink(`/${locale}/docs/Web/MathML/Examples/Deriving_the_Quadratic_Formula`)%></li>
<li><%-web.smartLink(`/${locale}/docs/Web/MathML/Examples/MathML_Pythagorean_Theorem`)%></li>
</ol>
</li>
</ol>
</section>