Mercurial > hg > nginx-site
annotate xsls/body.xsls @ 3099:9cfda14d0109 default tip
freenginx-1.27.4
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 03 Sep 2024 13:15:18 +0300 |
parents | 12f3dbd5ff18 |
children |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
131
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
131
diff
changeset
|
2 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
131
diff
changeset
|
3 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
131
diff
changeset
|
4 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
131
diff
changeset
|
5 |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 X:stylesheet { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 X:template body (lang) { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 <body> |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
11 |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
12 <div id="main"> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
13 <div id="menu"> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
14 <h1> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
15 <a href="/"> |
3049
12f3dbd5ff18
Free nginx: distinct logo and favicon.
Maxim Dounin <mdounin@mdounin.ru>
parents:
3044
diff
changeset
|
16 <img src="/nginx.png" alt="free nginx" /> |
691
023e9f139c3c
Added 'professional services' banner to the site header.
Vladimir Homutov <vl@nginx.com>
parents:
648
diff
changeset
|
17 </a> |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
18 </h1> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
19 <div> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
20 !! "document(concat($XML, '/menu.xml')) |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
21 /menus/menu[@lang = $lang]/item"; |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
22 </div> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
23 </div> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
25 <div id="content"> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
26 <h2> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
27 !{@name} X:if "$YEAR" { X:text{: } !{$YEAR} } |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
28 </h2> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 |
604
b2db67ca29cc
Made a link to original relative.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
30 X:if "$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and |
b2db67ca29cc
Made a link to original relative.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
31 (not(@rev) or |
b2db67ca29cc
Made a link to original relative.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
32 @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)" |
b2db67ca29cc
Made a link to original relative.
Ruslan Ermilov <ru@nginx.com>
parents:
600
diff
changeset
|
33 { |
600
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
34 <span> |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
35 |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
36 <blockquote class="note"> |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
37 |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
38 X:if "document(concat($XML, '/i18n.xml')) |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
39 /i18n/text[@lang = $lang]/item[@id='outdated']" { |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
40 !! "document(concat($XML, '/i18n.xml')) |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
41 /i18n/text[@lang = $lang]/item[@id='outdated']"; |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
42 } else { |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
43 !! "document(concat($XML, '/i18n.xml')) |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
44 /i18n/text[@lang = 'en']/item[@id='outdated']"; |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
45 } |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
46 |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
47 </blockquote> |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
48 </span> |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
49 } |
89a4e934d207
Emit a warning with a link to English original if translation is outdated.
Ruslan Ermilov <ru@nginx.com>
parents:
598
diff
changeset
|
50 |
590
05761a8e38f6
Added an option to disable generation of TOC.
Ruslan Ermilov <ru@nginx.com>
parents:
580
diff
changeset
|
51 X:if "@toc = 'yes' and section[@id and @name]" { |
3044
6c78190bc1cb
Free nginx: removed obsolete translations.
Maxim Dounin <mdounin@mdounin.ru>
parents:
3041
diff
changeset
|
52 <table width="100%"><tr><td> |
131
8beaff4b3b6b
Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
53 X:for-each "section[@id and @name]" { |
8beaff4b3b6b
Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
54 <a href="#{@id}"> !{@name} </a><br/> |
607
a8f7b93b0a5f
Allow article sections to be nested.
Ruslan Ermilov <ru@nginx.com>
parents:
604
diff
changeset
|
55 X:for-each "section[@id and @name]" { |
a8f7b93b0a5f
Allow article sections to be nested.
Ruslan Ermilov <ru@nginx.com>
parents:
604
diff
changeset
|
56 X:text{     } |
a8f7b93b0a5f
Allow article sections to be nested.
Ruslan Ermilov <ru@nginx.com>
parents:
604
diff
changeset
|
57 <a href="#{@id}"> !{@name} </a><br/> |
a8f7b93b0a5f
Allow article sections to be nested.
Ruslan Ermilov <ru@nginx.com>
parents:
604
diff
changeset
|
58 } |
131
8beaff4b3b6b
Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
59 X:if "@id = 'directives'" { |
8beaff4b3b6b
Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
60 X:for-each "directive[@name]" { |
8beaff4b3b6b
Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
61 X:text{     } |
8beaff4b3b6b
Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
62 <a href="#{@name}"> !{@name} </a><br/> |
8beaff4b3b6b
Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
63 } |
81
5a2dcd623666
In the modules documents, the list of directives is now additionally
Ruslan Ermilov <ru@nginx.com>
parents:
41
diff
changeset
|
64 } |
2028
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2019
diff
changeset
|
65 X:if "@id = 'endpoints'" { |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2019
diff
changeset
|
66 X:for-each "para/list/tag-name[@name]" { |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2019
diff
changeset
|
67 X:text{     } |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2019
diff
changeset
|
68 <a href="#{@id}"> !{@name} </a><br/> |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2019
diff
changeset
|
69 } |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2019
diff
changeset
|
70 } |
5c55b7054b58
Updated docs for the upcoming NGINX Plus release.
Ruslan Ermilov <ru@nginx.com>
parents:
2019
diff
changeset
|
71 |
32
2bcfb5f75e06
Supporting new format of <module> and <section>:
Igor Sysoev <igor@sysoev.ru>
parents:
0
diff
changeset
|
72 } |
131
8beaff4b3b6b
Empty table was generated if document has no sections, or they are
Ruslan Ermilov <ru@nginx.com>
parents:
123
diff
changeset
|
73 </td></tr></table> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
75 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
76 !!; |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
77 |
598
1902d38f0b05
"editor" and "translator" in articles are now output regardless of
Ruslan Ermilov <ru@nginx.com>
parents:
590
diff
changeset
|
78 X:if "@author or @editor or @translator" { |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
79 <table width="100%"><tr><td align="right"> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
80 |
598
1902d38f0b05
"editor" and "translator" in articles are now output regardless of
Ruslan Ermilov <ru@nginx.com>
parents:
590
diff
changeset
|
81 X:if "@author" { |
1902d38f0b05
"editor" and "translator" in articles are now output regardless of
Ruslan Ermilov <ru@nginx.com>
parents:
590
diff
changeset
|
82 !{document(concat($XML, '/i18n.xml')) |
1902d38f0b05
"editor" and "translator" in articles are now output regardless of
Ruslan Ermilov <ru@nginx.com>
parents:
590
diff
changeset
|
83 /i18n/text[@lang = $lang]/item[@id='author']} |
1902d38f0b05
"editor" and "translator" in articles are now output regardless of
Ruslan Ermilov <ru@nginx.com>
parents:
590
diff
changeset
|
84 X:text { } !{@author} <br/> |
1902d38f0b05
"editor" and "translator" in articles are now output regardless of
Ruslan Ermilov <ru@nginx.com>
parents:
590
diff
changeset
|
85 } |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
86 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
87 X:if "@editor" { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
88 !{document(concat($XML, '/i18n.xml')) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
89 /i18n/text[@lang = $lang]/item[@id='editor']} |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
90 X:text { } !{@editor} <br/> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
91 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
92 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
93 X:if "@translator" { |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
94 !{document(concat($XML, '/i18n.xml')) |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
95 /i18n/text[@lang = $lang]/item[@id='translator']} |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
96 X:text { } !{@translator} <br/> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
97 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
98 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
99 </td></tr></table> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
100 } |
1308
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
101 </div> |
f0383f5cfbb8
Design: reworked main layout.
Valentin Bartenev <vbart@nginx.com>
parents:
1293
diff
changeset
|
102 </div> |
0
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
103 </body> |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
104 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
105 } |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
106 |
61e04fc01027
Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
107 } |