@@ -22,40 +22,35 @@ jobs:
22
22
sphinx : " 4.5.0"
23
23
mermaid : " 0.7.1"
24
24
jinja : " 3.1.1"
25
- mermaid_fix : " true"
26
25
- version : " 1.10.3"
27
26
source : " tags"
28
27
python : " 3.10"
29
28
sphinx : " 4.5.0"
30
29
mermaid : " 0.7.1"
31
30
jinja : " 3.1.1"
32
- mermaid_fix : " true"
33
31
- version : " master"
34
32
source : " heads"
35
33
python : " 3.10"
36
34
sphinx : " 4.5.0"
37
35
mermaid : " 0.7.1"
38
36
jinja : " 3.1.1"
39
- mermaid_fix : " true"
40
37
- version : " maintenance"
41
38
source : " heads"
42
39
python : " 3.10"
43
40
sphinx : " 4.5.0"
44
41
mermaid : " 0.7.1"
45
42
jinja : " 3.1.1"
46
- mermaid_fix : " true"
47
43
- version : " devel"
48
44
source : " heads"
49
45
python : " 3.10"
50
46
sphinx : " 4.5.0"
51
47
mermaid : " 0.7.1"
52
48
jinja : " 3.1.1"
53
- mermaid_fix : " true"
54
49
steps :
55
50
- name : 🧾 Log event & matrix
56
51
run : |
57
52
echo "Event: ${{ github.event_name }} - ${{ toJson(github.event.client_payload) }}"
58
- echo "Matrix: ${{ matrix.version }}, ${{ matrix.source }}, ${{ matrix.python }}, ${{ matrix.mermaid }}, ${{ matrix.mermaid_fix }} "
53
+ echo "Matrix: ${{ matrix.version }}, ${{ matrix.source }}, ${{ matrix.python }}, ${{ matrix.mermaid }}"
59
54
echo "Formatted ref: ${{ format('refs/{0}/{1}', matrix.source, matrix.version) }}"
60
55
61
56
- name : ⬇ Checkout docs.octoprint.org
@@ -115,12 +110,8 @@ jobs:
115
110
if : github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.client_payload.ref == format('refs/{0}/{1}', matrix.source, matrix.version)
116
111
run : |
117
112
cd ${{ github.workspace }}/docs.octoprint.org/util/versionselector
118
- if [[ "${{ matrix.mermaid_fix }}" == "true" ]]; then
119
- 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=
120
- echo ".rst-content object[type^='image/']{width: 100%;}" >> ${{ github.workspace }}/OctoPrint/docs/_build/html/${{ matrix.version }}/_static/theme_overrides.css
121
- else
122
- python versionselector.py ${{ github.workspace }}/OctoPrint/docs/ ${{ matrix.version }} ${{ env.OCTOPRINT_VERSION }} ${{ github.workspace }}/versions.json
123
- fi
113
+ 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
+ echo ".rst-content object[type^='image/']{width: 100%;}" >> ${{ github.workspace }}/OctoPrint/docs/_build/html/${{ matrix.version }}/_static/theme_overrides.css
124
115
125
116
# - name: 🔎 Run link check
126
117
# id: lc
0 commit comments