Skip to content

Conversation

@lukdog
Copy link
Member

@lukdog lukdog commented Jan 7, 2026

What This PR Changes

I'm adding the possibility to render datasheets also on Mac.

I'm adding two different possibilities:

  • Using a new script that is running on Mac
  • Using Docker

How to use the script for Mac

You have to install brew and a recent version of Node.
Google Chrome is needed (it is possible to use also other Chromium Base browsers like edge)

Firs of All you need to install deps:

brew install fontconfig

then you can go in scripts/datasheets-rendering/ folder and simply run:

source mac-render.sh

You can check if the Google Chrome path configured insider the mac-render.sh script is correctly set (You need to update it if you want to use Edge or others)

export PUPPETEER_EXECUTABLE_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"

How to use Docker

You have to install Docker or similar.
Then from a terminal you have to build the image so from the scripts/datasheets-rendering/

docker build -t datasheet-gen . 

and then from the root of this project

docker run --rm -v "$(pwd):/app" datasheet-gen

Contribution Guidelines

@lukdog lukdog requested a review from jhansson-ard January 7, 2026 12:07
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

Successfully merging this pull request may close these issues.

1 participant