Commit graph

180 commits

Author SHA1 Message Date
Sören Weber
ec7dc9d042
mermaid: let zoom reset to initial size #145 2021-11-09 21:14:34 +01:00
Sören Weber
de1cfc1a2d
mermaid: apply PR18 #145 2021-11-09 21:13:01 +01:00
Sören Weber
d673f413be
mermaid: add visual hints for pan/zoom #143 2021-11-09 21:07:22 +01:00
Sören Weber
abfe838db2
mermaid: style #143 2021-11-09 21:05:54 +01:00
Sören Weber
f3c067bf9b
mermaid: assert that window.mermaid is actually mermaid #136 2021-11-03 21:42:38 +01:00
Sören Weber
e9cf2a8580
security: fix XSS for malicioius image URLs #117 2021-10-12 16:32:45 +02:00
Sören Weber
2117fefe62
security: fix XSS for malicioius URLs #114 2021-10-08 19:30:27 +02:00
Sören Weber
3224bfb1a3
theme: fix sticky header to remove horizontal scrollbar #82
HTML5 solution; sorry IE11
2021-09-23 21:25:45 +02:00
Sören Weber
b5e90f03dd
theme: ensure IE11 compatiblity #89 2021-09-13 21:09:44 +02:00
Sören Weber
65cb38aec3
theme: use <main> #88 2021-09-13 19:28:16 +02:00
Sören Weber
2fcaac5d0b
theme: fix usage of <section> #88 2021-09-13 19:28:16 +02:00
Sören Weber
c5382e0bcc
theme: fix showVisitedLinks in case Hugo is configured to modify relative URLs #86 2021-09-09 21:03:37 +02:00
Sören Weber
b75b8572c5
menu: avoid console log on landing page #79 2021-09-05 23:40:20 +02:00
Sören Weber
d53fc18c2b
search: open expand if it contains search term #80 2021-09-04 12:05:15 +02:00
Sören Weber
1c6d9538a3
menu: scroll active item into view #79 2021-09-04 11:09:38 +02:00
Helder Pereira
a8cb285899 Improve search logic 2021-08-29 16:13:07 +01:00
Helder Pereira
98ccdc2bd6 Improve search context preview 2021-08-29 16:12:02 +01:00
Helder Pereira
4e08a7b5a4 Make search pages lookup constant time 2021-08-29 16:11:11 +01:00
Helder Pereira
00e6ca63bc Format search.js 2021-08-29 16:03:04 +01:00
Helder Pereira
fa84d305f4 Register focus event in the search text input 2021-08-25 20:48:01 +01:00
Helder Pereira
2edbf2645c Fix search with relativeURLs 2021-08-24 23:36:26 +01:00
Sören Weber
b29f1ce055
theme: adjust leading whitespace and superflous lines 2021-08-24 00:23:52 +02:00
Sören Weber
de7b3d8056
theme: remove typos and superflous whitespace 2021-08-23 23:51:52 +02:00
Sören Weber
5c667b3d07
code highligher: switch to standard hugo highlighter #32
Since a while, Hugo has its own mechanism for code highlightning.

We remove the old highlightning code provided by the client-side javascript library highlight.js and all its related files.

This also solves issues introduced by Hugos own highlightning because in our theme we are currently highlighting the code twice leading to unpredictiable results.

This will also fix an issue were light code highlightning themes weren't displayed correctly because our styles are overwriting color information.

Another advantage is the huge list of supported languages which by far exceeds our current list.

On the downside, this is a breaking change because our current color theme isn't supported by Hugo.
2021-07-26 11:50:34 +02:00
Sören Weber
6fb5852643
maintenance: upgrade jquery to 3.6.0 #30
Because of a jquery security vulnerability, we are upgrading to the latest version 3.6.0

https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/

Depending on the site content, there may be issues with self-closing tags that are allowed to have content like `div` or `span`. See https://jquery.com/upgrade-guide/3.5/
2021-07-25 22:33:18 +02:00
Sören Weber
541a634f6e
theme: adjust copy-to-clipboard #29
Copy to clipboard has a lot of smaller issues:

- contrast for inline code is bad in notice boxes
- bordering the icon does not work well with bordering of inline code
- hover color on inline code icon is blurred
- hover color on block code is statically set to link color of standard theme

