Skip to content

Commit d0175f5

Browse files
committed
ci: next attempt...
1 parent ef489e7 commit d0175f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docs.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@ jobs:
7979
with:
8080
node-version: "20"
8181

82-
- name: 🏗 Install mermaid-cli
82+
- name: 🏗 Prepare stuff for mermaid
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 -g @mermaid-js/mermaid-cli
8685
npx puppeteer browsers install chrome-headless-shell
8786
echo '{"args": ["--no-sandbox"]}' > puppeteer-config.json
87+
cat puppeteer-config.json
88+
89+
npx @mermaid-js/mermaid-cli --version
8890
8991
- name: ⬇ Checkout OctoPrint
9092
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
@@ -109,7 +111,7 @@ jobs:
109111
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
110112
run: |
111113
cd ${{ github.workspace }}/docs.octoprint.org/util/versionselector
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=
114+
python versionselector.py ${{ github.workspace }}/OctoPrint/docs/ ${{ matrix.version }} ${{ env.OCTOPRINT_VERSION }} ${{ github.workspace }}/versions.json -D mermaid_cmd="npx @mermaid-js/mermaid-cli -p ${{ github.workspace }}/puppeteer-config.json" -D mermaid_output_format=svg -D mermaid_version=
113115
echo ".rst-content object[type^='image/']{width: 100%;}" >> ${{ github.workspace }}/OctoPrint/docs/_build/html/${{ matrix.version }}/_static/theme_overrides.css
114116
115117
#- name: 🔎 Run link check

0 commit comments

Comments
 (0)