Skip to content

xyy94813/github-pages-mermaid-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-pages-mermaid-plugin

For support mermaid in gh-pages

How to use?

Add follow tmplate in _includes/head-custom.html.

It depends on your Jekyll theme.

If you don't use Jekyll with GH Pages, You should find the best way with your Site generator.

<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/github-pages-mermaid-plugin@1/libs/gh-pages-mermaid.mjs"
  defer
></script>

Note!!!

All code write with ESNext, the plugin not working in lower verion browser.

The cost of building, compiling and publishing is too high and will not be considered at this stage.

TODO

  • custom config by the query of import.meta.url

About

For support mermaid in gh-pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published