Update
This commit is contained in:
parent
fa1f0b9cbd
commit
d44127c798
13 changed files with 2124 additions and 1701 deletions
|
@ -16,7 +16,8 @@ DATE=`date +"%D"`
|
|||
FILECOUNT=`ls *.md | wc -l`
|
||||
FILELIST="wiki_pages"
|
||||
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=\"lrs_wiki.tar.gz\">all in md+txt+html+pdf</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 />"
|
||||
HEADER1="<html><head><link rel=\"stylesheet\" href=\"style.css\"><title> LRS Wiki: "
|
||||
HEADER2="</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=\"lrs_wiki.7z\">all in md+txt+html+pdf</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
|
||||
|
@ -52,7 +53,7 @@ done
|
|||
for f in *.md; do
|
||||
fname=$(echo "$f" | sed "s/\.md//g")
|
||||
f2="html/${fname}.html"
|
||||
echo $HEADER > $f2
|
||||
echo "$HEADER1 $fname $HEADER2" > $f2
|
||||
cmark-gfm -e table $f | sed "s/\.md\"/.html\"/g" >> $f2
|
||||
echo $FOOTER >> $f2
|
||||
done
|
||||
|
@ -71,7 +72,7 @@ rm mark_dead_links
|
|||
cd ..
|
||||
# mark dead links end
|
||||
|
||||
echo "$HEADER<a href="main.html">Go to main page.</a>$FOOTER" >> html/index.html
|
||||
echo "$HEADER1 redirect $HEADER2<a href="main.html">Go to main page.</a>$FOOTER" >> html/index.html
|
||||
|
||||
echo "</ul> $FOOTER" >> html/$FILELIST
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue