diff --git a/_config.yml b/_config.yml index 1621ef5327..73a1b3d22d 100644 --- a/_config.yml +++ b/_config.yml @@ -1,2 +1,2 @@ theme: minima -exclude: wiki/translations +exclude: [wiki/translations] diff --git a/migrate.py b/migrate.py index 17338d44ad..687c5687b1 100755 --- a/migrate.py +++ b/migrate.py @@ -862,6 +862,7 @@ def cleanMarkdown(self,mdtext,imagepath=None,debug=0): if debug >= 9: # creating new code fences result = re.sub("{{Code\|code\=(.*?)}}",r"```python\1```",result,flags=flags) # replace {{Code}} templates + result = re.sub("{{Code\|lang\=json\|code\=(.*?)}}",r"```json\1```",result,flags=flags) # replace {{Code}} templates result = re.sub("{{incode\|(.*?)}}",r"`\1`",result,flags=flags) # replace {{incode}} templates result = re.sub(" \`\`\`",r" \n```",result,flags=flags) # make sure all ``` are on a new line result = re.sub("{{TRUE}}",r"`True`",result,flags=flags) # replace {{TRUE}} templates diff --git a/wiki/PartDesign_Hole.md b/wiki/PartDesign_Hole.md index d833eaee90..e8592327e1 100644 --- a/wiki/PartDesign_Hole.md +++ b/wiki/PartDesign_Hole.md @@ -95,7 +95,8 @@ The file should contain: - **diameter**: The diameter of the cut. - **depth**: Depth of the counterbore (not necessary for countersink). -Example: {{Code|lang=json|code= +Example: +```json { "name": "DIN 7984", "cut_type": "counterbore", @@ -106,7 +107,7 @@ Example: {{Code|lang=json|code= … ] } -}} +``` diff --git a/wiki/translations/de/PartDesign_Hole.md b/wiki/translations/de/PartDesign_Hole.md index 10e759f1fa..3d617d7638 100644 --- a/wiki/translations/de/PartDesign_Hole.md +++ b/wiki/translations/de/PartDesign_Hole.md @@ -116,7 +116,8 @@ Die Datei sollte enthalten: - **diameter**: Der Durchmesser des Schnitts. - **depth**: Tiefe der Flachsenkung (nicht notwendig bei Kegelsenkungen). -Beispiel: {{Code|lang=json|code= +Beispiel: +```json { "name": "DIN 7984", "cut_type": "counterbore", @@ -127,7 +128,7 @@ Beispiel: {{Code|lang=json|code= … ] } -}} +``` diff --git a/wiki/translations/en/PartDesign_Hole.md b/wiki/translations/en/PartDesign_Hole.md index b77f067d4f..949c7060c3 100644 --- a/wiki/translations/en/PartDesign_Hole.md +++ b/wiki/translations/en/PartDesign_Hole.md @@ -95,7 +95,8 @@ The file should contain: - **diameter**: The diameter of the cut. - **depth**: Depth of the counterbore (not necessary for countersink). -Example: {{Code|lang=json|code= +Example: +```json { "name": "DIN 7984", "cut_type": "counterbore", @@ -106,7 +107,7 @@ Example: {{Code|lang=json|code= … ] } -}} +``` diff --git a/wiki/translations/es/PartDesign_Hole.md b/wiki/translations/es/PartDesign_Hole.md index 32e44c4466..3a11458dd9 100644 --- a/wiki/translations/es/PartDesign_Hole.md +++ b/wiki/translations/es/PartDesign_Hole.md @@ -95,7 +95,8 @@ The file should contain: - **diameter**: The diameter of the cut. - **depth**: Depth of the counterbore (not necessary for countersink). -Example: {{Code|lang=json|code= +Example: +```json { "name": "DIN 7984", "cut_type": "counterbore", @@ -106,7 +107,7 @@ Example: {{Code|lang=json|code= … ] } -}} +``` diff --git a/wiki/translations/fr/PartDesign_Hole.md b/wiki/translations/fr/PartDesign_Hole.md index f7f3fb08b9..823bbbd353 100644 --- a/wiki/translations/fr/PartDesign_Hole.md +++ b/wiki/translations/fr/PartDesign_Hole.md @@ -111,7 +111,8 @@ Le fichier doit contenir : - **diameter** : Le diamètre de la coupe. - **depth** : Profondeur du chambrage (non nécessaire pour le fraisage). -Exemple : {{Code|lang=json|code= +Exemple : +```json { "name": "DIN 7984", "cut_type": "counterbore", @@ -122,7 +123,7 @@ Exemple : {{Code|lang=json|code= … ] } -}} +``` diff --git a/wiki/translations/it/PartDesign_Hole.md b/wiki/translations/it/PartDesign_Hole.md index f6c90c0b6d..1dd687537a 100644 --- a/wiki/translations/it/PartDesign_Hole.md +++ b/wiki/translations/it/PartDesign_Hole.md @@ -152,7 +152,8 @@ The file should contain: - **diameter**: The diameter of the cut. - **depth**: Depth of the counterbore (not necessary for countersink). -Example: {{Code|lang=json|code= +Example: +```json { "name": "DIN 7984", "cut_type": "counterbore", @@ -163,7 +164,7 @@ Example: {{Code|lang=json|code= … ] } -}} +```