#Mermaid in techdocs

6 messages · Page 1 of 1 (latest)

hollow plover
#

Hi,

When I make mkdocs serve mermaid graphs are well rendered:

but not in backstage.
I have setup the generator in 'local'.

Do you know where it can be from ?

past mason
#

I got Mermaid working w/o kroki too using a local generator by adding techdocs-core to the Dockerfile:

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
    --mount=type=cache,target=/var/lib/apt,sharing=locked \
    apt-get update && \
    apt-get install -y --no-install-recommends python3 python3-pip python3-venv g++ build-essential && \
    python3 -m venv $VIRTUAL_ENV && \
    pip3 install mkdocs-techdocs-core && \
    yarn config set python $VIRTUAL_ENV/bin/python3
#

not recommending local generator but works like this too

past mason
#

sorry I realised I also added backstage-plugin-techdocs-addon-mermaid.