We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906d667 commit 923d642Copy full SHA for 923d642
clean-wiki.sh
@@ -1,11 +1,16 @@
1
-# We dont want relative links or header 1 from the wiki
+
2
+# Sum of all wiki - worst solution ever...
3
+rm ./docs/wiki/_Footer.md
4
+rm ./docs/wiki/_Sidebar.md
5
+find ./docs/wiki -type f -exec cat > ./docs/wiki/_.md {} ';'
6
7
# Move headers to +1 depth
8
find ./docs/wiki -type f -exec sed -i 's/^#/##/g' {} ';'
9
10
11
+# We dont want relative links or header 1 from the wiki
12
# Links formatted like (Nice link)[link]
13
find ./docs/wiki -type f -exec sed -i 's/\)\[(?!http)(([^\]]+))\]/\)\[/search\.html\?q=\1\]/g' {} ';'
-
14
# Links formatted like [[pagename]]
15
find ./docs/wiki -type f -exec sed -i 's/\[\[([^\]]+)\]\]/\(\1\)\[/search\.html\?q=\1\]/g' {} ';'
16
0 commit comments