Zim/Kiwix (Wikipedia) feature

* A new zim module has been added, this module allows several things to interact with Zim files.
  * Allow searching of Zim files using libzim.
  * Allow downloading of Kiwix projects (wikipedia, wikibooks, etc) on a schedule which replaces the outdated files.
  * Creation of a new zim docker container which allows viewing of the Zim file contents.

* This commit also adds move/rename/mkdir features in the File Browser.
  * File tags are preserved when moving/renaming.
This commit is contained in:
Roland 2023-05-29 18:04:03 -06:00
parent cc5ab4e339
commit 03a2df217d
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
117 changed files with 6393 additions and 1100 deletions

7
docker/zim/Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM debian:12
ENV DOCKER=true
RUN apt update && apt-get install -y kiwix kiwix-tools
COPY docker/zim/* /
ENTRYPOINT ["/entrypoint.sh"]

7
docker/zim/entrypoint.sh Executable file
View file

@ -0,0 +1,7 @@
#! /usr/bin/env bash
rm -f /library.xml
# Find all Zim files and import them.
find /media/wrolpi -iname '*.zim' -exec /import_zim.sh {} \;
kiwix-serve --library /library.xml --address 0.0.0.0 --port 8085

7
docker/zim/import_zim.sh Executable file
View file

@ -0,0 +1,7 @@
#! /usr/bin/env bash
# This should not be used outside the Zim docker container!!
# This file echos and imports Zim files.
echo Importing zim $*
kiwix-manage /library.xml add $*