Skip to content

Commit ef489e7

Browse files
committed
ci: desparate attempts to make mermaid/mmdc work again
1 parent e3c6ef8 commit ef489e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docs.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ jobs:
8282
- name: 🏗 Install mermaid-cli
8383
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
8484
run: |
85-
npm install @mermaid-js/mermaid-cli
85+
npm install -g @mermaid-js/mermaid-cli
86+
npx puppeteer browsers install chrome-headless-shell
87+
echo '{"args": ["--no-sandbox"]}' > puppeteer-config.json
8688
8789
- name: ⬇ Checkout OctoPrint
8890
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
@@ -107,7 +109,7 @@ jobs:
107109
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
108110
run: |
109111
cd ${{ github.workspace }}/docs.octoprint.org/util/versionselector
110-
python versionselector.py ${{ github.workspace }}/OctoPrint/docs/ ${{ matrix.version }} ${{ env.OCTOPRINT_VERSION }} ${{ github.workspace }}/versions.json -D mermaid_cmd=${{ github.workspace }}/node_modules/.bin/mmdc -D mermaid_output_format=svg -D mermaid_version=
112+
python versionselector.py ${{ github.workspace }}/OctoPrint/docs/ ${{ matrix.version }} ${{ env.OCTOPRINT_VERSION }} ${{ github.workspace }}/versions.json -D mermaid_cmd="mmdc -p ${{ github.workspace }}/puppeteer-config.json" -D mermaid_output_format=svg -D mermaid_version=
111113
echo ".rst-content object[type^='image/']{width: 100%;}" >> ${{ github.workspace }}/OctoPrint/docs/_build/html/${{ matrix.version }}/_static/theme_overrides.css
112114
113115
#- name: 🔎 Run link check

0 commit comments

Comments
 (0)