Update
This commit is contained in:
parent
940ac8279b
commit
280aba9025
8 changed files with 1710 additions and 1675 deletions
|
@ -6,11 +6,13 @@ echo $1
|
|||
|
||||
git remote | xargs -n1 git remote remove # delete all remotes
|
||||
|
||||
git remote add origin https://git.coom.tech/drummyfish/less_retarded_wiki.git/$1.git
|
||||
git remote add origin https://git.coom.tech/drummyfish/$1.git
|
||||
|
||||
git remote set-url --add --push origin https://git.coom.tech/drummyfish/$1.git
|
||||
git remote set-url --add --push origin ssh://tastyfish@192.168.0.106:/home/tastyfish/git/$1
|
||||
git remote set-url --add --push origin https://git.thisisjoes.site/drummyfish/$1.git
|
||||
git remote set-url --add --push origin https://basedwa.re/drummfish/$1.git
|
||||
git remote set-url --add --push origin https://gitea.slowb.ro/drummyfish/$1.git
|
||||
|
||||
git remote -v
|
||||
|
||||
|
|
20
make_all.sh
Executable file
20
make_all.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
# Convert the wiki to all formats.
|
||||
|
||||
echo "making all"
|
||||
|
||||
./make_html.sh
|
||||
./make_txt.sh
|
||||
./make_pdf.sh
|
||||
|
||||
mkdir lrs_wiki
|
||||
mkdir lrs_wiki/md
|
||||
cp *.md lrs_wiki/md
|
||||
cp lrs_wiki.html lrs_wiki
|
||||
cp lrs_wiki.txt lrs_wiki
|
||||
cp lrs_wiki.pdf lrs_wiki
|
||||
tar -czvf lrs_wiki.tar.gz lrs_wiki
|
||||
rm -rf lrs_wiki
|
||||
cp lrs_wiki.tar.gz html
|
||||
|
||||
echo "done"
|
|
@ -16,7 +16,7 @@ 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=\"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 />"
|
||||
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 />"
|
||||
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
|
||||
|
|
12
make_pdf.sh
Executable file
12
make_pdf.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
# Creates a PDF version of the wiki.
|
||||
|
||||
echo "making PDF"
|
||||
|
||||
./make_html_single.sh
|
||||
|
||||
cat lrs_wiki.html | sed "s/<code> /<code>\n /" > _tmp.html
|
||||
htmldoc --bodyfont sans --fontsize 10 --gray --left 8mm --right 8mm --top 8mm --bottom 8mm --continuous --header ... --header1 ... --footer ct/ -t pdf -f lrs_wiki.pdf _tmp.html
|
||||
rm _tmp.html
|
||||
|
||||
echo "done"
|
12
make_txt.sh
12
make_txt.sh
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# Creates an ASXII version of the wiki.
|
||||
# Creates an ASCII version of the wiki.
|
||||
|
||||
echo "making TXT"
|
||||
|
||||
|
@ -21,18 +21,18 @@ rm __tmp.html
|
|||
|
||||
echo "making single TXT"
|
||||
|
||||
echo "LESS RETARDED WIKI" > lrs.txt
|
||||
echo "by drummyfish, released under CC0 1.0, public domain" >> lrs.txt
|
||||
echo "LESS RETARDED WIKI" > lrs_wiki.txt
|
||||
echo "by drummyfish, released under CC0 1.0, public domain" >> lrs_wiki.txt
|
||||
|
||||
for f in txt/*.txt; do
|
||||
echo $f
|
||||
|
||||
fname=$(echo "$f" | sed "s/\.txt//g" | sed "s/txt\///g")
|
||||
|
||||
echo "--------------------------------------------------------------------------------" >> lrs.txt
|
||||
echo "$fname:" >> lrs.txt
|
||||
echo "--------------------------------------------------------------------------------" >> lrs_wiki.txt
|
||||
echo "$fname:" >> lrs_wiki.txt
|
||||
|
||||
cat $f >> lrs.txt
|
||||
cat $f >> lrs_wiki.txt
|
||||
done
|
||||
|
||||
echo "done"
|
||||
|
|
3302
random_page.md
3302
random_page.md
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -3,8 +3,8 @@
|
|||
This is an autogenerated article holding stats about this wiki.
|
||||
|
||||
- number of articles: 560
|
||||
- number of commits: 706
|
||||
- total size of all texts in bytes: 3092536
|
||||
- number of commits: 707
|
||||
- total size of all texts in bytes: 3102044
|
||||
|
||||
longest articles:
|
||||
|
||||
|
@ -14,8 +14,8 @@ longest articles:
|
|||
52K how_to.md
|
||||
52K less_retarded_society.md
|
||||
48K chess.md
|
||||
40K c.md
|
||||
36K faq.md
|
||||
36K c.md
|
||||
32K 3d_rendering.md
|
||||
32K game.md
|
||||
32K random_page.md
|
||||
|
@ -24,6 +24,18 @@ longest articles:
|
|||
latest changes:
|
||||
|
||||
```
|
||||
Date: Sat Feb 24 16:17:37 2024 +0100
|
||||
c.md
|
||||
c_pitfalls.md
|
||||
cat_v.md
|
||||
encyclopedia.md
|
||||
free_software.md
|
||||
history.md
|
||||
libertarianism.md
|
||||
race.md
|
||||
random_page.md
|
||||
wiki_pages.md
|
||||
wiki_stats.md
|
||||
Date: Fri Feb 23 14:18:56 2024 +0100
|
||||
anarchism.md
|
||||
ascii_art.md
|
||||
|
@ -45,25 +57,14 @@ bloat.md
|
|||
cyber.md
|
||||
jokes.md
|
||||
open_console.md
|
||||
people.md
|
||||
piracy.md
|
||||
random_page.md
|
||||
security.md
|
||||
usa.md
|
||||
wiki_pages.md
|
||||
wiki_stats.md
|
||||
Date: Thu Feb 22 13:20:32 2024 +0100
|
||||
altruism.md
|
||||
bazaar.md
|
||||
binary.md
|
||||
```
|
||||
|
||||
most wanted pages:
|
||||
|
||||
```
|
||||
embedded.md
|
||||
meme.md
|
||||
data_type.md
|
||||
meme.md
|
||||
buddhism.md
|
||||
array.md
|
||||
gpl.md
|
||||
|
|
Loading…
Reference in a new issue