Commit graph

150 commits

Author SHA1 Message Date
Tom Cammann
cb9cec76e3 Support yaml front matter in mermaid blocks
Mermaid diagrams can start with yaml front matter, e.g.
```
---
title: Example Diagram
---
graph LR
  A --> B
```

Relearn injects an init directive
`%%{init: {"theme":"default"}}%%` at the top of a mermaid block to
support theming the mermaid diagram. However this will cause a syntax
parser error in mermaid if the init directive comes before the yaml
front matter.

Valid:
```
%%{init: {"theme":"default"}}%%
graph LR
    A --> B
```
Invalid:
```
%%{init: {"theme":"default"}}%%
---
title: Example
---
graph LR
    A --> B
```

To support yaml front matter, we detect if front matter is used, and
inject the init directive after the front matter.

```
---
title: Example
---
%%{init: {"theme":"default"}}%%
graph LR
    A --> B
```
2023-06-09 11:52:23 +01:00
Sören Weber
5a2ffac7fc
tabs: fix false codify detection if only contained in subtabs #550 2023-06-08 16:45:30 +02:00
Sören Weber
cef256eb40
tabs: allow codified tabs to be colored #550 2023-06-08 14:53:22 +02:00
Sören Weber
25e39cfe34
tabs: fix style for indented code blocks #550 2023-06-07 20:16:59 +02:00
Sören Weber
67fe76a99c
shortcodes: add style option to mimic code box color scheme #551 2023-06-06 17:44:06 +02:00
Sören Weber
5099b5b73c
tags: taxonomy layout with headings all on the left #530
and columned lists like in the terms page for a more concicse look
2023-05-19 12:59:06 +02:00
Sören Weber
55549897c5
tags: leverage space in taxonomy layout #530 2023-05-19 09:54:14 +02:00
Sören Weber
06d35bbbdb
openapi: replace implementation with swagger-ui #523 2023-05-14 23:05:07 +02:00
Sören Weber
5f19b0f616
i18n: fix tooltip alignment after last change #492 2023-02-25 00:32:30 +01:00
Sören Weber
27bb276909
i18n: write code ltr even for rtl languages #492 2023-02-25 00:05:38 +01:00
Sören Weber
c0a1c9cbcb
menu: rebuild collapsible expander #466
because sizing and positioning was a mess;
the follwing things are fixed with this:
- resizes and positions correctly according to html elements font-size
- IE11 compatiblity is now given
- a11y: expander is now correctly given a focus outline
- chevron is now coded into html instead of a css content value, which makes it easier to change (was an issue in the past)
- the visited checkmark now breaks correctly on long lines and hides behind the text if necessary
- some more css classes were introduced to make further extensions (eg. nested shortcut links) easier
2023-02-24 23:29:33 +01:00
Sören Weber
68e89ca171
anchor: fix link in FF when served from filesystem #482 2023-02-20 13:54:45 +01:00
Sören Weber
09e7aebcd8
nav: fix initial positioning on content pages #476 2023-02-12 14:10:55 +01:00
Sören Weber
c7a819323a
nav: restore scroll position on browser back #476 2023-02-12 09:35:50 +01:00
Sören Weber
02e81b6e4b
scrollbar: remove debug log #471 2023-02-11 00:05:02 +01:00
Sören Weber
8e4b7cddc5
scrollbar: update in next frame
the high timeout caused glitches so we assume the width has been settled in the next animation frame + plus some surplus #470
2023-02-10 17:02:33 +01:00
Sören Weber
d62e2f7e0e
i18n: full support for RTL #470 2023-02-10 00:34:47 +01:00
Sören Weber
381b74f837
i18n: add RTL support for nav bar and child items #470 2023-02-09 00:53:11 +01:00
Sören Weber
56bc99b79a
tabs: nested tabs content is not displayed #468 2023-02-07 18:06:34 +01:00
Sören Weber
a046b9300f
mermaid: make zoom configurable #144 2023-02-05 11:13:03 +01:00
Sören Weber
5babf80537
lightbox: close on ESC #451 2023-02-04 23:12:40 +01:00
Sören Weber
6d90be3015
browser: fix broken inline clipboard buttons after IE11 refactor #452 2023-02-04 22:50:19 +01:00
Sören Weber
7de76ad337
browser: IE11 from hell #452 2023-02-04 16:53:05 +01:00
Sören Weber
9783b8af0f
browser: IE11 - you guess it #452 2023-02-04 16:48:43 +01:00
Sören Weber
4a1adeb79b
browser: further IE11 fixes #452 2023-02-04 16:17:19 +01:00
Sören Weber
5b9389fde2
browser: remove IE11 errors #452 2023-02-04 16:01:42 +01:00
Sören Weber
7722748432
swagger: avoid errors when using invalid rapi-doc fragment ids #465 2023-02-04 13:39:59 +01:00
Sören Weber
5f7df12b88
mermaid: remove jQuery #452 2023-02-04 01:54:13 +01:00
Sören Weber
03c2bf52a9
nav: fix nav on last project page and horizontal scrolling detection #452 2023-02-04 01:42:21 +01:00
Sören Weber
8f4d9f4930
mermaid: rerender graph if search term is present and variant is switched #460 2023-02-04 00:07:52 +01:00
Sören Weber
973e95af07
tabs: fix after global jQuery removal #452 2023-02-04 00:04:42 +01:00
Sören Weber
d1fcf21461
global: remove jQuery #452 2023-02-03 23:35:16 +01:00
Sören Weber
8e0013647b
clipboard: remove jQuery #452 2023-02-03 23:25:57 +01:00
Sören Weber
00faf15af5
expand: a11y and remove jQuery #339 #452 2023-02-03 08:57:55 +01:00
Sören Weber
322a86ae47
mark: fix opening of menus if search term was found #452 2023-02-03 08:56:01 +01:00
Sören Weber
f89c9944bd
cruft: remove jQuery #452
this code was unused
2023-02-01 19:02:52 +01:00
Sören Weber
e57358006a
mark: remove jQuery #452 2023-02-01 15:42:24 +01:00
Sören Weber
a95d86c03c
search: remove jQuery #452 2023-01-29 23:58:43 +01:00
Sören Weber
f322e58ddd
nav: remove jQuery #452 2023-01-29 16:47:34 +01:00
Sören Weber
1491e66580
history: remove jQuery #452 2023-01-29 16:47:01 +01:00
Sören Weber
302ea923ed
tabs: remove jQuery #452 2023-01-29 16:45:42 +01:00
Sören Weber
f2bfdce1d9
lightbox: switch to CSS-only solution #451 2023-01-29 11:21:52 +01:00
Sören Weber
05b31c174a
nav: fix left/right navigation for horizontal scrolling #435 2023-01-22 23:46:56 +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
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
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
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
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
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
b1444965f4
theme: avoid javascript errors if toc isn't present #268 2022-06-12 14:06:30 +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
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
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
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
ff8f9582a0
swagger: polishing #226
- print support
- use thems styles for swagger
- docs
2022-03-27 22:24:06 +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
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
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
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
442a4f4832
variant: move scripts to own file #188 2022-02-20 23:58:16 +01:00
Renamed from static/js/relearn.js (Browse further)