emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix cd95bc9 171/192: update README: using libraries i


From: Stefan Monnier
Subject: [elpa] externals/kiwix cd95bc9 171/192: update README: using libraries index file "library.xml"
Date: Sat, 19 Dec 2020 00:41:54 -0500 (EST)

branch: externals/kiwix
commit cd95bc97cd9add60910a40b6ca5d3db6bff3892b
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    update README: using libraries index file "library.xml"
---
 README.org | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/README.org b/README.org
index ce72bbb..d88ddca 100644
--- a/README.org
+++ b/README.org
@@ -162,9 +162,25 @@ Given =wikipedia.zim= ([[#ZIM][Zim database files]]) 
resides in =/tmp/zim/=, exe
 following command:
 
 #+begin_src sh :eval no
-docker container run -v /tmp/zim:/data -p 8080:80 kiwix/kiwix-serve 
wikipedia.zim
+# if you don't have libraries index file "library.xml"
+docker container run -d --name kiwix-serve -v /tmp/zim:/data -p 8080:80 
kiwix/kiwix-serve wikipedia.zim
+# if you have libraries index file "library.xml"
+docker container run -d --name kiwix-serve -v /tmp/zim:/data -p 8080:80 
kiwix/kiwix-serve --library library.xml
 #+end_src
 
+*NOTE*: You can generate the libraries index file "library.xml" with following 
command:
+
+#+begin_src sh
+cd ~/.www.kiwix.org/kiwix/nsz6b6tr.default/data/library/
+
+for zim in $(ls *.zim); do
+  kiwix-manage library.xml add $zim
+done
+#+end_src
+
+*NOTE*: Using the libraries index file method, you can have all libraries 
served
+in Docker container instead of just one library.
+
 If you put ZIM files in other places not =/tmp/zim/=, you can use follow my 
command:
 
 #+NAME: create kiwix-serve container with custom port
@@ -177,13 +193,7 @@ docker container run -d \
 #+end_src
 
 Visit http://localhost:8080 or http://localhost:8089 (if you exposed different
-port), you will see:
-
-[[file:data/e8/2e194f-2cc8-45eb-a378-f8bd6d7c6b1a/screenshot_1.png]]
-
-Load the wikipedia.zim library, you will see:
-
-[[file:data/e8/2e194f-2cc8-45eb-a378-f8bd6d7c6b1a/screenshot_2.png]]
+port).
 
 For easy launch the docker run command, you can add command alias in shell 
profile:
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]