Update
This commit is contained in:
parent
3631b726e5
commit
d52544f211
9 changed files with 1722 additions and 1671 deletions
18
make_html.sh
18
make_html.sh
|
@ -15,9 +15,25 @@ cp ./*.css ./html/
|
|||
DATE=`date +"%D"`
|
||||
FILECOUNT=`ls *.md | wc -l`
|
||||
FILELIST="wiki_pages"
|
||||
HEADER="<html><head><link rel=\"stylesheet\" href=\"style.css\"><title>LRS Wiki</title></head><body><h1>less_retarded_wiki</h1><a href=\"main.html\">main page</a>, <a class=\"notdead\" href=\"$FILELIST.html\">file list ($FILECOUNT)</a>, <a class=\"notdead\" href=\"https://git.coom.tech/drummyfish/less_retarded_wiki/archive/master.zip\">source</a>, <a class=\"notdead\" href=\"report.html\">report abuse</a>, <a class=\"notdead\" href=\"wiki_stats.html\">stats</a>, <a class=\"notdead\" id=\"fancylink\" href=\"pimp_my_lrs.html?p=main.html&s=style_fancy.css\">consoomer version</a>, wiki last updated on $DATE<hr />"
|
||||
RANDPAGE="random_page"
|
||||
HEADER="<html><head><link rel=\"stylesheet\" href=\"style.css\"><title>LRS Wiki</title></head><body><h1>less_retarded_wiki</h1><span class=\"nav\"><a href=\"main.html\">main page</a>, <a class=\"notdead\" href=\"$FILELIST.html\">file list ($FILECOUNT)</a>, <a class=\"notdead\" href=\"https://git.coom.tech/drummyfish/less_retarded_wiki/archive/master.zip\">source</a>, <a class=\"notdead\" href=\"report.html\">report abuse</a>, <a class=\"notdead\" href=\"wiki_stats.html\">stats</a>, <a class=\"notdead\" href=\"$RANDPAGE.html\">random article</a>, <a class=\"notdead\" id=\"fancylink\" href=\"pimp_my_lrs.html?p=main.html&s=style_fancy.css\">consoomer version</a>, wiki last updated on $DATE</span><hr />"
|
||||
FOOTER="<hr/><p>All content available under <a class=\"notdead\" href=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</a> (public domain). Send comments and corrections to drummyfish at disroot dot org. </p></body></html>"
|
||||
|
||||
rm $RANDPAGE.md
|
||||
|
||||
ls *.md > tmp.txt
|
||||
ls *.md >> tmp.txt
|
||||
ls *.md >> tmp.txt
|
||||
cat tmp.txt | shuf > tmp2.txt
|
||||
|
||||
printf "# Random Article\n\nPlease kindly click random link.\n\n" >> $RANDPAGE.md
|
||||
|
||||
while read f; do
|
||||
echo "[*]($f)" >> $RANDPAGE.md
|
||||
done <tmp2.txt
|
||||
|
||||
rm tmp.txt tmp2.txt
|
||||
|
||||
printf "# Wiki Files\n\nThis is an autogenerated page listing all pages.\n\n" > $FILELIST.md
|
||||
|
||||
firstFile=true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue