Commit graph

357 commits

Author SHA1 Message Date
Sören Weber
8cca74e3e6
variant: introduce option for filename modifier #679 #734 2023-12-03 15:22:32 +01:00
Sören Weber
283c61a0fd
theme: switch from config.toml to hugo.toml #741 2023-11-30 00:14:22 +01:00
Sören Weber
27de2fb301
clipboard: fix O(n²) buttons #738 2023-11-29 17:11:04 +01:00
Sören Weber
5d06241911
menu: make swipe handler passive #735 2023-11-28 19:56:16 +01:00
Sören Weber
ff978f3be1
variant: don't allow auto mode variants to be downloaded #679 2023-11-25 23:14:03 +01:00
Sören Weber
b49668a203
variant: make chroma style dynamically switchable #679 2023-11-25 14:23:58 +01:00
Sören Weber
f6288edcf4
variant: fix auto mode variant download in stylesheet generator #679 2023-11-24 23:35:15 +01:00
Sören Weber
286b6a13ac
variant: fix auto mode variant detection in stylesheet generator #679 2023-11-23 21:51:01 +01:00
Sören Weber
1b0e888861
tabs: remove active tab from tab order #726 2023-11-19 00:55:23 +01:00
Sören Weber
32d5fd5d56
mermaid: fix zoom button #725 2023-11-18 23:19:35 +01:00
Sören Weber
fcb255caf7
theme: fix JS errors on hugo --minifiy #724 2023-11-16 23:53:06 +01:00
Sören Weber
37ebcb6bb0
mermaid: update mermaid to 10.6.0 #703 2023-10-29 18:50:50 +01:00
Sören Weber
64d56dccce
openapi: update swagger-ui to 5.9.1 #702 2023-10-29 18:32:48 +01:00
Sören Weber
6cdb5c1dad
mermaid: show zoom reset button always on mobile #691 2023-10-27 00:30:30 +02:00
Sören Weber
3787cfccc5
mermaid: only show zoom reset button if zoomed #691 2023-10-18 22:43:30 +02:00
Sören Weber
292e261617
mermaid: reset zoom correctly #690 2023-10-18 22:11:33 +02:00
Sören Weber
d2cfca4b2e
theme: fix mobile layout for width=48rem #676
clumsy solution as long as we still support IE11, otherwise we could have used
media query range syntax
2023-10-05 08:51:31 +02:00
Sören Weber
032b2556de
clipboard: fix RTL location of tooltip #661 2023-10-01 13:48:56 +02:00
Sören Weber
67264dba47
clipboard: ignore RTL for code #660 2023-10-01 12:23:50 +02:00
Sören Weber
394ff3f7b2
mermaid: improve zoom UX #659 2023-10-01 12:21:29 +02:00
Sören Weber
5342161fed
mermaid: avoid graph bombing on hugo --minify #656 2023-09-30 21:41:31 +02:00
Sören Weber
bb77153860
mermaid: fix width for some graphs #655 2023-09-30 21:39:57 +02:00
Sören Weber
175b0c8806
mermaid: add pan&zoom reset #651 2023-09-26 22:22:52 +02:00
Sören Weber
4416ab4c7c
clipboard: fix malused Fontawesome style #649 2023-09-26 21:27:04 +02:00
Sören Weber
7622913ac2
search: add breadcrumb to dedicated search results #647 2023-09-24 00:27:39 +02:00
Sören Weber
e18c213e8c
theme: avoid id collisions between headings and theme #646 2023-09-23 10:18:31 +02:00
Sören Weber
e7eb9aa366
theme: remove HTML validation errors #644 2023-09-21 21:34:02 +02:00
Sören Weber
e065239498
openapi: update to swagger 5.7.2 #641 2023-09-18 20:48:24 +02:00
Sören Weber
8bd202954d
topbar: make buttons configurable #639 2023-09-18 20:24:49 +02:00
Sören Weber
6cd5a93198
topbar: make button flyouts modular #639 2023-09-15 00:23:41 +02:00
Sören Weber
82ba045702
topbar: move sidebar- and toc-overlay into topbar #639
for better modularization by keeping their whole functionality DOMwise in one place
2023-09-13 23:25:47 +02:00
Sören Weber
626841a16c
topbar: modularize left sided buttons #639 2023-09-12 23:09:14 +02:00
Sören Weber
bef1accd20
topbar: modularize buttons #639 2023-09-12 00:10:03 +02:00
Sören Weber
e6b50128e4
theme: fix snyk code issues #633 2023-08-31 12:34:23 +02:00
Sören Weber
0dd4b34023
mermaid: lazy render graph if it is initially hidden #187
works now in initially collapsed expands and initially inactive tabs
2023-08-26 01:26:37 +02:00
Sören Weber
151c31e142
images: allow option to apply image effects globally #623 2023-08-25 19:09:50 +02:00
Sören Weber
ed1715d467
theme: support for colored borders between menu and content #626 2023-08-25 03:14:09 +02:00
Sören Weber
4abf992c85
openapi: update to swagger 5.4.1 #620 2023-08-17 17:43:45 +02:00
Sören Weber
cbfe2076cf
variant: typos #617 2023-08-13 13:17:42 +02:00
Sören Weber
b6708d693c
variant: signal variant switch as event #614 2023-08-12 23:11:21 +02:00
Sören Weber
5bebb7edd8
mermaid: update to 10.3.1 #610 2023-08-11 19:56:12 +02:00
Sören Weber
e837822172
mermaid: fix broken zoom since update to v10 #608 2023-08-07 23:32:38 +02:00
Sören Weber
3dada8b058
mermaid: variant generator diagram does not respond to events #607 2023-08-07 22:37:05 +02:00
Sören Weber
b2b527756b
mermaid: in doubt, set variants mermaid theme into yaml #603 #601 2023-08-05 14:10:41 +02:00
Sören Weber
a718c05324
mermaid: formatting #601 #603 2023-08-05 14:06:57 +02:00
Sören Weber
c41edc86e1
mermaid: make yaml parsing more robust #603 #601 2023-08-05 14:05:52 +02:00
Marcel Beck
cbd8fa2006 fix: only render yaml/directive block when it is not empty 2023-08-04 15:19:45 +02:00
Marcel Beck
eec16d3abe fix: set theme during rendering
Sankey diagram isn't using yaml/directive currently
2023-08-04 15:13:42 +02:00
Marcel Beck
6960d63ee0 style: fix style in theme.js 2023-07-28 21:21:06 +02:00
Marcel Beck
be45120c46 feat: use yaml instead of directive for new mermaid diagram types
mermaid is deprecating directives for new diagram types: https://github.com/mermaid-js/mermaid/issues/4630
2023-07-28 21:13:56 +02:00
Marcel Beck
88d03d4fc6 feat: update mermaid to 10.3.0
fixes: #601
2023-07-28 17:04:56 +02:00
Sören Weber
e44a96cb22
openapi: inherit RTL setting from Hugo content #600 2023-07-27 21:17:43 +02:00
Alex Norell
80c1b4e04e fix[openapi]: Exapnd to Expand 2023-07-26 21:48:48 +02:00
Sören Weber
83e403ea2e
highlight: add option for wrapping vs. scrolling #169 2023-06-22 01:22:08 +02:00
Sören Weber
73fdfb5ea6
highlight: to much simplification #169 2023-06-21 22:27:33 +02:00
Sören Weber
90db4823dc
highlight: simplify js implementation #169 2023-06-21 22:06:16 +02:00
Sören Weber
7a92d032e5
syntaxhighlight: allow for wrapping #569
- currently the only option until #169 is implemented
- also mandatory for printing
2023-06-16 21:13:59 +02:00
Sören Weber
d319d92d98
syntaxhighlight: fix behavior for noClasses=true #569 2023-06-15 23:17:27 +02:00
Sören Weber
c3015432e5
syntaxhighlight: improve if using highlight shortcode #569 2023-06-15 19:35:35 +02:00
Sören Weber
e77afd6b70
mermaid: allow for YAML frontmatter inside of graph #564 2023-06-09 21:45:57 +02:00
Sören Weber
59428415f2
Merge branch 'mermaid-front-matter-support' of https://github.com/takac/hugo-theme-relearn into takac-mermaid-front-matter-support 2023-06-09 20:36:28 +02:00
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
a135b2adb4
chore: update Mermaid to 10.2.0 #499 2023-05-24 20:25:13 +02:00
Sören Weber
36fefc833d
chore: update Mermaid to 9.4.3 #534 2023-05-23 15:17:23 +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
42fcbc3084
variant: make browser theme a css variable #494 2023-02-26 12:47:12 +01: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
0cc5ff2db6
variant: set color for perfect scrollbar #471 2023-02-10 17:03:18 +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
bc135b4b4c
generator: stop editing of Auto variant early to avoid console errors #445 2023-02-05 11:40:47 +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
bf79988c2c
browser: further IE11 patches #452 2023-02-04 16:29:55 +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