akkoma/docs/fuckgitlablol.sh
rinpatch dfae0050af Move out of Gitlab Wiki
I understand that this change is quite unreadable and hard to review, sorry for forgetting to do atomic commits. This patch does not change too much content wise, it just
* Gets everything from gitlab wiki
* Removes some specific gitlab hacks
* Formats all documentation file names to be in snake case so they look the same way as our code does
2019-03-28 19:46:30 +03:00

13 lines
204 B
Bash
Executable file

#!/bin/sh
lstr=`ls -A1 *.md`
readarray -t lsarr <<<"$lstr"
for i in "${lsarr[@]}"
do
:
echo $i
title=`echo $i | sed 's/-/\ /g' | sed 's/\.md//g'`
echo $title
echo -e "# $title\n$(cat $i)" > $i
done