Changeset 93661be in ammosreader


Ignore:
Timestamp:
06/30/22 13:32:20 (3 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
1491313
Parents:
299c79c
Message:

sphinx-apidoc run again

Files:
50 added
7 deleted
13 moved

Legend:

Unmodified
Added
Removed
  • public/.buildinfo

    r299c79c r93661be  
    11# Sphinx build info version 1
    22# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
    3 config: 13374ee1ea55cf36915a4a11d92b21ec
     3config: bd0cf0b1e5e8b74e46ffad0c7feb7650
    44tags: 645f666f9bcd5a90fca523b33c5a78b7
  • public/_static/doctools.js

    r299c79c r93661be  
    155155    this.highlightSearchWords();
    156156    this.initIndexTable();
    157     if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
    158       this.initOnKeyListeners();
    159     }
     157    this.initOnKeyListeners();
    160158  },
    161159
     
    270268  },
    271269
     270   /**
     271   * helper function to focus on search bar
     272   */
     273  focusSearchBar : function() {
     274    $('input[name=q]').first().focus();
     275  },
     276
    272277  /**
    273278   * make the url absolute
     
    292297
    293298  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
    294304    $(document).keydown(function(event) {
    295305      var activeElementType = document.activeElement.tagName;
    296306      // don't navigate when in search box, textarea, dropdown or button
    297307      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;
    315347        }
    316348      }
  • public/_static/documentation_options.js

    r299c79c r93661be  
    99    HAS_SOURCE: true,
    1010    SOURCELINK_SUFFIX: '.txt',
    11     NAVIGATION_WITH_KEYS: false
     11    NAVIGATION_WITH_KEYS: false,
     12    SHOW_SEARCH_SUMMARY: true,
     13    ENABLE_SEARCH_SHORTCUTS: true,
    1214};
  • public/_static/searchtools.js

    r299c79c r93661be  
    173173      // stem the word
    174174      var word = stemmer.stemWord(tmp[i].toLowerCase());
    175       // prevent stemmer from cutting word smaller than two chars
    176       if(word.length < 3 && tmp[i].length >= 3) {
    177         word = tmp[i];
    178       }
    179175      var toAppend;
    180176      // select the correct list
     
    277273            displayNextItem();
    278274          }, 5);
    279         } else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
     275        } else if (DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY) {
    280276          $.ajax({url: requestUrl,
    281277                  dataType: "text",
     
    294290                  }});
    295291        } else {
    296           // no source available, just display title
     292          // just display title
    297293          Search.output.append(listItem);
    298294          setTimeout(function() {
  • public/search.html

    r299c79c r93661be  
    3434        <li id="page_buttons">
    3535            <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>
    3637        </li>
    3738    </ul>
     
    4142  <div class="sphinxsidebarwrapper">
    4243        <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
    4448  </div>
    4549</div>
     
    8993    <p>
    9094      &copy; 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> .
    9296    (Revision )
    9397        </p>
Note: See TracChangeset for help on using the changeset viewer.