jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
605 stars 63 forks source link

Spaceship with "Minimal Mistake" theme #64

Open catalinnick opened 2 years ago

catalinnick commented 2 years ago

Hello, I've forked Academic Pages Repo and wanted to use diagrams. I have added your gem in the gemfile and config.yml:

# If you have any plugins, put them here!
group :jekyll_plugins do
  # gem "jekyll-archives"
  gem "jekyll-feed"
  gem "jekyll-sitemap"
  gem "hawkins"
  gem 'jekyll-spaceship'
  # gem "jekyll-mermaid"
end

gemfile

# Plugins
plugins:
  # - jekyll-paginate
  - jekyll-sitemap
  - jekyll-gist
  - jekyll-feed
  - jekyll-redirect-from
  - jekyll-spaceship
# mimic GitHub Pages with --safe
whitelist:
  # - jekyll-paginate
  - jekyll-sitemap
  - jekyll-gist
  - jekyll-feed
  - jemoji
  - jekyll-spaceship

config.yml

But I haven't manage to render the mermaid diagram:

```mermaid!
pie title Pets adopted by volunteers
  "Dogs" : 386
  "Cats" : 85
  "Rats" : 35

Perhaps I'm missing some key elements, I'm quite new to Gh-pages with jekyll.

jeffreytse commented 2 years ago

Hi @catalinnick

Because GitHub Page has limitation, please see here, you should use a GitHub Action to settle your issue.

Thanks and Regards

catalinnick commented 2 years ago

Hi @jeffreytse I've been trying for days and week and still can't use mermaid, I don't know what key element I'm missing: I used your theme with TravisCI in hopes will work but when I use the following code:

```mermaid!
pie title Pets adopted by volunteers
  "Dogs" : 386
  "Cats" : 85
  "Rats" : 35

Still doesn't render: image

Do I need to declare something at the begging of .md page.