Matthew Peveler
7f42fd4c4d
Update jquery to 3.6.0 ( #1458 )
2021-06-17 23:51:33 +00:00
Matthew Peveler
681f4818a5
Add guards around localStorage in case user disables it ( #1399 )
...
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com >
2021-02-25 09:25:55 -05:00
Mike Ralphson
3af62c84a5
upgrade lunr to 2.3.9 ( #1325 )
...
Signed-off-by: Mike Ralphson <mike.ralphson@gmail.com >
2020-09-22 23:07:24 -04:00
Matthew Peveler
616df6223a
trim ending newline on copied code ( #1296 )
...
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com >
2020-08-10 17:26:12 +03:00
Andrew Lloyd Cartwright
f390aba9a2
Strip HTML tags from ToC element with regex before showing in title bar ( #1120 )
2020-06-22 16:35:41 -04:00
Matthew Peveler
06478b9273
fix language bar truncating long list of langs ( #1266 )
...
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com >
2020-06-22 16:35:41 -04:00
Caleb Crane
513e78f0ad
Fix handling ToC selectors that contain punctuation ( #1109 )
...
Tools like go-swag can produce schemas with IDs that contain '.' and
other characters that are used in CSS notation. Those IDs can't be used
properly in a jQuery selector unless the special characters are escaped.
Co-authored-by: Matthew Peveler <matt.peveler@gmail.com >
2020-06-22 16:35:41 -04:00
Matthew Peveler
bae7edc397
add copy to clipboard icon to code boxes ( #1258 )
...
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com >
2020-06-22 16:35:41 -04:00
Mike Ralphson
36f82aa880
Update JavaScript dependencies ( #1248 )
...
Signed-off-by: Mike Ralphson <mike.ralphson@gmail.com >
2020-06-22 16:35:41 -04:00
Robert Lord
b2119b0313
Fix ToC issues, fix #995
2018-07-05 16:28:05 -07:00
Andrey Fedorov
76b06fede7
Fixes #909 , reverts "don't pushState", using replaceState instead ( #949 )
...
Partially reverts 95f924fd0d .
2018-02-08 14:22:41 -06:00
Dan Levy
dd8e04c6f4
Cleans HTML before setting document.title ( #946 )
...
Fixes https://github.com/lord/slate/issues/945
2018-01-28 15:21:01 -06:00
Tomi Takussaari
8af90c16c5
Upgrade to latest jQuery (3.2.1) ( #939 )
2018-01-20 12:37:44 -06:00
Zach Toolson
95f924fd0d
Do not push history state. The browser already handles back properly ( #878 )
2017-09-13 23:17:16 -05:00
Diego
a00b046b3d
Update_lang.js
...
on line 101 missing a semicolon
2017-07-20 11:01:19 -07:00
Robert Lord
5663fb8b4f
Fix bug with initial load of ToC always jumping to top
2017-07-06 23:32:43 -07:00
eliat123
2a63948592
Add configurable keypress delay before initiating search ( #764 )
2017-06-18 23:15:59 -07:00
Robert Lord
7090d80067
Add styling to parent links of current link
2017-03-02 10:39:38 -06:00
Robert Lord
4aae61a1dc
Fix bug where clicking link in ToC wouldn't hide ToC on mobile
2017-03-02 10:39:37 -06:00
Robert Lord
53e2f23e5c
Static table of contents ( #701 )
...
* Add showing/hiding submenus, fix sidebar styling, fix bug where includes wouldn't appear in ToC
* Update ToC to highlight last header if page is scrolled to very bottom, fixes #280
* Set HTML title to current h1 section text, see #133
* Fix menu not opening on mobile
* Add back increase toc item height on mobile
* Fix padding bug
* Add back in ToC sliding animation
2017-02-24 11:57:39 -06:00
Robert Lord
1fd867c2ff
Add multiple-tabs-per-language test
2017-02-23 21:50:02 -06:00
Robert Lord
7f1d6da6dc
Remove last inline script
2016-01-27 02:00:01 -06:00
Robert Lord
a4b9208af0
Move jquery to be local
2016-01-27 01:37:16 -06:00
Robert Lord
8cba352315
Add lang-specific class
2016-01-26 15:39:37 -06:00
Robert Lord
ad3b2769fe
Update tocify to recache headers on image load, fixes #293
2015-07-06 18:54:45 -07:00
Robert Lord
fd5cba00f0
Fix small bug with new language tabs
2015-06-20 01:53:20 -04:00
Robert Lord
d14fd0f70e
Update language tabs to not disturb existing query strings, fixes #57
2015-06-20 01:49:25 -04:00
Rouven Weßling
a38011b4a5
Remove some unused JS.
2015-06-02 23:02:41 +02:00
Rouven Weßling
384ffac2fd
Don't generate unnecessary JS files.
...
Also exclude jquery.highlight from the nosearch version, as it's not needed there.
2015-06-01 00:29:57 +02:00
Rouven Weßling
5da237e7fe
Don't use a selector to get the heading text for search results.
...
Prevents bugs with special CSS characters.
Closes #201 .
2015-04-30 16:01:44 -05:00
Rouven Weßling
b550f04dae
Update jQuery UI to version 1.11.3
2015-04-30 16:01:18 -05:00
Rouven Weßling
b1e0ff5d94
Update lunr.js to version 0.5.7
2015-04-30 16:01:17 -05:00
Rouven Weßling
a60fd38cda
Use strict mode for JavaScript
2015-04-30 16:01:17 -05:00
Rouven Weßling
6062141cce
Update Rouge to Version 1.8
2015-04-30 16:01:17 -05:00
Robert Lord
5ad521614d
Readd parent() selection for code samples
2015-01-23 20:27:55 -06:00
Robert Lord
be28b785a1
Fix scrollIntoView undefined bug when there is no hash, fixes #114
...
Thanks to @kevin-buttercoin for this fix!
2014-12-04 15:42:01 -08:00
Robert Lord
902ddd7fdc
Update gems again
2014-12-04 15:39:17 -08:00
Robert Lord
482f0b9979
Update language tabs to recalc toc heights on change
2014-11-05 20:56:48 -06:00
Robert Lord
77cdc3fc66
Update gems and new markup styling issue
2014-11-02 13:42:41 -06:00
Kevin Adams
b1256f4800
changed to use jQuery text method
2014-10-09 14:59:06 -07:00
Kevin Adams
b40b3b47ed
fixed XSS vuln in searchbox
2014-10-08 16:38:46 -07:00
Robert Lord
18cd104883
Add better search results in a sliding search results area
2014-07-02 23:43:25 -07:00
Robert Lord
324da17ba3
Fix bugs with toc not highlighting, begin search overhaul
2014-07-02 22:34:58 -07:00
Robert Lord
e8a491c9ea
Fix unrecognized .highlight. bug #84
2014-06-24 01:03:39 -07:00
Robert Lord
d1fdd685a6
Fix default language selection bug
2014-06-22 03:10:26 -07:00
Robert Lord
0f93ffcc2b
More js cleanup for #80
2014-06-22 02:41:16 -07:00
Robert Lord
bdbd7a38a8
Update app javascript to pass jslint, fixes #80
2014-06-22 02:37:01 -07:00
Robert Lord
b147e6a2d7
Update toc javascript to hopefully be more performant
2014-06-22 02:33:55 -07:00
Robert Lord
1478579c59
Add language tabs to navbar on phone
2014-06-12 01:32:25 -07:00
Robert Lord
c2c35cfa25
Add retracting sidebar for tablets
2014-06-12 00:01:52 -07:00