gethyas / doks

Everything you need to build a stellar documentation website. Fast, accessible, and easy to use.
https://getdoks.org
MIT License
1.99k stars 352 forks source link

Mermaid / Kate import error #1132

Closed jollydodo closed 5 months ago

jollydodo commented 7 months ago

I'm getting similar issues to this: https://github.com/gethyas/doks/issues/560

Steps te replicate: System: Mac OS Ventura 13.1

JSBUILD: failed to transform "js/mermaid.js" (text/javascript): "/development/github/fablab-docs/node_modules/@hyas/doks-core/assets/js/mermaid.js:1:20": Could not resolve "mermaid"

I get the same error (but then with katex) when enabling katex in the params.toml.

A fresh clone on a windows machine gives me the same errors when trying to use mermaid in a markdown file and then trying to build.

Environment:

{ 'fablab-docs': '0.0.0', npm: '9.6.4', node: '20.0.0', acorn: '8.8.2', ada: '2.0.0', ares: '1.19.0', brotli: '1.0.9', cldr: '42.0', icu: '72.1', llhttp: '8.1.0', modules: '115', napi: '8', nghttp2: '1.52.0', openssl: '1.1.1t', simdutf: '3.2.7', tz: '2022e', undici: '5.21.0', unicode: '15.0', uv: '1.44.2', uvwasi: '0.0.16', v8: '11.3.244.4-node.3', zlib: '1.2.11' } (fablab_docs) niels@MBP-van-Niels fablab-docs % hugo version hugo v0.101.0+extended darwin/arm64 BuildDate=unknown

jollydodo commented 6 months ago

Katex was fixed by switching to the Math API in a new Hyas version. Mermaid unfortunately still has the same problem.

h-enk commented 5 months ago

Mermaid is supported with Doks v1.2.0 using the free Kroki service.