@@ -210,7 +210,7 @@ def check_command_sepparator(line):
210210 m = l + 1
211211 while not check_command_sepparator (content [m ]):
212212 command .remarks = remove_line_prefix (content [m ])
213- m += 1
213+ m += 1
214214 l = m
215215
216216 # Parameters
@@ -257,12 +257,13 @@ def output_wiki():
257257
258258 f = open ("./scripts/MeadeToWikiOutput.txt" , "w" )
259259
260- for fam in all_commands :
261- f .write ("> AUTOMATICALLY GENERATED FROM FIRMWARE - DO NOT EDIT\n " )
262- f .write ("{.is-danger}\n \n " )
260+ f .write ("> AUTOMATICALLY GENERATED FROM FIRMWARE - DO NOT EDIT\n " )
261+ f .write ("{.is-danger}\n \n " )
262+
263+ f .write (f"> This documentation is current as of Firmware **{ CURRENT_VERSION } **\n " )
264+ f .write ("{.is-warning}\n \n " )
263265
264- f .write (f"> This documentation is current as of Firmware **{ CURRENT_VERSION } **\n " )
265- f .write ("{.is-warning}\n \n " )
266+ for fam in all_commands :
266267
267268 f .write (f"## { fam .name } \n " )
268269 f .write ("<br>\n \n " )
@@ -273,7 +274,7 @@ def output_wiki():
273274 if cmd .information :
274275 #f.write("**Information:**\n")
275276 for line in cmd .information :
276- f .write (f"{ line } " )
277+ f .write (f"{ line } " )
277278 f .write ("\n \n " )
278279
279280 f .write (f"**Command:**\n " )
@@ -308,6 +309,12 @@ def output_wiki():
308309 f .write ("\n " )
309310
310311 f .write ("\n \n " )
312+
313+ f .write ("> AUTOMATICALLY GENERATED FROM FIRMWARE - DO NOT EDIT\n " )
314+ f .write ("{.is-danger}\n \n " )
315+
316+ f .write (f"> This documentation is current as of Firmware **{ CURRENT_VERSION } **\n " )
317+ f .write ("{.is-warning}\n \n " )
311318
312319 f .close ()
313320 print ("File written to: ./scripts/MeadeToWikiOutput.txt" )
0 commit comments