File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 15
15
< link rel ="stylesheet " href ="style/app.css ">
16
16
< link rel ="stylesheet " href ="style/prism.css ">
17
17
< link href ="https://fonts.googleapis.com/css?family=Open+Sans " rel ="stylesheet ">
18
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/@docsearch/css@3 " />
18
19
< link rel ="apple-touch-icon " sizes ="180x180 " href ="image/favicon/apple-touch-icon.png ">
19
20
< link rel ="icon " type ="image/png " sizes ="32x32 " href ="image/favicon/favicon-32x32.png ">
20
21
< link rel ="icon " type ="image/png " sizes ="16x16 " href ="image/favicon/favicon-16x16.png ">
45
46
< script src ="https://cdnjs.cloudflare.com/ajax/libs/prism/1.8.1/components/prism-json.min.js "> </ script > <!--node_modules/prismjs/components/prism-typescript.js-->
46
47
< script src ="https://cdnjs.cloudflare.com/ajax/libs/prism/1.8.1/components/prism-sql.min.js "> </ script > <!--node_modules/prismjs/components/prism-typescript.js-->
47
48
< script src ="https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.3/fetch.min.js "> </ script >
49
+ < script src ="https://cdn.jsdelivr.net/npm/@docsearch/js@3 "> </ script > <!-- Algolia DocSearch -->
48
50
49
51
< script src ="script/constant/Links.js "> </ script >
50
52
< script src ="locale/en.js "> </ script >
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ const MainPage = {
25
25
</svg>
26
26
</a>
27
27
</li>-->
28
+ <li class="nav-item" style="margin-inline-end: 16px">
29
+ <div id="docsearch"></div>
30
+ </li>
28
31
<li class="nav-item">
29
32
<a class="nav-link" href="https://join.slack.com/t/typeorm/shared_invite/zt-uu12ljeb-OH_0086I379fUDApYJHNuw" title="Slack">
30
33
<svg aria-labelledby="simpleicons-slack-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="#FF0064">
@@ -102,6 +105,13 @@ const MainPage = {
102
105
scriptEl . setAttribute ( 'id' , '_carbonads_js' ) ;
103
106
scriptEl . setAttribute ( 'async' , null ) ;
104
107
this . $refs . carbon . appendChild ( scriptEl ) ;
108
+
109
+ docsearch ( {
110
+ container : '#docsearch' ,
111
+ appId : 'YOUR_APP_ID' , // TODO: replace with `appId` from https://docsearch.algolia.com/apply/
112
+ indexName : 'YOUR_INDEX_NAME' , // TODO: replace with `indexName` from https://docsearch.algolia.com/apply/
113
+ apiKey : 'YOUR_SEARCH_API_KEY' // TODO: replace with `apiKey` from https://docsearch.algolia.com/apply/
114
+ } ) ;
105
115
} ,
106
116
methods : {
107
117
goToLink : function ( ) {
You can’t perform that action at this time.
0 commit comments