Changeset 93661be in ammosreader
- Timestamp:
- 06/30/22 13:32:20 (3 years ago)
- Branches:
- AmmosSource, guix
- Children:
- 1491313
- Parents:
- 299c79c
- Files:
-
- 50 added
- 7 deleted
- 13 moved
Legend:
- Unmodified
- Added
- Removed
-
public/.buildinfo
r299c79c r93661be 1 1 # Sphinx build info version 1 2 2 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 config: 13374ee1ea55cf36915a4a11d92b21ec3 config: bd0cf0b1e5e8b74e46ffad0c7feb7650 4 4 tags: 645f666f9bcd5a90fca523b33c5a78b7 -
public/_static/doctools.js
r299c79c r93661be 155 155 this.highlightSearchWords(); 156 156 this.initIndexTable(); 157 if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) { 158 this.initOnKeyListeners(); 159 } 157 this.initOnKeyListeners(); 160 158 }, 161 159 … … 270 268 }, 271 269 270 /** 271 * helper function to focus on search bar 272 */ 273 focusSearchBar : function() { 274 $('input[name=q]').first().focus(); 275 }, 276 272 277 /** 273 278 * make the url absolute … … 292 297 293 298 initOnKeyListeners: function() { 299 // only install a listener if it is really needed 300 if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && 301 !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) 302 return; 303 294 304 $(document).keydown(function(event) { 295 305 var activeElementType = document.activeElement.tagName; 296 306 // don't navigate when in search box, textarea, dropdown or button 297 307 if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT' 298 && activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey 299 && !event.shiftKey) { 300 switch (event.keyCode) { 301 case 37: // left 302 var prevHref = $('link[rel="prev"]').prop('href'); 303 if (prevHref) { 304 window.location.href = prevHref; 305 return false; 306 } 307 break; 308 case 39: // right 309 var nextHref = $('link[rel="next"]').prop('href'); 310 if (nextHref) { 311 window.location.href = nextHref; 312 return false; 313 } 314 break; 308 && activeElementType !== 'BUTTON') { 309 if (event.altKey || event.ctrlKey || event.metaKey) 310 return; 311 312 if (!event.shiftKey) { 313 switch (event.key) { 314 case 'ArrowLeft': 315 if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) 316 break; 317 var prevHref = $('link[rel="prev"]').prop('href'); 318 if (prevHref) { 319 window.location.href = prevHref; 320 return false; 321 } 322 break; 323 case 'ArrowRight': 324 if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) 325 break; 326 var nextHref = $('link[rel="next"]').prop('href'); 327 if (nextHref) { 328 window.location.href = nextHref; 329 return false; 330 } 331 break; 332 case 'Escape': 333 if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) 334 break; 335 Documentation.hideSearchWords(); 336 return false; 337 } 338 } 339 340 // some keyboard layouts may need Shift to get / 341 switch (event.key) { 342 case '/': 343 if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) 344 break; 345 Documentation.focusSearchBar(); 346 return false; 315 347 } 316 348 } -
public/_static/documentation_options.js
r299c79c r93661be 9 9 HAS_SOURCE: true, 10 10 SOURCELINK_SUFFIX: '.txt', 11 NAVIGATION_WITH_KEYS: false 11 NAVIGATION_WITH_KEYS: false, 12 SHOW_SEARCH_SUMMARY: true, 13 ENABLE_SEARCH_SHORTCUTS: true, 12 14 }; -
public/_static/searchtools.js
r299c79c r93661be 173 173 // stem the word 174 174 var word = stemmer.stemWord(tmp[i].toLowerCase()); 175 // prevent stemmer from cutting word smaller than two chars176 if(word.length < 3 && tmp[i].length >= 3) {177 word = tmp[i];178 }179 175 var toAppend; 180 176 // select the correct list … … 277 273 displayNextItem(); 278 274 }, 5); 279 } else if (DOCUMENTATION_OPTIONS. HAS_SOURCE) {275 } else if (DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY) { 280 276 $.ajax({url: requestUrl, 281 277 dataType: "text", … … 294 290 }}); 295 291 } else { 296 // no source available,just display title292 // just display title 297 293 Search.output.append(listItem); 298 294 setTimeout(function() { -
public/search.html
r299c79c r93661be 34 34 <li id="page_buttons"> 35 35 <div class="headerButton"><a href="genindex.html" title="General Index" accesskey="I">index</a></div> 36 <div class="headerButton"><a href="py-modindex.html" title="Python Module Index" >modules</a></div> 36 37 </li> 37 38 </ul> … … 41 42 <div class="sphinxsidebarwrapper"> 42 43 <ul><li class="toctree-l1"><a href="index.html">Main Page</a></li></ul> 43 44 <ul> 45 <li class="toctree-l1"><a class="reference internal" href="ammosreader.html">ammosreader package</a></li> 46 </ul> 47 44 48 </div> 45 49 </div> … … 89 93 <p> 90 94 © Copyright 2022, KIDZg. 91 Created using <a href="http://www.sphinx-doc.org/">Sphinx</a> 4. 4.0 <a href="https://github.com/mga-sphinx/sphinx_adc_theme">ADC Theme</a> .95 Created using <a href="http://www.sphinx-doc.org/">Sphinx</a> 4.5.0 <a href="https://github.com/mga-sphinx/sphinx_adc_theme">ADC Theme</a> . 92 96 (Revision ) 93 97 </p>
Note:
See TracChangeset
for help on using the changeset viewer.