Skip to content

Commit

Permalink
Fixed json code template
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Aug 3, 2023
1 parent 7aa5023 commit 83778bd
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 23 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
theme: minima
exclude: wiki/translations
exclude: [wiki/translations]
1 change: 1 addition & 0 deletions migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions wiki/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -106,7 +107,7 @@ Example: {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/de/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -127,7 +128,7 @@ Beispiel: {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/en/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -106,7 +107,7 @@ Example: {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/es/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -106,7 +107,7 @@ Example: {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/fr/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -122,7 +123,7 @@ Exemple : {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/it/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -163,7 +164,7 @@ Example: {{Code|lang=json|code=
]
}
}}
```


<div class="mw-translate-fuzzy">
Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/pl/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ Plik ten powinien zawierać:
- **średnicę**: Średnica cięcia.
- **głębokość**: Głębokość pogłębienia *(nie jest konieczna w przypadku pogłębiania stożkowego)*.

Przykład: {{Code|lang=json|code=
Przykład:
```json
{
"name": "DIN 7984",
"cut_type": "counterbore",
Expand All @@ -127,7 +128,7 @@ Przykład: {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/pt-br/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -106,7 +107,7 @@ Example: {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/ro/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,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",
Expand All @@ -165,7 +166,7 @@ Example: {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/ru/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,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",
Expand All @@ -107,7 +108,7 @@ Example: {{Code|lang=json|code=
]
}
}}
```



Expand Down
5 changes: 3 additions & 2 deletions wiki/translations/tr/PartDesign_Hole.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,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",
Expand All @@ -108,7 +109,7 @@ Example: {{Code|lang=json|code=
]
}
}}
```



Expand Down

0 comments on commit 83778bd

Please sign in to comment.