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

What are the requirements ? #10

Closed
biowan opened this issue Dec 1, 2014 · 8 comments
Closed

What are the requirements ? #10

biowan opened this issue Dec 1, 2014 · 8 comments

Comments

@biowan
Copy link

biowan commented Dec 1, 2014

Hi,

I just made a simple test with sample on the homepage and I cannot get diagram. Without svg tag, I get the diagram definitin text, with svg tag, the page in entier empty. What is needed to use Mermaid ?

Thanks for your help.

My simple test

<html>
<head>
<title>Test Mermaid</title>
<script src="mermaid.full.min.js"></script>
</head>
<body>

<div class="mermaid">
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
</div>
</body>
</html>
@biowan biowan closed this as completed Dec 1, 2014
@biowan biowan reopened this Dec 1, 2014
@knsv
Copy link
Collaborator

knsv commented Dec 1, 2014

Can this link maybe help?
http://www.sveido.com/mermaid/simpleExample.html

@biowan
Copy link
Author

biowan commented Dec 1, 2014

Oh ! Something is maybe wrong on my server ...
Thanks for your reply knsv, I used the src of your script tag and it's working <script src="http://www.sveido.com/mermaid/dist/mermaid.full.js"></script>, but not with the downloaded local .js file (full.min.js and full.js)

@knsv
Copy link
Collaborator

knsv commented Dec 1, 2014

Ok good that works! Might be a problem with the release. Could you please run mermaid.version() in your javascript console. If it is not 0.2.8 try to update and see if the problem is resolved.

@biowan
Copy link
Author

biowan commented Dec 1, 2014

Mmmm, maybe there is a problem to init the mermaid object. I get error ReferenceError: mermaid is not defined :'(

@biowan
Copy link
Author

biowan commented Dec 1, 2014

I think the problem is finally from my apache server. Because I get "NetworkError: 403 Forbidden - http://localhost/mermaid/mermaid.full.js". I must spend my time first to check it. Don't spend time in your side. I tell you more later. Thanks for your help. :)

@knsv
Copy link
Collaborator

knsv commented Dec 1, 2014

Np!

@biowan
Copy link
Author

biowan commented Dec 1, 2014

Ha ha ha, too bad myself. So sorry. The problem is from the file access. It was 640 and it must be 644 to be readable by Apache. It's working now. The version is 0.2.6 with my full.js.

@biowan
Copy link
Author

biowan commented Dec 1, 2014

So many thanks, I closed the issu. All the way, good job for this script. Really nice ! :D

@biowan biowan closed this as completed Dec 1, 2014
knsv pushed a commit that referenced this issue Jan 5, 2020
mgenereu referenced this issue in mgenereu/mermaid Jun 25, 2022
mgenereu referenced this issue in mgenereu/mermaid Jun 25, 2022
mgenereu referenced this issue in mgenereu/mermaid Jun 25, 2022
…ditor into clipboard

* 'master' of https://github.com/mermaid-js/mermaid-live-editor:
  Conflict resolution
  Remove npm files.
  Apply suggestions from code review
  Change default Writable type
  Responsive editors. Fixes #10
  Fix the problem that the use of br tag causes image export failure
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

2 participants