Skip to content

Commit 7371dac

Browse files
committed
Update clean-wiki.sh
1 parent cb7babe commit 7371dac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clean-wiki.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# We dont want relative links or header 1 from the wiki
22

33
# Move headers to +1
4-
find ./docs/wiki -type f -exec sed -i 's/^#/##/g' {} ;
4+
find ./docs/wiki -type f -exec sed -i 's/^#/##/g' {} ';'
55

66
# Links formatted like (Nice link)[link]
7-
find ./docs/wiki -type f -exec sed -i 's/\)\[(?!http)(([^\]]+))\]/\)\[/search\.html\?q=\1\]/g' {} ;
7+
find ./docs/wiki -type f -exec sed -i 's/\)\[(?!http)(([^\]]+))\]/\)\[/search\.html\?q=\1\]/g' {} ';'
88

99

1010
# Links formatted like [[pagename]]
11-
find ./docs/wiki -type f -exec sed -i 's/\[\[([^\]]+)\]\]/\(\1\)\[/search\.html\?q=\1\]/g' {} ;
11+
find ./docs/wiki -type f -exec sed -i 's/\[\[([^\]]+)\]\]/\(\1\)\[/search\.html\?q=\1\]/g' {} ';'

0 commit comments

Comments
 (0)