Comments (4)
My apologies - but I don't have time to go through the entire chain. Do you have a minimal example with a failure that can be easily reproduced?
Superficially, you can check if you're able to run with the docker image locally. mermaid filter saves generated png in /tmp
and in your case, it says the generated file isn't found. For all I know, Gitlab might be doing something dfiferent.
from mermaid-filter.
My apologies - but I don't have time to go through the entire chain. Do you have a minimal example with a failure that can be easily reproduced?
To reproduce the error, you just need to fork my project, which has only 2-3 files (Dockerfile, GitLab CI/CD & README). The text that follows simply explains where I grabbed these lines, and my modifications to their files (mainly to simply things/correct execution errors).
Superficially, you can check if you're able to run with the docker image locally.
Lemme do that tonight when I've got WiFi.
from mermaid-filter.
For self-reference: Tested locally. mmdc
doesn't work on my machine, and that seems to be a compatibility problem between Chromium & https://github.com/puppeteer/puppeteer/releases/tag/v5.2.1. The latest version for Alpine is still 84.0.4147.135-r0 from https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium. Here's the guide from the node.js package: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-on-alpine.
from mermaid-filter.
I've finally managed to get this work on GitLab CI.
✔️ Construction of the Docker image registry.gitlab.com/vincenttam/pandoc-mermaid-docker:96d2cc19d0572f1fc9b973cbb8882cfa4975a28c
✔️ Compilation of my sample README.md
The keys are
- choosing the right version of Puppeteer & Chromium browser to install
- finding a good config file from GitHub code search
from mermaid-filter.
Related Issues (20)
- can we place nodes relative to each other? HOT 1
- Publishing a new NPM release HOT 1
- Please upgrade to mermaid-cli v9 HOT 4
- Allow embedding `svg` directly into the HTML document HOT 1
- DeprecationWarning: Buffer() is deprecated
- Google slides fail to show mermaid images embeded on pptx using mermaid-filter HOT 1
- Need to install librsvg on Mac to use SVG format HOT 1
- fantastic news, sequenceDiagram working with Chinese characters too.
- Mermaid Ink Save Path Option
- I am having trouble getting the filter to work HOT 1
- [Feature request/minor bug] Allow mermaid-filter to work with Bun? HOT 1
- internal syntax error HOT 1
- Hidden graph nodes
- After fresh install, it does not work HOT 3
- pandoc-crossref cannot recognize fig id of mermaid HOT 1
- npm WARN deprecated [email protected]: < 21.5.0 is no longer supported HOT 1
- Set meta-data from command-line? HOT 1
- PNG width not working
- fontawesome not working in SVG
- Need some help with this please HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mermaid-filter.