Since a while, Hugo has its own mechanism for code highlightning.
We remove the old highlightning code provided by the client-side javascript library highlight.js and all its related files.
This also solves issues introduced by Hugos own highlightning because in our theme we are currently highlighting the code twice leading to unpredictiable results.
This will also fix an issue were light code highlightning themes weren't displayed correctly because our styles are overwriting color information.
Another advantage is the huge list of supported languages which by far exceeds our current list.
On the downside, this is a breaking change because our current color theme isn't supported by Hugo.
Copy to clipboard has a lot of smaller issues:
- contrast for inline code is bad in notice boxes
- bordering the icon does not work well with bordering of inline code
- hover color on inline code icon is blurred
- hover color on block code is statically set to link color of standard theme
And related to that:
- tooltip misses outline border, especially when displayed over dark background (like block code)
- inline code font size is sized by factor of parent font size, which is a hassle if you want to replicate the size for other elements
* enabled mermaid by default
* implemented logic to use internal oder cdn mermaid
* added english documentation
* added french translation for the mermaid options
* Removed useless test print
* Hugo does not use upper case letters in params
* fixed false sample link
* improved mermaid pages
* fixed always load mermaid if no frontmatter specified
* applied 3 new params to default config
* Implemented Home Button logic
* Applied default style
* applied same landingpage ref to logo partials
* added sample image, how the button will looks like
* added en documentation on how to configure the button
* translated home button configuration to french via deepl
* applied home button style to theme variants
* set button disabled by default
* fixed mermaid samples
* removed obsolete css files
* changed default version of mermaid cdn
* renamed mermaidURL to customMermaidURL and removed css link
* improved mermaid configuration description
Co-authored-by: Arthur Ferdinand Lindner <Arthur-Ferdinand.Lindner@Telekom.de>
Co-authored-by: Arthur Ferdinand Lindner <arthur.lindner@outlook.de>
All changes only apply to printing:
- Remove stickiness from header to avoid it been printed on every page
- Print breadcrumbs to header regardless of width
- Header and footer are now divided by a horizontal line from content
- Hamburger menu, toc button and github button/text are now hidden from header
- if toc is displayed on hover in screen mode, hide it if switched to printing
in print this will add additional ending space and may cause
to add unnecessary empty pages at the end
it also does not provide real value in screen mode
* enabled mermaid by default
* implemented logic to use internal oder cdn mermaid
* added english documentation
* added french translation for the mermaid options
* Removed useless test print
* Hugo does not use upper case letters in params
* fixed false sample link
* improved mermaid pages
* fixed always load mermaid if no frontmatter specified
* fixed mermaid samples
* removed obsolete css files
* changed default version of mermaid cdn
* renamed mermaidURL to customMermaidURL and removed css link
* improved mermaid configuration description
Co-authored-by: Arthur Ferdinand Lindner <Arthur-Ferdinand.Lindner@Telekom.de>
Co-authored-by: Arthur Ferdinand Lindner <arthur.lindner@outlook.de>
* Upgrade mermaid-js/mermaid @ 0918b97
* Update exampleSite with new mermaid graph (stateDiagram-v2) example
* Update content of mermaid.js with officially distributed v8.8.0 minified version