Eric Chen

Results 84 comments of Eric Chen

For now, mermaid SSR needs to run a browser instance or use online services. Many remark plugins can do that: https://www.npmjs.com/search?ranking=maintenance&q=remark%20mermaid You can integrate one of them into the docusaurus....

In my case, I make a remark plugin to using directive `:docusaurus-doc-card-list` to make `` work in docusaurus v3 CommonMark mode. Maybe all the features can be landing as directive.

Thanks Docusaurus 3.0, now is easy to doing this by create a remark plugins: https://github.com/show-docs/remark-docusaurus/blob/722fbfd7eefe48ebce280ae137a71f9973d00578/lib/draft-admonition.mjs

Without limitation, the line chart in the slider will easily look like a `straight line` (when a few points are too big or too small) ![image](https://user-images.githubusercontent.com/12206891/155287989-c7a13a21-8f25-4a26-9c65-7296bca012ed.png)

scss文件必须使用scss语法,不能用sass语法。先检查代码

看起来应该是用 loader 实现的,估计官方不会集成,因为一般更倾向于使用 `if (process.env.XXX) { ... }` 或者 http://megalojs.org/#/api/megalo-api?id=megaloenv_type 你想实现的话改一下webpack配置就行了: https://www.npmjs.com/search?q=ifdef%20webpack

npm 和 yarn 玩的不够多,锁版本的问题而已,方法很多。yarn resolutions 或 yarn upgrade 可以试试。

这个写法是不对的, 请看 webpack-chain 的文档

It will be useful when using d2 by API or online services like , please consider it.