365 Commits

Author SHA1 Message Date
iBug
85e1ba131e Update CHANGELOG and regenerate JS 2024-11-28 01:11:48 +08:00
Jason Williscroft
1ae32a42cb
Hide hidden links & remove the overlay when one is clicked (#5042) 2024-11-28 01:11:14 +08:00
Archer
5fd703674b
Fix JavaScript null error on home and splash layouts (#4939) 2024-09-26 13:39:03 +08:00
iBug
1e6bcecb5a
Release 4.26.2 💎 2024-06-15 17:53:30 +08:00
iBug
ff56bc2bd6 assets/css/main.scss: Add trailing newline 2024-05-16 22:37:48 +08:00
iBug
1a85a28685 Release 4.26.1 💎 2024-05-10 17:59:50 +08:00
iBug
573f286971 Limit "auto scroll ToC" to Chromium-based 2024-05-07 14:20:45 +08:00
iBug
438710da82 Disable copy button for bad pre blocks 2024-05-06 21:16:04 +08:00
iBug
14e3fa2b28 Add success indicator for code block copy button 2024-05-06 01:20:41 +08:00
iBug
dc965c5bbe Release 4.26.0 💎 2024-05-05 19:54:28 +08:00
iBug
148349b029 Update CHANGELOG and bundle exec rake 2024-05-05 19:44:28 +08:00
iBug
0527e17354
Add "copy to clipboard" button for code blocks (#2812)
* Add copy-to-clipboard button and JS

* Ignore line numbers if present

* Rewrite heading permalink code to use vanilla JS

* README: Add credits to zenorocha/clipboard.js (MIT License)

@iBug really wants a place here in the Credits section :P

* Add .no-copy for hiding the button, update docs

* Add td.rouge-code to selectors

* Fix navigator.clipboard branch

* Add screenreader text for copy button

* Restore focus to the button after copying

* Add site-wide enable switch
2024-05-05 19:43:24 +08:00
iBug
c76813f6f5 Remove "sticky sidebar" JS in favor of CSS media queries 2024-05-05 18:23:01 +08:00
iBug
9c386c5509 Update CHANGELOG and bundle exec rake 2024-05-05 17:36:35 +08:00
Dominique Deluvio
16103c6d49
Remove overlay and revert X to hamburger icon when popup disappears (#3958)
the `.hidden-links` popup disappears after you move the cursor out of it.
However, the white overlay on the screen does not disappear, as well as the `x` nav button on the top-right, remains as is.
Now when you click anywhere on the screen the popup appears again, and the `x` nav button turns back to a hamburger menu button.

And when you click on the hamburger menu, the popup disappears. now it's happening the exact opposite.

To remedy this, the pop up menu as well as the `x` nav button should also return back to normal once the popup disappears.

This commit fixes this issue.
2024-05-05 17:34:12 +08:00
iBug
244eff763a bundle exec rake js 2024-05-05 15:28:01 +08:00
iBug
b278dac7fb Merge banner.js into Rake task
Also let uglify-js produce source map for easier debugging
2024-05-05 04:13:39 +08:00
iBug
0b8b5230f9 Migrate npm run scripts to Rakefile tasks
Rakefile is like Makefile - it has dependency management,
while npm run scripts do not.

Aside from that, this also allows us to drop literally all Node.js packages,
as uglify-js is self-contained and has no dependencies.
Reduced node_modules from 17M to 374K.
2024-05-05 04:03:07 +08:00
iBug
bce2b50556 Fix logic error in toc-scroll 2024-05-05 01:26:25 +08:00
iBug
dc41016c62
Auto scroll sticky ToC with content (#3115) 2024-05-05 01:05:21 +08:00
iBug
7ea8510d4f Fix where_exp for Jekyll < 4.0
'and' and 'or' are new in Jekyll 4.0.
Ref: https://stackoverflow.com/posts/comments/111965719
2024-04-28 00:56:17 +08:00
iBug
6e94773083 Release 4.25.0 💎 2024-04-23 01:50:35 +08:00
LasseAhhMann
7aee05ce0c
Remove JS and other files from search index (#4000)
To avoid getting JS and irrelevant files indexed remove pages where title is null. This gives a much cleaner Lunr store with more relevant content.
2024-04-22 23:22:08 +08:00
Benson Muite
8dc2997d1f
Update attribution link (#3553) 2022-05-27 12:00:08 -04:00
Michael Rose
55f6e8fae5 Exclude main.scss from Lunr search index 2022-05-27 11:48:46 -04:00
Nicholas Perry
00b86b1ff8
add optinal lunr searching of pages (#3352) 2022-05-27 11:39:47 -04:00
Lars Olesen
df97788050
Update to Jquery 3.6.0 (#3254) 2022-05-27 10:12:25 -04:00
Michael Rose
97cf6e189b
Remove extra semi-colon 2021-08-10 15:17:34 -04:00
iBug
ff5b354a9a
Enable magnific popup on <a> tags only when it has <img> (#3114) 2021-08-08 14:01:59 -04:00
Michael Rose
00fa7be38b Release 4.24.0 💎 2021-07-05 16:32:52 -04:00
Michael Rose
65eb672dcc Release 4.23.0 💎 2021-05-14 19:34:33 -04:00
Michael Rose
ee67ad9743 FIx menu toggle
ref: #2957
2021-05-14 19:24:11 -04:00
Michael Rose
4556423b66 Release 4.22.0 💎 2021-02-05 20:53:57 -05:00
Lars Olesen
0ec1aa1292
Upgrade Lunrjs to 2.3.9 and switch to relative_url (#2805)
* Update Lunr to 2.3.9

* Switch from absolute_url to relative_url
2021-02-05 20:20:12 -05:00
PHOENiX
784264d1e6
Add .webp to supported lightbox images (#2788) 2021-02-05 20:14:21 -05:00
Michael Rose
144cfee5b7 Release 4.21.0 💎 2020-11-02 11:35:14 -05:00
Mitchell Skaggs
133dffe2f9
Update jQuery to 3.5.1 (#2713)
* Update jQuery to 3.5.1

Closes #2712

* Build NodeJS

Run using `npm run build:js`
2020-11-02 11:25:10 -05:00
Miguel Belardinelli Prytoluk
bdc8ac01e8 merging into master 2020-09-10 10:48:37 -03:00
Michael Rose
526445bffe Release 4.20.2 💎 2020-09-07 10:07:29 -04:00
Miguel Belardinelli Prytoluk
e0b0448f05 added css changes, modified jquery.greedy-navigation and built the main.min.js again 2020-08-28 17:41:29 -03:00
iBug ♦
b7144931c7
Change "fa" to "fas" for Font Awesome 5 (#2649)
* main.js: fa -> fas for FA 5

* Update CHANGELOG and history
2020-08-14 15:21:38 -04:00
Michael Rose
b4abce3b78 Release 4.20.1 💎 2020-08-04 12:33:22 -04:00
Michael Rose
cb18aaa7a0 Release 4.20.0 💎 2020-08-04 11:18:04 -04:00
iBug ♦
d5d3863322
Use layout: none instead of null (#2617)
* Use layout: none instead of null

* Update CHANGELOG and history
2020-07-24 08:22:16 -04:00
Michael Rose
5021021fc8 Release 4.19.3 💎 2020-06-06 11:47:44 -04:00
Michael Rose
7ec8e90c76 Update GreedyNav.js 2020-06-06 10:30:54 -04:00
Michael Rose
7bdc8dc193 Release 4.19.2 💎 2020-05-01 11:47:01 -04:00
Michael Rose
6bc673d331 Release 4.19.1 💎 2020-03-16 21:31:23 -04:00
Michael Rose
864892c507 Bump dependencies 2020-03-16 10:45:33 -04:00
Michael Rose
7051c2b595 Update smooth-scroll.js to v16.1.2
Close #2430
2020-03-11 13:13:46 -04:00