This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
fixcrowdin.sh
executable file
·54 lines (46 loc) · 1.92 KB
/
fixcrowdin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# There's an issue with crowding where it messes up MDX inline components
# This scripts tries to fix as many of those issues as possible in an automated way
# Fix <Note> component
sed -i 's/note>/Note>/' **/**/*.md
sed -i 's/note>/Note>/' **/**/**/*.md
sed -i 's/note>/Note>/' **/**/**/**/*.md
sed -i 's/note>/Note>/' **/**/**/**/**/*.md
sed -i 's/note>/Note>/' **/**/**/**/**/**/*.md
sed -i 's/note>/Note>/' **/**/**/**/**/**/***.md
# Fix <Warning> component
sed -i 's/warning>/Warning>/' **/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/**/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/**/**/**/*.md
sed -i 's/warning>/Warning>/' **/**/**/**/**/**/***.md
# Fix <Tip> component
sed -i 's/tip>/Tip>/' **/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/**/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/**/**/**/*.md
sed -i 's/tip>/Tip>/' **/**/**/**/**/**/***.md
# Fix <Example> component
sed -i 's/example>/Example>/' **/**/*.md
sed -i 's/example>/Example>/' **/**/**/*.md
sed -i 's/example>/Example>/' **/**/**/**/*.md
sed -i 's/example>/Example>/' **/**/**/**/**/*.md
sed -i 's/example>/Example>/' **/**/**/**/**/**/*.md
sed -i 's/example>/Example>/' **/**/**/**/**/**/***.md
sed -i 's/<example/<Example/' **/**/*.md
sed -i 's/<example/<Example/' **/**/**/*.md
sed -i 's/<example/<Example/' **/**/**/**/*.md
sed -i 's/<example/<Example/' **/**/**/**/**/*.md
sed -i 's/<example/<Example/' **/**/**/**/**/**/*.md
sed -i 's/<example/<Example/' **/**/**/**/**/**/***.md
# Fix frontmatter dashes
sed -i '/- - -/c\' **/**/*.md
sed -i '/- - -/c\' **/**/**/*.md
sed -i '/- - -/c\' **/**/**/**/*.md
sed -i '/- - -/c\' **/**/**/**/**/*.md
sed -i '/- - -/c\' **/**/**/**/**/**/*.md
sed -i '/- - -/c\' **/**/**/**/**/**/***.md
# German date issues
grep -R 'date: 20' org/ | grep de.md | grep '\.2'