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

Liquid syntax error: Unknown tag 'mermaid' #12

Open
ManuelSchneid3r opened this issue Jun 5, 2020 · 6 comments
Open

Liquid syntax error: Unknown tag 'mermaid' #12

ManuelSchneid3r opened this issue Jun 5, 2020 · 6 comments

Comments

@ManuelSchneid3r
Copy link

ManuelSchneid3r commented Jun 5, 2020

https://travis-ci.org/github/albertlauncher/documentation
I build a page containing mermaid code using jekyll on travis. Afaik I set everything up as defined in the docs. However it is failing. What am I doing wrong?

Error:

  Liquid Exception: Liquid syntax error (line 28): Unknown tag 'mermaid' in /home/travis/build/albertlauncher/documentation/src/_docs/extensions/python.md
                    ------------------------------------------------
      Jekyll 4.1.0   Please append `--trace` to the `build` command 
                     for any additional information or backtrace. 
                    ------------------------------------------------
The command "jekyll build -s src -d ./site  && htmlproofer ./site" exited with 1.

Travis config

os: linux
dist: xenial
language: ruby

install: gem install jekyll html-proofer jekyll-mermaid

addons:
  apt:
    packages:
      - libcurl4-openssl-dev  # Avoid ssl errors

script: jekyll build -s src -d ./site  && htmlproofer ./site

deploy:
  provider: script
  skip_cleanup: true
  on:
    branch: master
  script: ./deploy.sh

jekyll config

title: Albert
email: [email protected]
description: > # this means to ignore newlines until "baseurl:"
  Write an awesome description for your new site here. You can edit this
  line in _config.yml. It will appear in your document head meta (for
  Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: https://albertlauncher.github.io
github_username:  manuelschneid3r
repository: https://github.com/albertlauncher/albert.git
exclude: [vendor]

collections:
  docs:
    output: true

gems:
- jekyll-mermaid
@siriobalmelli
Copy link

Had the same issue, this fixed it for me: #7 (comment)

@ManuelSchneid3r
Copy link
Author

@siriobalmelli what is this gemfile? sorry if dumb. i know nothing about ruby. just unsing jekyll.

@siriobalmelli
Copy link

@ManuelSchneid3r I'm not an expert either ... but you probably have a gemfile in the top level of your Jekyll project, with a list of gems (ruby packages) that are used by the project.

@ManuelSchneid3r
Copy link
Author

There are no gemfiles. I listed the gems in the jekyll config. See the repo.

@ManuelSchneid3r
Copy link
Author

ManuelSchneid3r commented Nov 19, 2020

Okay meanwhile I switched to docker hubs jekyll/jekyll. I have the Gemfile in the root dir. I have jekyll-mermaid installed therefore.

Gemfile:

source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "jekyll"
gem "jekyll-mermaid"

In the _config.yml I have

gems:
- jekyll-mermaid

Still no graphs

@svrooij
Copy link

svrooij commented Apr 1, 2021

Why don't you just include the html in the markdown file like I do here resulting in the page https://svrooij.io/2021/04/01/generate-flows-from-markdown/

Jekyll doesn't really need the plugin to just show the graphs in Github Pages.

Edit: I dit try this plugin first (because it looked like a better way), as you can see in this commit svrooij/svrooij.github.io@1deca4e#diff-a97461fa07cf302d473cb040035aca0322d9bbbde0e3c99ac39140094884f9a9

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

3 participants