mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 20:36:21 -05:00
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:
parent
cc5ab4e339
commit
03a2df217d
117 changed files with 6393 additions and 1100 deletions
7
docker/zim/Dockerfile
Normal file
7
docker/zim/Dockerfile
Normal 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
7
docker/zim/entrypoint.sh
Executable 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
7
docker/zim/import_zim.sh
Executable 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 $*
|
||||
Loading…
Add table
Add a link
Reference in a new issue