Closed lin1005q closed 6 years ago
在站点的_config.yml
中修改库应用的地址。
@mickeyouyou 能给看一下咋配置的吗?换成国内的了还是不行
在readme里面也说了,在你的站点配置文件_config.yml中,新增以下配置项:
sequence:
# webfont: # optional, the source url of webfontloader.js
# snap: # optional, the source url of snap.svg.js
# underscore: # optional, the source url of underscore.js
# sequence: # optional, the source url of sequence-diagram.js
# css: # optional, the url for css, such as hand drawn theme
options:
theme:
css_class:
然后它将会被合并到配置中:
{
"webfont": "https://cdnjs.cloudflare.com/ajax/libs/webfont/1.6.27/webfontloader.js",
"snap": "https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.4.1/snap.svg-min.js",
"underscore": "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js",
"sequence": "https://cdnjs.cloudflare.com/ajax/libs/js-sequence-diagrams/1.0.6/sequence-diagram-min.js",
"style": "",
"options": {
"theme": "simple",
"css_class": ""
}
}
I was making blog using hexo and hueman theme.
I had same issue.
So I opened node module folder. I found the problem. I guess sequence-diagram seems to need Raphael library.
Do you have an advice?
sequence-diagram.js:792 Uncaught ReferenceError: Raphael is not defined at sequence-diagram.js:792 at sequence-diagram.js:1468 (anonymous) @ sequence-diagram.js:792 (anonymous) @ sequence-diagram.js:1468 (index):198 Uncaught ReferenceError: Diagram is not defined at (index):198
我也是没有办法显示,解决了吗?
@nighter233 没再使用此插件了.....
没再使用此插件了
有什么插件可以替代吗
https://stackedit.io/app 在使用在线编辑器
f12报错 Uncaught ReferenceError: Raphael is not defined at sequence-diagram.js:792 at sequence-diagram.js:1468 (anonymous) @ sequence-diagram.js:792 (anonymous) @ sequence-diagram.js:1468 (index):90 Uncaught ReferenceError: Diagram is not defined at (index):90
我看到使用了jq(google的) 怎么能自定义给搞成国内的