@@ -74,14 +74,18 @@ jobs:
74
74
pip install sphinx==${{ matrix.sphinx }} sphinxcontrib-mermaid==${{ matrix.mermaid }} Jinja2==${{ matrix.jinja }}
75
75
76
76
- name : 🏗 Set up NodeJS
77
- if : matrix.mermaid_fix == 'true' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version) )
77
+ if : github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
78
78
uses : actions/setup-node@v3
79
79
with :
80
80
node-version : " 20"
81
81
82
- - name : 🏗 Install mermaid-cli
83
- if : matrix.mermaid_fix == 'true' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version) )
82
+ - name : 🏗 Prepare stuff for mermaid
83
+ if : github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
84
84
run : |
85
+ npx puppeteer browsers install chrome-headless-shell
86
+ echo '{"args": ["--no-sandbox"]}' > puppeteer-config.json
87
+ cat puppeteer-config.json
88
+
85
89
npm install @mermaid-js/mermaid-cli
86
90
87
91
- name : ⬇ Checkout OctoPrint
@@ -107,7 +111,7 @@ jobs:
107
111
if : github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
108
112
run : |
109
113
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=
114
+ 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_params="-p${{ github.workspace }}/puppeteer-config.json" -D mermaid_output_format=svg -D mermaid_version=
111
115
echo ".rst-content object[type^='image/']{width: 100%;}" >> ${{ github.workspace }}/OctoPrint/docs/_build/html/${{ matrix.version }}/_static/theme_overrides.css
112
116
113
117
# - name: 🔎 Run link check
0 commit comments