Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
6436233a
Commit
6436233a
authored
7 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
update docsearch config to handle h1s properly (load top of page, not at the h1)
parent
6eee0287
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_includes/scripts.html
+6
-0
_includes/scripts.html
with
6 additions
and
0 deletions
+6
-0
_includes/scripts.html
+
6
-
0
View file @
6436233a
...
...
@@ -29,6 +29,12 @@
apiKey
:
'
48cb48b22351bc71ea5f12f4d1ede198
'
,
indexName
:
'
bootstrap-v4
'
,
inputSelector
:
'
#search-input
'
,
handleSelected
:
function
(
input
,
event
,
suggestion
)
{
var
url
=
suggestion
.
url
;
url
=
suggestion
.
isLvl1
?
url
.
split
(
'
#
'
)[
0
]:
url
;
// If it's a title we remove the anchor so it does not jump.
window
.
location
.
href
=
url
;
},
transformData
:
function
(
hits
)
{
return
hits
.
map
(
function
(
hit
)
{
hit
.
url
=
hit
.
url
.
replace
(
'
https://v4-alpha.getbootstrap.com
'
,
'
/docs/4.0
'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment