Skip to content

Commit d609cea

Browse files
committed
Add docs search
1 parent 92733c1 commit d609cea

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

website/siteConfig.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const siteConfig = {
1212
{href: 'https://gulpjs.com/plugins', label: 'Plugins'},
1313
{href: 'https://twitter.com/gulpjs', label: 'Twitter'},
1414
{href: 'https://github.com/gulpjs/gulp/blob/master/CONTRIBUTING.md', label: 'Contribute'},
15+
{search: true},
1516
],
1617
headerIcon: 'img/gulp.svg',
1718
footerIcon: 'img/gulp.svg',
@@ -30,6 +31,11 @@ const siteConfig = {
3031
useEnglishUrl: true,
3132
scripts: ['https://buttons.github.io/buttons.js'],
3233
repoUrl: 'https://github.com/gulpjs/gulp',
34+
algolia: {
35+
apiKey: 'my-api-key',
36+
indexName: 'my-index-name',
37+
algoliaOptions: {} // Optional, if provided by Algolia
38+
},
3339
};
3440

3541
module.exports = siteConfig;

website/static/docs-css/custom.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ table thead tr:nth-of-type(odd) {
131131
margin-bottom: 2rem;
132132
}
133133

134+
/* Search */
135+
input#search_input_react {
136+
line-height: 25px;
137+
}
138+
134139
@media (max-width: 375px) {
135140
.logo {
136141
display: initial;
@@ -141,13 +146,17 @@ table thead tr:nth-of-type(odd) {
141146
.fixedHeaderContainer a {
142147
display: none;
143148
}
149+
.navSearchWrapper {
150+
display: none;
151+
}
144152

145153
.navigationSlider .slidingNav ul {
146154
margin-top: 0;
147155
}
148156
}
149157

150158
@media only screen and (max-width: 735px) {
159+
151160
.docs-next {
152161
clear: unset;
153162
float: right;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy