Commit graph

1789 commits

Author SHA1 Message Date
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
Sören Weber
ab67fcc80e
test: modularize config 2023-06-09 20:28:03 +02:00
Sören Weber
03b7ae392a
test: mute verbose output 2023-06-09 15:15:31 +02:00
Sören Weber
f3c1badb80
test: fix version detection 2023-06-09 15:08:50 +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
35a4fd83ef
alias: fix redirect URLs in case of empty BaseURL #562 2023-06-09 11:11:18 +02:00
GitHub Actions Bot
e3ac6efd7c Mark non-release version 2023-06-08 16:04:10 +00:00
GitHub Actions Bot
e216d4614c Ship tag 5.16.0 2023-06-08 16:04:01 +00:00
Sören Weber
2f010f3944
test: add file list 2023-06-08 17:59:03 +02:00
Sören Weber
aaa25e1322
docs: restore favicon on publish 2023-06-08 17:16:28 +02: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
Sören Weber
cef256eb40
tabs: allow codified tabs to be colored #550 2023-06-08 14:53:22 +02:00
Sören Weber
0a3662be61
tabs: increase contrast for non selected tab handles #550
and make default style darkish grey similar to other shortcodes
2023-06-08 14:36:28 +02:00
Sören Weber
310df3425f
icon: remove whitespace on start #560 2023-06-08 13:36:12 +02:00
Sören Weber
746e2e7d91
docs: simplify relref migration and fix it for fragments 2023-06-08 10:57:00 +02:00
Sören Weber
27d11a1c72
frontmatter: add new shortcode parameter #550 #551 2023-06-08 00:13:19 +02:00
Sören Weber
619e8846d4
docs: fine tuning 2023-06-08 00:10:37 +02:00
Sören Weber
f52639c9df
tab: format correctly when called as partial #550 2023-06-07 21:04:47 +02:00
Sören Weber
a5e6a30493
tabs: fix neon style #550 2023-06-07 20:17:17 +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
822a913e83
tabs: fix borders for high dpi screens #550 2023-06-07 18:41:16 +02:00
Sören Weber
228ab819b9
docs: clarification 2023-06-06 20:38:50 +02:00
Sören Weber
7273ee75a7
docs: clarification 2023-06-06 20:35:03 +02:00
Sören Weber
9952cfb2da
tabs: fix issues with FF :has() selector #551 2023-06-06 20:29:02 +02:00
Sören Weber
a79f81322a
tabs: add title and icon option #552 2023-06-06 19:54:12 +02:00
Sören Weber
f50c362c8e
tabs: adjust tab handle styling #550 2023-06-06 18:15:08 +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
d39c0fb402
favicon: add light & dark option for OS's prefered color scheme #549 2023-06-06 01:36:37 +02:00
Sören Weber
cba1d38595
favicon: indention #549 2023-06-06 00:48:55 +02:00
Troy Lindsay
b705e0bde4 Loop through favicon types for selection
* https://github.com/McShelby/hugo-theme-relearn/pull/553#discussion_r1213705852
2023-06-06 00:37:57 +02:00
Troy Lindsay
4548d0162d Add light & dark theme SVG favicon option docs
* #549
2023-06-06 00:37:57 +02:00
Troy Lindsay
ad0378ae8f Add light & dark theme SVG favicon option
* #549
2023-06-06 00:37:57 +02:00
Sören Weber
9dc450a069
docs: add docs for new tab parameter #550 2023-06-06 00:31:57 +02:00
Sören Weber
84a884e353
docs: remove tabs deprecation warning #550 2023-06-05 23:20:37 +02:00
Sören Weber
d68a80d1d4
tabs: support color options #550 2023-06-05 23:18:12 +02:00
Sören Weber
aea9a54a08
tabs: colors for each tab in a set #550 2023-06-05 18:31:55 +02:00
Sören Weber
df37463789
expand: avoid superflous margin at start and end of content #558 2023-06-05 08:43:51 +02:00
Sören Weber
61776a070f
tabs: more visula clue for selected tab #550 2023-06-05 08:37:50 +02:00
Sören Weber
91fa8fc403
tabs: fix neon variant after revamp #550 2023-06-05 00:46:34 +02:00
Sören Weber
013dcc0ba7
variant: move color-dependend properties 2023-06-05 00:41:14 +02:00
Sören Weber
911ec6fa86
tabs: revamp for color options support #550 2023-06-05 00:27:51 +02:00
Sören Weber
5ca1c4c5f0
shortcodes: avoid superflous margin at start and end of content #558 2023-06-05 00:24:14 +02:00
Sören Weber
30b23b9213
tab: make new shortcode work with goldmark unsafe=true 2023-06-04 00:19:50 +02:00
Sören Weber
2b516acac2
shortcodes: revert to old syntax for most shortcodes #547 #555 2023-06-04 00:18:16 +02:00
Sören Weber
ec134fa041
docs: replace markdownify by .RenderString #555 2023-06-03 23:50:46 +02:00
Sören Weber
0d8e0e3209
button: revert to old syntax for most shortcodes #547 #555 2023-06-03 23:43:30 +02:00
Sören Weber
a51cd5fe61
footnotes: revert to old syntax for most shortcodes #547 #555
complete
2023-06-03 23:10:32 +02:00
Sören Weber
ea59244858
footnotes: revert to old syntax for most shortcodes #547 #555
only keep new syntax for shortcodes in case its content may contain footnotes,
meaning block level Markdown
2023-06-03 22:58:23 +02:00