github-pages-mermaid-plugin

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i github-pages-mermaid-plugin

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

6 kB

Total Files

5

Last publish

Collaborators

  • xyy94813