Commit graph

59 commits

Author SHA1 Message Date
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