Commit graph

291 commits

Author SHA1 Message Date
Sören Weber
41582f63f0
theme: add accent color #409 2022-12-02 20:44:53 +01:00
Sören Weber
9c1233d9e3
search: long search terms causing browser freeze #408 2022-11-29 19:25:40 +01:00
Sören Weber
39b8347b1f
button: refactor for a11y #372 2022-11-28 18:42:51 +01:00
Sören Weber
26b22f9405
search: update lunr languages to 1.10.0 #403 2022-11-27 13:02:43 +01:00
Sören Weber
e5c52b992b
variant: minor color adjustments #402 2022-11-22 19:15:27 +01:00
Sören Weber
cdbb1a8ee7
variant: fix generator for use of neon #401 2022-11-22 18:21:17 +01:00
Sören Weber
8aeb69fa56
search: make build and js forgiving against config errors #400 2022-11-20 23:00:40 +01:00
Sören Weber
0d5ee6d1b4
mermaid: avoid leading whitespace #394
to avoid brittle initialization of mindmap graph
2022-11-19 00:00:31 +01:00
Sören Weber
3bac832eb0
search: only redirect keyboard events initially to menu #386
otherwise we are not able to tab thru search results on the search page
2022-11-18 21:09:50 +01:00
Sören Weber
864c66b6c6
#search: IE11 compatibility #386 2022-11-18 09:02:39 +01:00
Sören Weber
95450cbf23
mermaid: update to version 9.2.2 #391 2022-11-17 23:35:28 +01:00
Sören Weber
8b8814d696
search: add dedicated search page #386 2022-11-17 22:12:18 +01:00
Sören Weber
17d877a141
toc: improve keyboard handling #390 2022-11-17 17:45:29 +01:00
Sören Weber
dd44547a10
search: improve keyboard handling #387 2022-11-17 17:29:01 +01:00
Sören Weber
7b0b56dee4
nav: fix key navigation when pressing wrong modifiers #379 2022-11-11 01:05:42 +01:00
Sören Weber
54878e0407
theme: fix overflowing issue tooltips #364
in rtl, the scrollbars were still in ltr mode which was now changed to avoid overflow of tooltips when attached to the "ending" corner of the box
2022-11-07 20:57:17 +01:00
Sören Weber
08fb5c4b22
theme: optimize page load for images #304 2022-11-06 16:26:11 +01:00
Sören Weber
01cfcfe67b
theme: allow to be served by file:// protocol #349 2022-11-02 00:14:19 +01:00
Sören Weber
0ac97ba47e
i18n: support RTL in content #357 2022-11-01 02:00:50 +01:00
Sören Weber
bd70949313
nav: change defunct keyboard shortcuts #344 2022-10-08 22:50:14 +02:00
Sören Weber
1f7df3e37f
print: switch mermaid and swagger style before print #316 2022-07-29 21:55:06 +02:00
Sören Weber
9765837da0
menu: expand collapsed menus if search term is found in submenus #312 2022-07-27 00:31:08 +02:00
Sören Weber
8f59c36e10
mermaid: remove console warnings in IE11 #308 2022-07-17 19:52:23 +02:00
Sören Weber
8f6e091a65
mermaid: header is showing up in FF #311 2022-07-17 19:42:07 +02:00
Sören Weber
3c53b59e08
chore: update RapiDoc 9.3.3 #301 2022-07-05 00:37:08 +02:00
Sören Weber
96aa7af4fb
history: don't reload page when history gets cleared #299 2022-07-03 15:40:32 +02:00
Sören Weber
3e83d03bce
code: show copy-to-clipboard marker for blocklevel code #298 2022-07-03 15:10:53 +02:00
Sören Weber
d12227fbd5
print: disable arrow navigation #294 2022-07-03 13:31:08 +02:00
Sören Weber
7e09a0bf89
chore: update Mermaid 9.1.3 #293 2022-07-03 13:09:33 +02:00
Sören Weber
03628ec4b1
theme: align content with topbar icon limits #290 2022-07-02 20:29:24 +02:00
Sören Weber
b1547e945f
theme: docs wording 2022-07-02 14:01:24 +02:00
Sören Weber
01e14664ce
math: add mathjax rendering #235 2022-07-02 14:00:23 +02:00
Sören Weber
6e70ae0f93
swagger: avoid builtin syntax-highlightning #280 2022-06-23 00:08:07 +02:00
Sören Weber
5118f1982e
tabs: don't change tab selection if panel does not contain item #279 2022-06-22 22:16:22 +02:00
Sören Weber
666d4d3251
i18n: support multilang content #271 2022-06-12 19:24:27 +02:00
Sören Weber
b1444965f4
theme: avoid javascript errors if toc isn't present #268 2022-06-12 14:06:30 +02:00
Sören Weber
c7b2eee5a6
i18n: fix search for cyrillic #269 2022-06-12 14:05:01 +02:00
Sören Weber
1131c68aae
i18n: add lunr language support #269 2022-06-12 14:04:41 +02:00
Sören Weber
35143ca59b
i18n: update lunrjs to 2.3.9 2022-06-12 14:03:59 +02:00
Sören Weber
cc08c9f3df
theme: avoid initial scrolling in print #268 2022-06-07 20:24:53 +02:00
Sören Weber
f1ec2d2417
theme: add keyboard shortcuts for all header navigations #268 2022-06-07 01:35:54 +02:00
Sören Weber
ae3ad846cc
theme: improve keyboard navigation for scrolling #268 2022-06-06 23:58:00 +02:00
Sören Weber
ebe1d59a69
swagger: update rapidoc to 9.3.2 #266 2022-06-06 22:13:19 +02:00
Sören Weber
1214c6517b
mermaid: update to 9.1.1 #265 2022-06-06 22:08:14 +02:00
Sören Weber
bcd4b2694b
toc: add scrollbar #262 2022-06-06 00:44:04 +02:00
Sören Weber
c8cde4f9f0
theme: remove console warnings #242 2022-06-06 00:00:28 +02:00
Sören Weber
4dbe1bfb1d
theme: let browser scroll page on CTRL+f #242 2022-05-30 15:10:35 +02:00
Sören Weber
6bddf821db
theme: remove --MAIN-ANCHOR-color from stylesheet #256 2022-05-29 00:15:51 +02:00
Sören Weber
a9e665bf30
variant: DRY Relearn variants #239 2022-05-22 23:55:26 +02:00
Sören Weber
1900ddb589
variant: fix primary color and avoid sorting of stylesheet #239 2022-05-22 23:14:13 +02:00
Sören Weber
74c47913af
variant: add primary and secondary color variables #239 2022-05-22 23:11:10 +02:00
Sören Weber
e6a0414c10
theme: even more JS IE11 fixing 2022-04-03 18:03:28 +02:00
Sören Weber
301f8812db
scrollbar: remove now unnecessary IE11 workaround 2022-04-03 15:59:00 +02:00
Sören Weber
ccb0cc1e5d
variant: fix false default swagger theme 2022-04-03 15:21:43 +02:00
Sören Weber
72739507c6
theme: fix breakage after IE11 compat 2022-04-03 15:20:46 +02:00
Sören Weber
1a7a1538df
theme: asure JS IE11 compatiblity 2022-04-03 14:36:19 +02:00
Sören Weber
48c7d6bc73
menu : expand/collapse menu items without navigation #231 2022-04-03 12:12:12 +02:00
Sören Weber
cadc808932
theme: scroll to heading on initial load #232 2022-04-02 15:30:43 +02:00
Sören Weber
0dd92e332b
print: add option to print whole chapter #230 2022-04-02 15:29:34 +02:00
Sören Weber
1b1d036534
variant: make variant switch work on slow networks #228 2022-03-28 11:56:51 +02:00
Sören Weber
ff8f9582a0
swagger: polishing #226
- print support
- use thems styles for swagger
- docs
2022-03-27 22:24:06 +02:00
Sören Weber
1823823321
theme: add CSS font variables #227 2022-03-27 22:20:30 +02:00
Sören Weber
f910477160
swagger: add support for oas/swagger documentation #226
basic swagger integration
2022-03-27 18:42:11 +02:00
Sören Weber
8c7896af4c
clipboard: removed jquery #224
this was an unsuccessful attempt to fix #224 but as we want to get rid
of jQuery in the long run anyways, we keep this change
2022-03-25 15:35:19 +01:00
Sören Weber
938debb1d9
mermaid: support differing themes for color variant switch #219 2022-03-19 20:18:21 +01:00
Sören Weber
270027ab0c
mermaid: update to 8.14.0 #220 2022-03-19 20:16:48 +01:00
Sören Weber
bc018cbb0d
mobile: hide initial menu animation in landscape #210 2022-03-13 12:36:48 +01:00
Sören Weber
710713da25
theme: make storage of multiple Hugo sites on same server distinct #214 2022-03-07 18:26:20 +01:00
Sören Weber
44d56fa7ff
theme: remove Modernizr 2022-03-06 19:09:12 +01:00
Sören Weber
6ad4f1c4fd
search: don't let scrollbar hijack input event of search term#210 2022-03-06 11:45:33 +01:00
Sören Weber
5f76f6ce27
theme: don't use jquery in new code 2022-03-06 10:23:34 +01:00
Sören Weber
ea8b527f25
mobile: fix navigation UX #209 #210 2022-02-28 01:19:32 +01:00
Sören Weber
9bc7fe86c2
theme: rename topbar div for consistency #210 2022-02-27 10:31:11 +01:00
Sören Weber
bf44b52dd1
theme: simplify DOM to introduce flex later #210 2022-02-27 10:27:12 +01:00
Sören Weber
a980b77491
theme: rename sidebar overlay #210
because we will introduce a second toc overlay soon
2022-02-27 09:59:38 +01:00
Sören Weber
fe67f0c630
theme: no need to resize flex sidebar #210 2022-02-26 13:08:19 +01:00
Sören Weber
1bca218955
theme: move code arround #210 2022-02-26 00:24:07 +01:00
Sören Weber
103f750670
theme: remove unused collapsable menu styles #210 2022-02-26 00:23:47 +01:00
Sören Weber
fb30e269e6
theme: code restructuring #210 2022-02-25 23:24:25 +01:00
Sören Weber
ac7a968be1
theme: remove search artifacts #210 2022-02-25 22:40:55 +01:00
Sören Weber
b0ded62b1f
chore: update perfect-scrollbar #210 2022-02-25 21:44:18 +01:00
Sören Weber
cc64579117
chore: upgrade perfect-scrollbar #210 2022-02-25 21:41:50 +01:00
Sören Weber
eab101eace
variant: fix occasional fail when resetting generator #208 2022-02-24 22:14:55 +01:00
Sören Weber
b895d0386b
variant: write stylesheet to console on download
...just to be save
2022-02-24 21:57:56 +01:00
Sören Weber
245923a91c
variant: more IE11 compliance 2022-02-24 21:54:05 +01:00
Sören Weber
4c50e5fe6b
variant: fix inconsistent color variable naming #200 2022-02-24 12:30:20 +01:00
Sören Weber
48a56ddefd
theme: fix bottom margin for block code in FF #175 2022-02-22 20:38:09 +01:00
Sören Weber
d850ea528d
clipboard: remove trailing line break from copied text #175 2022-02-22 20:36:59 +01:00
Sören Weber
e4f0ed138c
variant: normalize whole color value #188 2022-02-22 20:34:15 +01:00
Sören Weber
bd7c307bce
variant: fix some fallbacks #188 2022-02-22 17:24:07 +01:00
Sören Weber
c2f2c991e3
variant: don't switch theme if custom gets reset #188 2022-02-22 08:48:21 +01:00
Sören Weber
5f0168bc67
variant: reset custom generator styles correctly #188 2022-02-21 23:20:00 +01:00
Sören Weber
78abe914e0
variant: allow page browsing with custom theme #188 2022-02-21 23:11:04 +01:00
Sören Weber
f2b09e0980
variant: add reset functionality #188 2022-02-21 01:00:23 +01:00
Sören Weber
9f7a4b035d
variant: draw base color in correct group #188 2022-02-21 00:46:11 +01:00
Sören Weber
3b0e21949a
variant: show generator even if no themeVariant is configured #188 2022-02-21 00:35:50 +01:00
Sören Weber
442a4f4832
variant: move scripts to own file #188 2022-02-20 23:58:16 +01:00
Sören Weber
e9fa08dcf7
variant: build a color variant generator #188 2022-02-19 00:46:34 +01:00
Sören Weber
6f35177349
theme: rework header UX #151 2022-02-18 00:09:06 +01:00
Sören Weber
d1cd818357
clipboard: i18n #186 2022-02-17 20:09:50 +01:00
Sören Weber
fb9f06d98e
clipboard: fix tooltip position for block code #175 2022-02-17 19:23:50 +01:00
Sören Weber
9f7308ca4c
clipboard: adjust line-breaking for inline code between code and button #175 2022-02-17 19:21:20 +01:00
Sören Weber
7c04fdc473
theme: fix copy-to-clipboard hove #175 2022-02-16 14:37:54 +01:00
Sören Weber
874e542222
theme: avoid flickering on page load #178 2022-02-13 02:11:27 +01:00
Sören Weber
8c1a7304f9
theme: add a theme selector #178 2022-02-13 01:53:23 +01:00
Sören Weber
e590a44cf0
auto-complete: document change #155 2021-11-19 22:18:36 +01:00
Sören Weber
c4acec0880
auto-complete: even stick box if site was already scrolled before open #155 2021-11-18 21:17:20 +01:00
Sören Weber
cba76c3f41
search: make dropdown stick to search field when scrolling #155 2021-11-16 01:16:31 +01:00
Sören Weber
26a697ffe5
auto-complete: patch library with PR46/75 #155
to allow for non body parent
2021-11-16 01:15:46 +01:00
Sören Weber
43c72b7b64
maximize auto-complete lib #155 2021-11-16 00:51:54 +01:00
Sören Weber
4ca21ef1bb
menu: bring active item in sight for large menus #149 2021-11-13 14:11:46 +01:00
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