Skip to content

Commit 68ebc7e

Browse files
committed
Add ZMK split firmware notes
1 parent 441b279 commit 68ebc7e

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

data/firmware_instructions.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,25 @@ zmk_split:
140140
ru:
141141
title: Как обновить прошивку
142142
steps:
143-
- "Скачайте все показанные файлы для левой и правой половинок"
143+
- "Скачайте файлы прошивки для левой и правой половинок"
144144
- "Подключите левую половинку по USB-C, дважды быстро нажмите <code>Reset</code> и скопируйте на появившийся диск файл <code>left</code>"
145145
- "Повторите действия для правой половинки, используя файл <code>right</code>"
146146
- "После обновления одновременно нажмите <code>Reset</code> на обеих половинках, чтобы восстановить их соединение"
147+
step_notes:
148+
- after_step: 1
149+
text: 'Если вы хотите использовать <a href="https://docs.ergohaven.xyz/software/zmk/zmk-ruen/">RuEn</a>, скачайте соответствующую RuEn-прошивку'
150+
note: "Если при копировании прошивки появляется окно с ошибкой копирования/извлечения диска, просто игнорируйте это сообщение"
147151
en:
148152
title: How to update the firmware
149153
steps:
150-
- "Download all displayed files for the left and right halves"
154+
- "Download the firmware files for the left and right halves"
151155
- "Connect the left half via USB-C, quickly double-press <code>Reset</code>, and copy the <code>left</code> file to the drive that appears"
152156
- "Repeat these steps for the right half using the <code>right</code> file"
153157
- "After the update, press <code>Reset</code> on both halves simultaneously to reconnect them"
158+
step_notes:
159+
- after_step: 1
160+
text: 'If you want to use <a href="https://docs.ergohaven.xyz/en/software/zmk/zmk-ruen/">RuEn</a>, download the corresponding RuEn firmware'
161+
note: "If a copy or disk ejection error appears while copying the firmware, simply ignore the message"
154162

155163
zmk_qube:
156164
ru:

layouts/shortcodes/firmware-picker.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,17 @@
113113
{{- with index $instruction $lang }}
114114
<div class="firmware-picker__instruction">
115115
<p class="firmware-picker__instruction-title">{{ .title }} — {{ $deviceName }}</p>
116+
{{- $instructionContent := . -}}
116117
<ol class="firmware-picker__instruction-steps">
117-
{{- range .steps }}
118-
<li>{{ . | safeHTML }}</li>
118+
{{- range $stepIndex, $step := .steps }}
119+
<li>
120+
{{- $step | safeHTML -}}
121+
{{- range $instructionContent.step_notes }}
122+
{{- if eq .after_step (add $stepIndex 1) }}
123+
<p class="firmware-picker__instruction-note">{{ .text | safeHTML }}</p>
124+
{{- end }}
125+
{{- end }}
126+
</li>
119127
{{- end }}
120128
</ol>
121129
{{- with .note }}

0 commit comments

Comments
 (0)