depsterr.com

The sources and build system for depsterr.com
git clone git://depsterr.com/git/depsterr.com
Log | Files | Refs | LICENSE

commit 414dad1dd06e2b5f53fdf4b5fa4cbf826d2c4602
parent 0bb1a6c2fedefe4536e84a155bec18674d39f3bb
Author: depsterr <depsterr@protonmail.com>
Date:   Thu, 25 Jun 2020 23:57:08 +0200

updated some styling

Diffstat:
Afiles.html | 34++++++++++++++++++++++++++++++++++
Mfooter.html | 3+--
Mgit_page.sh | 51+++++++++++++++++++++++++++++++++++++++++----------
Mheader.html | 20+-------------------
Mnavbar.html | 8+-------
5 files changed, 78 insertions(+), 38 deletions(-)

diff --git a/files.html b/files.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>Files - Unnamed repository; edit this file &#39;description&#39; to name the repository. +</title> +<link rel="icon" type="image/png" href="favicon.png" /> +<link rel="alternate" type="application/atom+xml" title=".git Atom Feed" href="atom.xml" /> +<link rel="stylesheet" type="text/css" href="style.css" /> +</head> +<body> +<table><tr><td><a href="../"><img src="logo.png" alt="" width="32" height="32" /></a></td><td><h1></h1><span class="desc">Unnamed repository; edit this file &#39;description&#39; to name the repository. +</span></td></tr><tr><td></td><td> +<a href="log.html">Log</a> | <a href="files.html">Files</a> | <a href="refs.html">Refs</a></td></tr></table> +<hr/> +<div id="content"> +<table id="files"><thead> +<tr><td><b>Mode</b></td><td><b>Name</b></td><td class="num" align="right"><b>Size</b></td></tr> +</thead><tbody> +<tr><td>-rw-r--r--</td><td><a href="file/.gitignore.html">.gitignore</a></td><td class="num" align="right">1L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/footer.html.html">footer.html</a></td><td class="num" align="right">2L</td></tr> +<tr><td>-rwxr-xr-x</td><td><a href="file/git_page.sh.html">git_page.sh</a></td><td class="num" align="right">48L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/header.html.html">header.html</a></td><td class="num" align="right">19L</td></tr> +<tr><td>-rwxr-xr-x</td><td><a href="file/make_pages.sh.html">make_pages.sh</a></td><td class="num" align="right">91L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/navbar.html.html">navbar.html</a></td><td class="num" align="right">7L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/src/about.md.html">src/about.md</a></td><td class="num" align="right">3L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/src/blog/entry.md.html">src/blog/entry.md</a></td><td class="num" align="right">3L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/src/blog/entry2.md.html">src/blog/entry2.md</a></td><td class="num" align="right">3L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/src/blog/index.md.html">src/blog/index.md</a></td><td class="num" align="right">2L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/src/index.md.html">src/index.md</a></td><td class="num" align="right">3L</td></tr> +<tr><td>-rw-r--r--</td><td><a href="file/src/irc.md.html">src/irc.md</a></td><td class="num" align="right">3L</td></tr> +</tbody></table></div> +</body> +</html> diff --git a/footer.html b/footer.html @@ -1,2 +1 @@ - </body> -</html> +</body></html> diff --git a/git_page.sh b/git_page.sh @@ -18,31 +18,62 @@ dirname() { printf '%s\n' "${dir:-/}" } -cd "$(dirname "$0")" || exit +cd "$(dirname "$0")" || exit 1 echo $0 | grep -q '*.git' && { echo "cannot use a repo that ends in git" exit 1 } +[ -z "$1" ] && { + echo '$1 is empty' + exit 1 +} + +[ -z "$1" ] && { + echo '$2 is empty' + exit 1 +} + # $1 = full path to repo +# $2 = file which lists repo paths -DESTDIR="doc/git/$(basename "$0")" +DESTDIR="doc/git" +REPODIR="$DESTDIR/$(basename "$1")" -rm -rf "$DESTDIR" -mkdir -p "$DESTDIR" -(cd "$DESTDIR" && stagit "$0") +echo "REPODIR: $REPODIR" -cat > "$DESTDIR/style.css" <<-EOF +rm -rf "$REPODIR" +mkdir -p "$REPODIR" +(cd "$REPODIR" && stagit "$1") + +cat > "$REPODIR/style.css" <<-EOF body{background:#2e2e2e;} *{font-family: monospace;} -#title{font-size:2.5em;} -h1,h2,h3,h4,h6{color:#e88be0;} +h1{font-size:2.5em;color:#e88be0;!important} +hr{border-color:#1DDBC9;} +p,tr,td{color:#f5f5f5;} +a,a:link,a:visited,a:active{color:#1ddbc9;} +a:hover{color:#f7bf65;} +EOF +[ -f "$DESTDIR/style.css" ] || cat > "$DESTDIR/style.css" <<-EOF +body{background:#2e2e2e;} +*{font-family: monospace;} +.desc{font-size:2.5em;color:#e88be0;!important} hr{border-color:#1DDBC9;} p,tr,td{color:#f5f5f5;} a,a:link,a:visited,a:active{color: #1ddbc9;} a:hover{color:#f7bf65;} -.desc{display:none;} EOF -stagit-index "$DESTDIR"/*/ + +in=false +while read -r line; do + [ "$line" = "$1" ] && { + in=true + break + } +done < "$2" +[ "$in" = true ] && echo "$1" >> "$2" + +stagit-index $(cat "$2") > "$DESTDIR/index.html" diff --git a/header.html b/header.html @@ -1,19 +1 @@ -<!DOCTYPE html> -<html> - <head> - <title>depsterr.com</title> - <link href=data:, rel=icon> - <style> - body{background:#2e2e2e;} - *{font-family: monospace;} - #title{font-size:2.5em;} - h1,h2,h3,h4,h6{color:#e88be0;} - hr{border-color:#1DDBC9;} - p{color:#f5f5f5;} - a,a:link,a:visited,a:active{color: #1ddbc9;} - a:hover{color:#f7bf65;} - </style> - </head> - <body> - <h1 id=title>depsterr.com</h1> - <hr> +<!DOCTYPEhtml><html><head><title>depsterr.com</title><linkhref=data:,rel=icon><style>body{background:#2e2e2e;}*{font-family:monospace;}#t{font-size:2.5em;}h1,h2,h3,h4,h6{color:#e88be0;}hr{border-color:#1DDBC9;}p{color:#f5f5f5;}a,a:link,a:visited,a:active{color:#1ddbc9;}a:hover{color:#f7bf65;}</style></head><body><h1 id=t>depsterr.com</h1><hr> diff --git a/navbar.html b/navbar.html @@ -1,7 +1 @@ -<nav id="navbar"> - <a href="/index.html">Home</a> - <a href="/blog">Blog</a> - <a href="/about.html">About</a> - <a href="/git">git</a> -</nav> -<hr> +<nav><a href="/index.html">Home</a> <a href="/blog">Blog</a> <a href="/about.html">About</a> <a href="/git">git</a></nav><hr>