Commit graph

361 commits

Author SHA1 Message Date
Sören Weber
deee4ae6b7
theme: fix flash of non-default variant, part II #757
adapt the variant generator to previous changes;
interestingly, the new mechanism caused the variant generator
to be greatly simplified; something, I didn't expect beforehand
2024-12-08 00:17:03 +01:00
Sören Weber
0505b36141
theme: fix flash of non-default variant, part I #757
implements the first part, working for configured variants;

for that, loading of stylesheets was overhauled by now
merging all configured variants into one big stylesheet for
each output format and loading this instead of one stylesheet
per configured variant;

previously @media print styles were applied on top of @media screen
styles; this is now strictly isolated, which doesn't require styles
like neon to revert styles for print anymore;

this change was also used to implement the minify parameter, to shrink
those generated stylesheets, making them shrink to 66% of their
unminified size for the exampleSite;

the theme switcher functionality is now completely independend of
variant.js; the switch is now handled by in-page javascript which
avoids waiting for external scripts to load, so switching can happen
as early as possible;

switching of themes is now implemented by just setting a data attribute
to the html element, were previously a complex mechanism of dynamically
loading of variant CSS files was implemented;

the call for variant.js was removed in this changeset, making the
generator broken and useless; this will be fixed with the next patch;
2024-12-06 07:38:05 +01:00
Sören Weber
25824cef5b
mermaid: print preview closes automatically after opening #959
Some checks failed
docs-build-deployment / Run deploy (push) Has been cancelled
docs-build / Run build (push) Has been cancelled
2024-12-04 20:10:25 +01:00
Sören Weber
bc369da06e
mermaid: update to 11.4.1 #951 2024-11-27 19:24:09 +01:00
Sören Weber
a36e20dad7
theme: changed prettier settings #947 2024-11-27 19:23:52 +01:00
Sören Weber
348702d8c2
theme: apply Prettier config #947 2024-11-15 23:38:25 +01:00
Sören Weber
9eec161dba
theme: replace font Work Sans with Roboto Flex #922 2024-10-11 16:47:22 +02:00
Sören Weber
24726ef4b0
search: index file rename #888 2024-10-11 16:45:34 +02:00
Sören Weber
b896794c80
highlight: remove additional newlines from code if copied from cursor selection #925 2024-10-11 16:16:28 +02:00
Sören Weber
550a6eeb92
mermaid: update to 11.1.0 #904 2024-09-02 17:48:55 +02:00
Sören Weber
28975d0dbf
mermaid: classDiagram breaks when using <<interface>> #895 2024-08-29 11:36:44 +02:00
Sören Weber
3a0ae52e61
arrownav: avoid rude event handling for form elements #887 2024-08-22 19:25:40 +02:00
Sören Weber
efa0a93fb7
anchor: add option to scroll into view #886 2024-08-22 18:33:27 +02:00
Sören Weber
83b1f27cb9
theme: support for GitHub styled alerts #885 2024-08-13 12:48:25 +02:00
Sören Weber
c3b567bb1c
math: update MathJax to 3.2.2 #880 2024-08-02 11:12:12 +02:00
Sören Weber
8f6356ecc5
openapi: update swagger-ui to 5.17.14 #879 2024-08-02 11:01:23 +02:00
Sören Weber
d65db880a3
mermaid: update to 10.9.1 #878 2024-08-02 10:54:29 +02:00
Sören Weber
1b2e139512
assetbuster: use asset buster for all resources #875 2024-07-04 08:23:54 +02:00
Sören Weber
bd3a4030fb
search: remove JSON outputformat for search index #846 2024-04-27 00:21:02 +02:00
Sören Weber
625ca2d45a
variant: remove themeVariantModifier artifact #831 2024-04-19 22:40:45 +02:00
Sören Weber
ca0db4d815
variant: remove unnecessary themeVariantModifier option #831 2024-04-19 00:03:45 +02:00
Sören Weber
e952e148fc
theme: end support for Internet Explorer 11 #584 2024-04-18 23:32:19 +02:00
Sören Weber
77ed3f431a
theme: fixing typos #581 2024-04-12 17:30:31 +02:00
Sören Weber
7ee2023bff
print: make it nice #822
now the user can use <mark> aswell as the theme, when marking search results in the page;
to only print users <mark> with color, we had to adjust the serach highlighting
2024-04-05 00:22:12 +02:00
Sören Weber
2c8cf85ea1
a11y: improve search box #821 2024-04-04 17:49:28 +02:00
Sören Weber
bd49d54aa2
scrollbar: another day, another try #808 2024-04-02 20:31:53 +02:00
Sören Weber
aa949164ae
scrollbar: scroll bar in side menu gets stuck in dragged state on mobile #808 2024-03-30 00:33:51 +01:00
Sören Weber
0c4bee9adb
nav: scroll to prev/next heading using keyboard shortcut #819 2024-03-29 21:09:03 +01:00
Sören Weber
c5ca529817
[theme] introduce relBaseUri #813 2024-03-18 21:58:53 +01:00
Sören Weber
94ce982039
[theme] rename baseUriFull to absBaseUri #813 2024-03-18 21:58:26 +01:00
Sören Weber
5f40e57d17
[theme] rename baseUri to relBasePath #813 2024-03-18 21:56:21 +01:00
Sören Weber
a3c4d72125
[theme] cleanup distration #813 2024-03-18 21:49:45 +01:00
Sören Weber
bd94fe6b81
generator: fix mermaid zoom after #795 2024-03-17 01:45:14 +01:00
Sören Weber
f1c8e5c79d
mermaid: show reset button after pan #807 2024-03-17 01:09:46 +01:00
Sören Weber
ec5dde6442
openapi: better error message on failed parsing #806 2024-03-17 00:55:37 +01:00
Sören Weber
aa97395407
openapi: yaml support for file:// protocol #806 2024-03-17 00:47:48 +01:00
Sören Weber
b18bca9172
openapi: make it run for file:// protocol #806 2024-03-17 00:27:38 +01:00
Sören Weber
628d6070c0
openapi: there's a small fire buring in hell #804 2024-03-16 21:23:31 +01:00
Sören Weber
d0cc34396d
openapi: next try #804
Hugo's making me angry
2024-03-16 18:40:06 +01:00
Sören Weber
4da0ebbaf8
openapi: finally fixing url sh..tuff? #804 2024-03-16 14:53:15 +01:00
Sören Weber
17b38325c4
variant: fix generator after #795 2024-03-16 14:14:01 +01:00
Sören Weber
f76f75b57b
openapi: remove / from the end of baseUri & friends #804 2024-03-16 13:39:30 +01:00
Sören Weber
131b3a9a01
openapi: fix theme switch #804 2024-03-16 12:56:56 +01:00
Sören Weber
dc6524200d
nav: browser back navigation does not jump to the correct position #509 2024-03-16 01:14:42 +01:00
Sören Weber
91752cc6b2
theme: support full page width #752 2024-03-11 23:52:26 +01:00
Sören Weber
b624b71af5
openapi: update swagger-ui to 5.11.10 #798 2024-03-11 22:04:43 +01:00
Sören Weber
33ec4422e7
mermaid: update to 10.9.0 #797 2024-03-11 21:56:35 +01:00
Sören Weber
74b9aaaeed
mermaid: let it behave like block level element #795 2024-03-11 21:37:55 +01:00
Sören Weber
c557b051f7
clipboard: fix broken style if block code is in table #790 2024-03-04 20:19:43 +01:00
Sören Weber
4bc5529bc8
theme: compatiblity for output format with Hugo 0.123 #771 2024-02-10 23:22:35 +01:00