4
4
{% assign categories = index.quarkus.categories %}
5
5
{% assign by_type = index.quarkus | map: "types" | first %}
6
6
7
-
8
- < section class ="full-width-version-bg flexfilterbar ">
9
- < div class ="flexcontainer ">
10
- < div class ="flexlabel ">
11
- < label > バージョン: </ label >
12
- </ div >
13
- < div class ="pulldown version ">
14
- < select id ="guidesindex-version-dropdown ">
15
- {% for version in site.data.versions.documentation %}
16
- < option value ="{{ version }} " {% if docversion == version %}selected{% endif %} > {% if version == 'latest' %}{{ site.data.versions.quarkus.version | replace_regex: "\.[0-9+]\.Final", "" }} - {% endif %}{{ version | capitalize }}{% if version == 'main' %} - SNAPSHOT{% endif %}</ option >
17
- {% endfor %}
18
- </ select >
19
- </ div >
20
- < div class ="flexlabel ">
21
- < label > カテゴリー: </ label >
22
- </ div >
23
- < div class ="pulldown category ">
24
- < select id ="guidesindex-category-dropdown ">
25
- < option value =""> 全てのカテゴリー</ option >
26
- {% for item in categories %}
27
- < option value ="{{ item.cat-id }} "> {{ item.category }}</ option >
28
- {% endfor %}
29
- </ select >
30
- </ div >
31
- < div class ="search ">
32
- < input type ="text " id ="search-text " placeholder ="キーワードでフィルター " />
7
+ < div id ="guides-app "
8
+ data-search-api-server ="{{ site.search.url }} "
9
+ data-quarkus-version ="{{ docversion }} "
10
+ data-language ="{{ site.language }} "
11
+ data-initial-timeout ="{{ site.search.initial-timeout }} "
12
+ data-more-timeout ="{{ site.search.more-timeout }} "
13
+ data-min-chars ="{{ site.search.min-chars }} ">
14
+ < section class ="full-width-version-bg flexfilterbar ">
15
+ < div class ="flexcontainer ">
16
+ < div class ="flexlabel ">
17
+ < label > バージョン:</ label >
18
+ </ div >
19
+ < div class ="pulldown version ">
20
+ < select id ="guidesindex-version-dropdown ">
21
+ {% for version in site.data.versions.documentation %}
22
+ < option value ="{{ version }} " {% if docversion == version %}selected{% endif %} > {% if version == 'latest' %}{{ site.data.versions.quarkus.version | replace_regex: "\.[0-9+]\.Final", "" }} - {% endif %}{{ version | capitalize }}{% if version == 'main' %} - SNAPSHOT{% endif %}</ option >
23
+ {% endfor %}
24
+ </ select >
25
+ </ div >
26
+ < div class ="flexlabel ">
27
+ < label > カテゴリー:</ label >
28
+ </ div >
29
+ < div class ="pulldown category ">
30
+ < select v-model ="category ">
31
+ < option value =""> 全てのカテゴリー</ option >
32
+ {% for item in categories %}
33
+ < option value ="{{ item.cat-id }} "> {{ item.category }}</ option >
34
+ {% endfor %}
35
+ </ select >
36
+ </ div >
37
+ < div class ="search ">
38
+ < input v-model ="text " type ="text " placeholder ="Filter by keyword " />
39
+ </ div >
33
40
</ div >
34
- </ div >
35
- </ section >
36
-
41
+ </ section >
37
42
38
-
39
- < div >
40
- < h1 class ="title "> {{ page.title }}</ h1 >
41
- </ div >
42
- < div class ="grid-wrapper guides " id ="docs ">
43
- {% include index-docs-merge.html type="tutorial" %}
44
- {% if values %}
45
- < div class ="grid__item width-12-12 docslist ">
46
- < div class ="doclist-header ">
47
- < h3 id ="tutorial "> チュートリアル</ h3 >
48
- < p > すぐ使い始めるための短く、焦点を絞ったエクササイズ。</ p >
49
- </ div >
50
- < div class ="grid-wrapper ">
51
- {% for guide in values %}
52
- {% include index-doc-item.html class="tutorialbkg" docversion=docversion
53
- title=guide.title url=guide.url summary=guide.summary
54
- keywords=guide.keywords categories=guide.categories origin=guide.origin %}
55
- {% endfor %}
56
- </ div >
43
+ < div >
44
+ < h1 class ="title "> {{ page.title }}</ h1 >
57
45
</ div >
58
- {% endif %}
59
- {% include index-docs-merge.html type="howto" %}
60
- {% if values %}
61
- < div class ="grid__item width-12-12 docslist ">
62
- < div class ="doclist-header ">
63
- < h3 id ="guide "> ハウツーガイド</ h3 >
64
- < p > 主要なタスク、実際の操作、一般的な問題をカバーするためのステップバイステップガイド。</ p >
65
- </ div >
66
- < div class ="grid-wrapper ">
67
- {% for guide in values %}
68
- {% include index-doc-item.html class="guidebkg" docversion=docversion
69
- title=guide.title url=guide.url summary=guide.summary
70
- keywords=guide.keywords categories=guide.categories origin=guide.origin %}
71
- {% endfor %}
46
+ < div v-if ="hasInput " class ="grid-wrapper guides results vuejs "
47
+ :class ="{ empty: !loading && !hasHits, 'vuejs-enabled': true, loading: loading } ">
48
+ < div class ="grid__item width-12-12 docslist ">
49
+ < Transition name ="fade-in ">
50
+ < div v-if ="!loading && !hasHits " class ="empty-placeholder ">
51
+ 検索に一致するガイドはございませんでした。別のキーワードでお試しください。
52
+ </ div >
53
+ </ Transition >
54
+ < div class ="grid-wrapper ">
55
+ {% raw %}
56
+ < div v-for ="hit in searchHits " :class ="`${hit.type}bkg grid__item docs-card` ">
57
+ < h4 > < a :href ="hit.url " :target ="hit.url.startsWith('http') ? '_blank' : '' " v-html ="hit.title "> </ a > </ h4 >
58
+ < div class ="description " v-html ="hit.summary "> </ div >
59
+ < div class ="content-highlights ">
60
+ < p v-for ="contentLine in hit.content " v-html ="contentLine "> </ p >
61
+ </ div >
62
+ </ div >
63
+ {% endraw %}
64
+ < Transition name ="fade-in ">
65
+ < div v-if ="loading " class ="loading-placeholder ">
66
+ ロード中...
67
+ </ div >
68
+ </ Transition >
69
+ </ div >
72
70
</ div >
73
71
</ div >
74
- {% endif %}
75
- {% include index-docs-merge.html type="concepts" %}
76
- {% if values %}
77
- < div class ="grid__item width-12-12 docslist ">
78
- < div class ="doclist-header ">
79
- < h3 id ="concept "> コンセプト</ h3 >
80
- < p > Quarkus に関連するいくつかのより大きな概念とテクノロジーの解説。</ p >
81
- </ div >
82
- < div class ="grid-wrapper ">
83
- {% for guide in values %}
84
- {% include index-doc-item.html class="conceptbkg" docversion=docversion
85
- title=guide.title url=guide.url summary=guide.summary
86
- keywords=guide.keywords categories=guide.categories origin=guide.origin %}
87
- {% endfor %}
72
+ <!-- Static content displayed when there is no input in the search form or Javascript is disabled,
73
+ but also used as a source of data for cards displayed by the vue.js app. -->
74
+ < div v-else class ="grid-wrapper guides " id ="all-docs ">
75
+ {% include index-docs-merge.html type="tutorial" %}
76
+ {% if values %}
77
+ < div class ="grid__item width-12-12 docslist ">
78
+ < div class ="doclist-header ">
79
+ < h3 id ="tutorial "> チュートリアル</ h3 >
80
+ < p > すぐ使い始めるための短く、焦点を絞ったエクササイズ。</ p >
81
+ </ div >
82
+ < div class ="grid-wrapper ">
83
+ {% for guide in values %}
84
+ {% include index-doc-item.html class="tutorialbkg" docversion=docversion
85
+ title=guide.title url=guide.url summary=guide.summary
86
+ keywords=guide.keywords categories=guide.categories origin=guide.origin %}
87
+ {% endfor %}
88
+ </ div >
88
89
</ div >
89
- </ div >
90
- {% endif %}
91
- {% include index-docs-merge.html type="reference" %}
92
- {% if values %}
93
- < div class ="grid__item width-12-12 docslist ">
94
- < div class ="doclist-header ">
95
- < h3 id ="reference "> リファレンス</ h3 >
96
- < p > ツール、コンポーネント、およびコマンドをカバーするテクニカルリソース。 Quarkus の百科事典。</ p >
90
+ {% endif %}
91
+ {% include index-docs-merge.html type="howto" %}
92
+ {% if values %}
93
+ < div class ="grid__item width-12-12 docslist ">
94
+ < div class ="doclist-header ">
95
+ < h3 id ="guide "> ハウツーガイド</ h3 >
96
+ < p > 主要なタスク、実際の操作、一般的な問題をカバーするためのステップバイステップガイド。</ p >
97
+ </ div >
98
+ < div class ="grid-wrapper ">
99
+ {% for guide in values %}
100
+ {% include index-doc-item.html class="howtobkg" docversion=docversion
101
+ title=guide.title url=guide.url summary=guide.summary
102
+ keywords=guide.keywords categories=guide.categories origin=guide.origin %}
103
+ {% endfor %}
104
+ </ div >
97
105
</ div >
98
- < div class ="grid-wrapper ">
99
- < div class ="grid__item docs-card pdfbkg ">
100
- < h4 > < a href ="https://lordofthejars.github.io/quarkus-cheat-sheet/ " target ="_blank "> Quarkus Cheat Sheet</ a > </ h4 >
101
- < div class ="description "> 全チートシートをPDFでダウンロード < a href ="https://developers.redhat.com/search?t=quarkus&f=type%7Echeatsheet " target ="_blank ">
102
- Red Hat Developersウェブサイトで更にチートシートを入手 < i class ="fas fa-external-link-alt "> </ i > </ a > </ div >
103
- < div class ="keywords "> </ div >
104
- < div class ="categories "> </ div >
105
- </ div >
106
- {% for guide in values %}
107
- {% include index-doc-item.html class="referencebkg" docversion=docversion
108
- title=guide.title url=guide.url summary=guide.summary
109
- keywords=guide.keywords categories=guide.categories origin=guide.origin %}
110
- {% endfor %}
106
+ {% endif %}
107
+ {% include index-docs-merge.html type="concepts" %}
108
+ {% if values %}
109
+ < div class ="grid__item width-12-12 docslist ">
110
+ < div class ="doclist-header ">
111
+ < h3 id ="concept "> コンセプト</ h3 >
112
+ < p > > Quarkus に関連するいくつかのより大きな概念とテクノロジーの解説。</ p >
113
+ </ div >
114
+ < div class ="grid-wrapper ">
115
+ {% for guide in values %}
116
+ {% include index-doc-item.html class="conceptsbkg" docversion=docversion
117
+ title=guide.title url=guide.url summary=guide.summary
118
+ keywords=guide.keywords categories=guide.categories origin=guide.origin %}
119
+ {% endfor %}
120
+ </ div >
111
121
</ div >
112
- </ div >
113
- {% endif %}
114
- {% include index-docs-merge.html type="guide" %}
115
- {% if values %}
116
- < div class ="grid__item width-12-12 docslist ">
117
- < div class ="doclist-header ">
118
- < h3 id ="reference "> その他のガイド</ h3 >
119
- < p > その他のQuarkusガイド</ p >
122
+ {% endif %}
123
+ {% include index-docs-merge.html type="reference" %}
124
+ {% if values %}
125
+ < div class ="grid__item width-12-12 docslist ">
126
+ < div class ="doclist-header ">
127
+ < h3 id ="reference "> リファレンス</ h3 >
128
+ < p > ツール、コンポーネント、およびコマンドをカバーするテクニカルリソース。 Quarkus の百科事典。</ p >
129
+ </ div >
130
+ < div class ="grid-wrapper ">
131
+ < div class ="grid__item docs-card pdfbkg ">
132
+ < h4 > < a href ="https://lordofthejars.github.io/quarkus-cheat-sheet/ " target ="_blank "> Quarkus Cheat Sheet</ a > </ h4 >
133
+ < div class ="description "> 全チートシートをPDFでダウンロード< a href ="https://developers.redhat.com/search?t=quarkus&f=type%7Echeat_sheet " target ="_blank ">
134
+ Red Hat Developersウェブサイトで更にチートシートを入手 < i class ="fas fa-external-link-alt "> </ i > </ a > </ div >
135
+ < div class ="keywords "> </ div >
136
+ < div class ="categories "> </ div >
137
+ </ div >
138
+ {% for guide in values %}
139
+ {% include index-doc-item.html class="referencebkg" docversion=docversion
140
+ title=guide.title url=guide.url summary=guide.summary
141
+ keywords=guide.keywords categories=guide.categories origin=guide.origin %}
142
+ {% endfor %}
143
+ </ div >
120
144
</ div >
121
- < div class ="grid-wrapper ">
122
- {% for guide in values %}
123
- {% include index-doc-item.html class="referencebkg" docversion=docversion
124
- title=guide.title url=guide.url summary=guide.summary
125
- keywords=guide.keywords categories=guide.categories origin=guide.origin %}
126
- {% endfor %}
145
+ {% endif %}
146
+ {% include index-docs-merge.html type="guide" %}
147
+ {% if values %}
148
+ < div class ="grid__item width-12-12 docslist ">
149
+ < div class ="doclist-header ">
150
+ < h3 > その他のガイド</ h3 >
151
+ < p > その他のQuarkusガイド</ p >
152
+ </ div >
153
+ < div class ="grid-wrapper ">
154
+ {% for guide in values %}
155
+ {% include index-doc-item.html class="guidebkg" docversion=docversion
156
+ title=guide.title url=guide.url summary=guide.summary
157
+ keywords=guide.keywords categories=guide.categories origin=guide.origin %}
158
+ {% endfor %}
159
+ </ div >
127
160
</ div >
161
+ {% endif %}
128
162
</ div >
129
- {% endif %}
130
- < div class ="grid__item width-12-12 empty-list "> Sorry, no guides matched your search. Please try again.</ div >
131
163
</ div >
164
+ < script src ="/assets/javascript/guides-app.js " type ="module "> </ script >
0 commit comments