1// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails 2import docsearch from "@docsearch/js" 3 4// Initialize DocSearch when the DOM is loaded 5document.addEventListener('DOMContentLoaded', function() { 6 // Only initialize if the docsearch container exists 7 const docsearchContainer = document.getElementById('docsearch'); 8 if (docsearchContainer) { 9 docsearch({ 10 container: '#docsearch', 11 apiKey: '637a8fbb3d9195b296ab6367ebe3fd3a', 12 appId: 'A09V5NRS1W', 13 indexName: 'influx_www_full', 14 debug: false 15 }); 16 } 17});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.