rebuild with gpm archives
This commit is contained in:
parent
ffe07cf3bf
commit
1e5c36346b
4 changed files with 36 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ RUN apk add --no-cache ikiwiki git
|
|||
COPY . /build
|
||||
WORKDIR /build
|
||||
RUN ikiwiki --rebuild --setup ikiwiki.setup
|
||||
RUN ./gpm-archives.sh
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=0 /tmp/www /usr/share/nginx/html
|
||||
|
|
|
|||
27
gpm-archives.sh
Executable file
27
gpm-archives.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
# 2025-10-13, Nico Schottelius
|
||||
|
||||
destdir=/tmp/www/software/gpm/archives
|
||||
indexhtml=$destdir/index.html
|
||||
|
||||
cd software/gpm/archives/
|
||||
cat > ${indexhtml} <<EOF
|
||||
<html>
|
||||
<head>
|
||||
<title>GPM archives</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>GPM archives</h1>
|
||||
<ul>
|
||||
EOF
|
||||
|
||||
find . -type f | sort -g > ${destdir}/index
|
||||
while read archivelink; do
|
||||
echo "<li><a href=\"$archivelink\">$archivelink</a>" >> ${indexhtml}
|
||||
done < ${destdir}/index
|
||||
|
||||
cat >>${indexhtml} <<EOF
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
EOF
|
||||
4
tags/ikiwiki.mdwn
Normal file
4
tags/ikiwiki.mdwn
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[[!meta title="pages tagged ikiwiki"]]
|
||||
|
||||
[[!inline pages="tagged(ikiwiki)" actions="no" archive="yes"
|
||||
feedshow=10]]
|
||||
4
tags/porsche.mdwn
Normal file
4
tags/porsche.mdwn
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[[!meta title="pages tagged porsche"]]
|
||||
|
||||
[[!inline pages="tagged(porsche)" actions="no" archive="yes"
|
||||
feedshow=10]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue