Commit graph

629 commits

Author SHA1 Message Date
Sören Weber
b2e841caaa
Merge branch 'nexeck-main' 2023-08-05 14:35:18 +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
Sören Weber
9a331d4378
print: avoid chroma leak for relearn-dark #605 2023-07-31 23:48:58 +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
Sören Weber
75d2bae3d6
highlight: fix position of copy-to-clipboard button in LTR #594 2023-07-26 22:40:54 +02:00
Alex Norell
80c1b4e04e fix[openapi]: Exapnd to Expand 2023-07-26 21:48:48 +02:00
Sören Weber
9c72a05c17
button: fix focus and text decoration #577 2023-07-26 21:32:17 +02:00
Sören Weber
3fbf35add8
toc: add text decoration #577 2023-07-26 21:18:49 +02:00
Sören Weber
29dd162698
button: remove text decoration #577 2023-07-26 21:18:23 +02:00
Sören Weber
125fedf4b7
expand: no outline, a text decoration is enough #577 2023-07-26 21:04:38 +02:00
Sören Weber
914c2a9da4
#theme: fix links in nav and menu on hover #577 2023-06-28 23:45:00 +02:00
Sören Weber
82ef4ff5c5
mermaid: remove runtime styles for print #577 2023-06-28 23:43:20 +02:00
Sören Weber
3c0e4c0a12
expand: remove slide effect on hover and add outline #577 2023-06-28 23:11:35 +02:00
Sören Weber
1381995bac
button: fix visuals #577 2023-06-28 22:13:16 +02:00
Sören Weber
f88ed671eb
a11y: fix search button offset #581 2023-06-28 20:22:56 +02:00
Sören Weber
8fd3f79c9a
a11y: improve "clear search" button #581 2023-06-28 20:17:29 +02:00
Sören Weber
c69c5890a9
a11y: outline color for menu controls #581 2023-06-28 19:21:41 +02:00
Sören Weber
75cdd546e0
a11y: improve outline style for menu controls #581 2023-06-28 18:32:30 +02:00
Sören Weber
277340e491
theme: remove link underline in menu #577 2023-06-23 12:39:51 +02:00
Sören Weber
63928e5a91
theme: improve display of links #577 2023-06-23 11:50:29 +02:00
Sören Weber
29be027dbf
highlight: disable block code copy-to-clipboard button in print #574 2023-06-22 18:59:16 +02:00
Sören Weber
9d72658a43
highlight: make copy to clipboard only appear on hover #574 2023-06-22 18:42:43 +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
05e33f051b
syntaxhighlight: trim highlight color for relearn-light #569 2023-06-17 10:23:07 +02:00
Sören Weber
ca6965b843
syntaxhighlight: adjust highlighted line color #569 2023-06-17 00:37:44 +02:00
Sören Weber
2be07f6871
syntaxhiglight: adjust for background #569 2023-06-17 00:36:51 +02:00
Sören Weber
e1b2388a18
syntaxhighlight: fix table background on overflow #569 2023-06-16 22:53:18 +02:00
Sören Weber
74e31cae1a
syntaxhighlight: move everything closer together in highlight table lineno mode #569 2023-06-16 22:29:35 +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
d62e47ff90
theme: slightly separate 'More' caption from menu 2023-06-16 00:16:09 +02:00
Sören Weber
739f7fc02a
variant: reduce 'More' contrast to adjust with relearn-bright variant 2023-06-15 23:55:45 +02:00
Sören Weber
d319d92d98
syntaxhighlight: fix behavior for noClasses=true #569 2023-06-15 23:17:27 +02:00
Sören Weber
5218972b06
syntaxhighlight: fix borders using highlight shortcode #569 2023-06-15 21:57:08 +02:00
Sören Weber
c3015432e5
syntaxhighlight: improve if using highlight shortcode #569 2023-06-15 19:35:35 +02:00
Sören Weber
25a2358096
theme: revamp 404 page #566 2023-06-10 13:56:58 +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
efce383939
tabs: decrease contrast for tabs title #550 2023-06-08 15:23:55 +02:00
Sören Weber
d86973ae01
tabs: further tweaking of default color #550 2023-06-08 15:11:51 +02:00