summaryrefslogtreecommitdiff
path: root/sphinx/themes/basic/static/doctools.js
Commit message (Collapse)AuthorAgeFilesLines
* Happy New Year!Adam Turner2023-01-011-1/+1
|
* Split out `sphinx_highlight.js`Adam Turner2022-09-241-119/+11
|
* Fix terms checkAdam Turner2022-04-181-1/+1
|
* Run prettierAdam Turner2022-04-091-18/+16
|
* Fix highlightingAdam Turner2022-04-091-9/+6
|
* Merge pull request #10245 from stsewd/fix-shortcutsTakeshi KOMIYA2022-03-141-9/+6
|\ | | | | doctools: fix shortcuts
| * doctools: fix shortcutsSantos Gallegos2022-03-071-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous code was using JQuery to add the listeners https://github.com/sphinx-doc/sphinx/blob/b3812f72a98b01bae4b1158761082edc46cfa87f/sphinx/themes/basic/static/doctools.js#L304 Looks like by convention returning false mean preventDefault, but now with pure js this needs to be called explicitly. And a couple of fixes with the selectors. - querySelectorAll is an array-like object, it doesn't have a first() method. - nextLink was being assigned the `href` attribute instead of the object itself.
* | doctools: fix hideSearchWordsSantos Gallegos2022-03-071-1/+2
|/ | | | | | | | Previous code was: https://github.com/sphinx-doc/sphinx/blob/b3812f72a98b01bae4b1158761082edc46cfa87f/sphinx/themes/basic/static/doctools.js#L262-L268 Ref https://github.com/sphinx-doc/sphinx/pull/10028
* Merge commit '799385f5558a888d1a143bf703d06b66d6717fe4'Takeshi KOMIYA2022-02-161-9/+55
|\
| * Implement new shortcuts:Martin Liska2022-01-221-20/+52
| | | | | | | | | | | | | | | | | | - "/" for Focus search bar - "ESC" - clear highlighted text Fixes #691. Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
* | Drop JavaScript Frameworks (#10028)Adam Turner2022-01-301-265/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Delete jQuery and underscore.js * Move underscores.js setup to searchtools.js * Update jQuery.url(en|de)code * Update jQuery.getQueryParameters * Firefox bug is no longer present xref https://bugzilla.mozilla.org/show_bug.cgi?id=645075#c49 * Update jQuery.fn.highlightText * Use enum instead of magic number * Update test descriptions to remove obsolete jQuery reference * Update Documentation.getCurrentURL * Revert accidental fix of Documentation.getCurrentURL * Update Documentation.initOnKeyListeners * Update Documentation.hideSearchWords * Update Documentation.highlightSearchWords * Update Documentation.initDomainIndexTable * Use arrow functions and const * Replace $(document).ready * Strict mode * Move Documentation.hideSearchWords next to Documentation.highlightSearchWords * Update translation functions in Documentation * Replace $(document).ready in searchtools.js * Update Scorer * Update Search.hasIndex, Search.deferQuery, Search.stopPulse * Prefer window.location * Update Search.init * Update Search.loadIndex * Update Search.setIndex * Update Search.startPulse * Add _escapeRegExp * Update Search.makeSearchSummary * Update Search.htmlToText * Update Search.performSearch * Factor out _displayNextItem * Update Search.query * Update Search.performObjectSearch * Update Search.performTermsSearch * Remove underscores.js setup * Use Sets * Update test configuration * Fix test failures * Drop unused make/get URL functions * Strict mode in searchtools.js * Remove outmoded check for jQuery and underscore.js * Ran prettier prettier --print-width 120 --no-semi --quote-props as-needed --no-bracket-spacing --arrow-parens avoid --write sphinx/themes/basic/static * Remove more references to jQuery and underscore.js * Remove jQuery and underscore.js licences * Update classic theme for no jQuery * Update all other themes for no jQuery * Restore jQuery & underscores.js to Sphinx themes Enables a more gradual deprecation * Added deprecation note to CHANGES * Run prettier with defaults * Update deprecation message to include extensions, note that sources must be copied * oops * Address Pradyun's feedback * Forgot this one * `let` doesn't work, as it is scoped to the block... * Remove missed jQuery in sphinx13 theme
* | Merge branch '4.x'Takeshi KOMIYA2022-01-161-0/+3
|\ \ | |/
| * Merge pull request #9551 from mgeier/remove-highlight-paramTakeshi KOMIYA2022-01-141-0/+3
| |\ | | | | | | "Hide Search Matches" removes "highlight" parameter from URL
| | * "Hide Search Matches" removes "highlight" parameter from URLMatthias Geier2021-08-151-0/+3
| | |
* | | Change "Permalink to this {headline -> heading}"Pradyun Gedam2022-01-021-1/+1
|/ / | | | | | | | | "heading" is a better word to use in this tooltip, since it better matches the use case.
* | A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|/
* Fix missing break statement for arrow shortcuts.Martin Liska2021-06-091-0/+2
| | | | | When one presses left key at the first page, `case 37` falls through to `case 39` and the next page is visited.
* Merge branch '8137_urldecode' into 3.xTakeshi KOMIYA2021-01-261-1/+6
|\
| * Closes #8123: Fix plus-handling (+) in search terms for basic html theme searchDaniel Hofmann2020-08-191-1/+6
| | | | | | | | | | Note, that the default splitter will not index +, so this isn't of much of much use, unless the splitter of the search-language is reconfigured.
* | A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* | Prevent arrow key changing page on buttonsDavid Foster2020-10-141-2/+3
|/
* Disable arrow keys when a modifier key is pressed (#7089)Matthias Geier2020-02-071-2/+3
| | | | | | | | | | | | * Disable arrow keys when a modifier key is pressed Closes #7088. * #7088 document key navigation option * add change note for #7088 Co-authored-by: Timotheus Kampik <timotheus.kampik@signavio.com>
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* #5258 test after control merge & polishTimotheus Kampik2019-01-121-1/+0
|
* Merge branch 'master' into 5258-fix-search-highlight-svg-ffTimotheus Kampik2019-01-121-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | #5258 fix SVG search highlight issue in FirefoxTimotheus Kampik2018-08-051-2/+2
|/ | | | | | | | | | | Use `node.parentElement.getBBox()` instead of `span.getBBox()`: * Same highlighting behavior in Chrome, Opera * Avoid issue with getBBox() in FF, see: https://bugzilla.mozilla.org/show_bug.cgi?id=612118 * Microsoft browsers to be tested
* #5186 clean up JavaScript templates: doctoolsTimotheus Kampik2018-07-211-0/+315
| | | | move templating from `doctools` to `documentation_options`
* refactor navigation basic templateTimotheus Kampik2015-11-271-289/+0
| | | | enable configuration via theme.conf
* refactored code according to discussion in #2064Timotheus Kampik2015-10-091-11/+12
|
* HTML doc: navigate with left/right arrow keysTimotheus Kampik2015-10-041-0/+25
| | | | Adjusted basic theme's JS accordingly
* Merge branch 'stable'Georg Brandl2015-02-061-1/+1
|\
| * Fixes #1709: remove use of $.browserGeorg Brandl2015-02-061-1/+1
| |
* | Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\ \ | |/
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | Update jQuery from 1.8.3 to 1.11.1. This change includes two migrations for ↵Takayuki Shimizukawa2014-10-081-0/+25
|/ | | | jQuery. Closes #1438.
* Update copyright year.Georg Brandl2014-03-011-1/+1
|
* In search word highlighting, dont insist on having div.body.Georg Brandl2014-01-191-0/+3
|
* Correct some JS issues found by JSHint.Georg Brandl2013-01-041-1/+1
|
* Copyright update.Georg Brandl2013-01-011-1/+1
|
* Closes #1015: do not override the jQuery contains() function by defining our ↵Georg Brandl2012-10-281-12/+0
| | | | own with that name; rather use the one from Underscore.
* Fix typo and create a new "stable" named branch.Ezio Melotti2011-10-231-1/+1
|
* Move 'Hide Search Matches' to search box.Robert Lehmann2011-10-021-4/+4
| | | | | This is (a) semantically cleaner and (b) shows that feature even when source links are disabled.
* Closes #778: Fix CSS class selector.Robert Lehmann2011-10-021-2/+2
|
* New year update.Georg Brandl2011-01-041-1/+1
|
* Fix typo.Georg Brandl2010-05-241-1/+1
|
* s/highlight/highlighted/ for the search word highlighting class: "highlight" ↵Georg Brandl2010-02-281-2/+2
| | | | is already used by pygments.
* Make the concept of "module index" generalized to domains. As a ↵Georg Brandl2010-02-201-4/+4
| | | | side-effect, the latex modindex is no longer generated by LaTeX.
* merge with trunkGeorg Brandl2010-01-171-3/+8
|\
| * #313: fix search on Internet Explorer; add underscore.js to JavaScript libs.Georg Brandl2010-01-121-5/+10
| |