And related to that:

- tooltip misses outline border, especially when displayed over dark background (like block code)
- inline code font size is sized by factor of parent font size, which is a hassle if you want to replicate the size for other elements
2021-07-25 22:09:45 +02:00
Sören Weber
1b06d27608
pan and zoom for mermaid graphs #9 2021-07-02 23:01:38 +02:00
Sören Weber
8a53387a81
upgrade mermaid to 8.10.2 and relocate #7 2021-07-02 22:24:44 +02:00
Sören Weber
6b7779dac5
merge theme js scripts into one file and fix mermaid init #5 2021-07-02 21:58:16 +02:00
Sören Weber
b52a263979
Only highlight text in HTML elements #10 2021-07-02 17:53:07 +02:00
Sören Weber
aad4bf26e1
Change mermaid initialization to support code fences #6 2021-07-02 17:38:58 +02:00
Sören Weber
c108d677b4 Rebranding to new theme name
- Rename theme from "Learn" to "Relearn"
- also change URLs
- remove old references
- more removal of french and chinese
2021-06-30 14:56:06 +02:00
Sandro Gauci
d198cbe65f
fix potential XSS in search (#492)
mostly it looks like a self-XSS but still good to fix
2021-04-01 00:48:33 +01:00
Swen Wenzel
0b5bb6e7b3
Implement tab views (#386)
Tab views from @swenzel
2021-03-16 17:21:57 +00:00
Adam Snyder
21a3f77b14
Remove code that adjusts navigation margin (#419) 2020-09-10 17:21:20 +01:00
Matthew Taylor
8349d619a5 Apply updated highlight.js 10.0.3 (a4b1bd2d) 2020-06-01 14:59:19 +01:00
Jared Stehler
54b373f350 fix null pointer when no params on image url 2020-06-01 13:00:37 +01:00
Jian
3ea5bca755 Added flag to turn off image featherlight 2020-02-01 22:58:17 +00:00
Christian Oliff
c8b5c2e176
change to minified autocomplete for improved performance
from:  https://github.com/Pixabay/JavaScript-autoComplete/blob/master/auto-complete.min.js
2019-08-12 10:31:28 +09:00
Christian Oliff
3c4599428e Delete html5shiv-printshiv.min.js 2019-08-12 01:03:44 +01:00
Matthew Taylor
258877709c Remove oudated versions of jquery & modernizr libraries 2019-04-16 18:47:14 +01:00
ozobi
18212e6759 Update search.js
fixed indent
2019-04-01 22:31:07 +01:00
ozobi
c5033d3ee6 update js
highlightJS -> https://highlightjs.org/download/ => update with desired languages, default: https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.14.2/highlight.min.js
modernizr -> https://modernizr.com/download/?csstransforms3d-domprefixes-prefixes-setclasses-shiv-testallprops-testprop-teststyles
lunrJS -> https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.5/lunr.min.js
clipboard -> https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js
jquery -> https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
featherlight -> https://cdnjs.cloudflare.com/ajax/libs/featherlight/1.7.13/featherlight.min.js
search.js -> updated for lunrJS 2.3.5
learn.js -> updated for clipboard
2019-04-01 22:31:07 +01:00
Massimeddu Cireddu
426ad13f85 Update hugo-learn.js 2019-03-15 16:03:59 +00:00
Massimeddu Cireddu
16782b2425 Render the ```mermaid blocks into graphs 2019-03-15 16:03:59 +00:00
Ryan Nixon
ef2ab7ad8a
Preventing left/right arrow key navigation in textareas 2019-02-15 10:11:16 -08:00
Mathieu Cornic
43d05a81ac
Merge pull request #208 from coliff/patch-3
Update html5shiv-printshiv.min.js
2018-12-22 17:20:38 +01:00
Shelane French
d03bc79a78
prevents left and right keydown in input fields
If input field is in focus, keydown event to trigger navigation change should
not fire. User should expect cursor to stay in input field when using arrow keys.
2018-12-20 19:22:04 -08:00
Christian Oliff
fdaf35b72c
Update html5shiv-printshiv.min.js
Update to final version:
https://github.com/aFarkas/html5shiv/blob/master/dist/html5shiv-printshiv.min.js
2018-12-14 00:11:03 +09:00
John.Allen2
e92b794700 xss fix 2018-10-11 08:47:20 -05:00
Matthew Taylor
cca7fdeeb0 Modify fontawesome selectors for v5.x 2018-02-19 16:33:30 +00:00
Alex Vargas Benamburg
d67055469d fix: no wrap images that already wrapped 2018-01-22 23:33:14 -06:00
matcornic
6562adeb7b fix #83 no Title and Edit this page text when on mobile + fixed top bar width pbm on resize by switching to sticky.js instead of sticky-kit 2017-11-23 19:46:56 +01:00
kamar535
377f63e9b0 Don't add class highlight to footnote links 2017-11-23 16:16:14 +01:00
Ryan McGuire
ff5ef7c020 Replace horsey with Pixabay's autocomplete (#75) 2017-09-28 18:47:26 +02:00
matcornic
52e897dcb9 changed defaults + scroll with offset 2017-08-20 23:43:49 +02:00
matcornic
da208441c0 feat: add sticky bar with smooth scroll 2017-08-20 23:43:47 +02:00
matcornic
2294a54b36 fixed scrollbar in left menu 2017-08-20 23:43:46 +02:00
matcornic
b2ac8298bf feat: support of Hugo 0.22+ #51 #48 #11 #50 2017-08-20 23:43:44 +02:00
Mathieu Cornic
aacdba800a Merge pull request #46 from lfalin/anchor-fix
Fix anchor scrolling that hides behind top nav bar
2017-05-29 19:43:21 +02:00
lfalin
0e61c86a9f Fix anchor scrolling that hides behind top nav bar 2017-05-27 18:27:37 -06:00
lfalin
c68dda185e Fix sticky header jumpiness (see: https://github.com/leafo/sticky-kit/wiki/Troubleshooting) 2017-05-25 22:06:02 -06:00
matcornic
797ac73ff9 fixes #40 2017-04-23 12:35:11 +02:00
matcornic
0fcd28a412 fix #20 : disable spacer for sticky-bar 2016-10-27 23:19:29 +02:00
Leclerc Gwendal
656a8b391f fix: add baseUrl to lunr suggestions href 2016-10-26 11:09:28 +02:00
Leclerc Gwendal
4218d1a27d feat: extract search out of header + use baseurl to search json index + add a step to explain how to use lunr-hugo + update perfect-scrollbar 2016-10-25 20:26:19 +02:00
Leclerc Gwendal
363bb68e42 feat: configure lunr, extract inline javascript in search.js and fix horsey popup position 2016-10-25 20:26:19 +02:00
Leclerc Gwendal
c645b07402 feat: add search support 2016-10-25 20:26:19 +02:00
Cornic Mathieu
75df02c3ab clean : delete console.log and update jquery 2016-04-15 10:03:17 +02:00
Mathieu Cornic
f50a77d0c5 feat: partials for style and scripts are now empty 2016-04-11 00:09:03 +02:00
Cornic Mathieu
b6c8ef14e0 feat: add anchor link to headers 2016-03-30 19:33:02 +02:00
Leclerc Gwendal
1b1544f9cc feat: add button shortcode 2016-03-27 14:24:51 +02:00
Leclerc Gwendal
c2d67b677c feat: add annimation on link + fix toc + modify sidebar button 2016-03-26 03:28:38 +01:00
Leclerc Gwendal
6686e925c0 feat: replacing jquery.scrollbar by perfect-scrollbar 2016-03-25 11:53:03 +01:00
Mathieu Cornic
40bdb505df feat: sticky top bar 2016-03-18 19:00:27 +01:00
Mathieu Cornic
4683d790f6 clean 2016-03-18 18:32:57 +01:00
Mathieu Cornic
b644f0eb7e feat: split partials to have better generecity + added index.html sample page 2016-03-17 21:40:58 +01:00
Mathieu Cornic
e1aae4a2cc feat: added Table of contents 2016-03-17 21:05:42 +01:00
Mathieu Cornic
2b88eae74b feat: implemented functionnalities on Markdown images: 1. featherlight for full size view in popup 2. Height/Width customizables 3. Possibility to add css classes 2016-03-17 17:48:18 +01:00
Mathieu Cornic
9246996907 feat: init commit with basic functionnalities 2016-03-17 12:01:39 +01:00