Skip to content

Commit 971979c

Browse files
committed
Added graphviz to techdocs generate cli
1 parent 9fd4c98 commit 971979c

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/update_techdocs.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ concurrency:
1515
jobs:
1616
publish-techdocs-site:
1717
runs-on: ubuntu-latest
18+
env:
19+
PUPPETEER_EXECUTABLE_PATH: /usr/bin/chromium
1820
steps:
1921
- name: Checkout
2022
uses: actions/checkout@v4
@@ -27,13 +29,30 @@ jobs:
2729
with:
2830
python-version: '3.9'
2931

32+
- name: setup java
33+
uses: actions/setup-java@v3
34+
with:
35+
distribution: 'zulu'
36+
java-version: '11'
37+
38+
- name: download, validate, install plantuml and its dependencies
39+
run: |
40+
curl -o plantuml.jar -L http://sourceforge.net/projects/plantuml/files/plantuml.1.2021.4.jar/download
41+
echo "be498123d20eaea95a94b174d770ef94adfdca18 plantuml.jar" | sha1sum -c -
42+
mv plantuml.jar /opt/plantuml.jar
43+
mkdir -p "$HOME/.local/bin"
44+
echo $'#!/bin/sh\n\njava -jar '/opt/plantuml.jar' ${@}' >> "$HOME/.local/bin/plantuml"
45+
chmod +x "$HOME/.local/bin/plantuml"
46+
echo "$HOME/.local/bin" >> $GITHUB_PATH
47+
sudo apt-get install -y graphviz
48+
3049
- name: Install techdocs-cli
3150
run: sudo npm install -g @techdocs/cli
3251

3352
- name: Install mkdocs and mkdocs plugins
3453
run: |
3554
python -m pip install \
36-
mkdocs-techdocs-core==1.5.2\
55+
mkdocs-techdocs-core==1.5.2 \
3756
markdown-inline-mermaid==1.0.4 \
3857
mkdocs-mermaid2-plugin==1.2.1 \
3958
mkdocs-macros-plugin==1.3.7

0 commit comments

Comments
 (0)