Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not render on gitbook - Jun 2017 #4

Open
pulkitsinghal opened this issue Jun 16, 2017 · 1 comment
Open

Does not render on gitbook - Jun 2017 #4

pulkitsinghal opened this issue Jun 16, 2017 · 1 comment

Comments

@pulkitsinghal
Copy link

pulkitsinghal commented Jun 16, 2017

I used this plugin here and it runs into the following errors according to chrome console:

sequence-diagram-min.js:6 Uncaught ReferenceError: Raphael is not defined
    at sequence-diagram-min.js:6
(anonymous) @ sequence-diagram-min.js:6

gitbook.js:2 Uncaught TypeError: diagram.drawSVG is not a function
    at HTMLElement.<anonymous> (sequence-diagram-min.js:6)
    ...

I found what may be clues here and here but not sure how to get to fixing this. Perhaps they will make more intuitive sense for the author of this gitbook wrapper/plugin?

@ghost
Copy link

ghost commented Jun 8, 2018

I fixed it in my GitBook installation by adding this file:

{% extends template.self %}

{% block head %}
    {{ super() }}
    <script src='//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js'></script>
{% endblock %}

Looks like the hook used here isn't working any more.

Source / Credits: denysdovhan/gitbook-plugin-rss@1db06df#diff-168726dbe96b3ce427e7fedce31bb0bc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant