• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

twbs / bootstrap / 31056
93%
main: 96%

Build:
Build:
LAST BUILD BRANCH: dev/coliff/v6-docs-updates
DEFAULT BRANCH: main
Ran 22 Nov 2018 03:43PM UTC
Jobs 1
Files 12
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
31056

push

travis-ci

XhmikosR
Update DocSearch.js to latest version

The latest (2.6.2) docsearch.js version now displays results as standard `<a href>` links, allowing users to `ctrl`-click on them to trigger default browser behavior of opening in a new tab.

To maintain backward compatibility, this behavior has only been enabled to users that didn't define their own `handleSelected` method.

This PR updates your `docsearch()` code to take advantage of the new `<a href>` template, by removing your custom `handleSelected` and moving its behavior to the `transformData` call. Namely, what you wanted to avoid was jumping to the first `<h1>` of the pages, which would prevent users from seeing the header. This PR checks if the suggestion targets the `#content` anchor (meaning it goes to this first `<h1>`) and remove it.

Behavior should be the same, but at least now you can enjoy the `ctrl`-click :)

782 of 888 branches covered (88.06%)

Branch coverage included in aggregate %.

1491 of 1599 relevant lines covered (93.25%)

32.02 hits per line

Jobs
ID Job ID Ran Files Coverage
2 31056.2 22 Nov 2018 03:43PM UTC 0
91.4
Travis Job 31056.2
Source Files on build 31056
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #31056
  • 3e25bf40 on github
  • Prev Build on v4-dev (#31041)
  • Next Build on v4-dev (#31083)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc