Skip to content

Commit 906d667

Browse files
authored
Update clean-wiki.sh
1 parent 94ddb7b commit 906d667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clean-wiki.sh

Lines changed: 2 additions & 2 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

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

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

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

0 commit comments

Comments
 (0)