[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:
- [elpa] externals/kiwix d2065a1 152/192: fix default browse-url variable name, (continued)
- [elpa] externals/kiwix d2065a1 152/192: fix default browse-url variable name, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 4082292 155/192: provide a helper function to refresh available kiwix libraries, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 7e18994 158/192: add a custom option for kiwix default libraries path, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 4243689 156/192: check whether Docker image "kiwix/kiwix-serve" is available, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d7c4778 162/192: select library require matched in candidates, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5b5b117 163/192: improve the kiwix-query URL to use the search API, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f4a1e2d 164/192: rename function* -> cl-function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix cf6fc32 165/192: add :status-code handler, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 3fe879f 168/192: refresh libraries before selecting library, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 716c5f6 169/192: Docker container launch command use library.xml index file, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix cd95bc9 171/192: update README: using libraries index file "library.xml",
Stefan Monnier <=
- [elpa] externals/kiwix 9db0a13 172/192: display screenshots at beginning, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5f64044 175/192: support detect whether query is chinese, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 6c6c443 176/192: fix Org link open function, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 7fda411 184/192: fix org-link-set-parameters functions not available when Org not loaded, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 5bd84a6 187/192: select kiwix library when completing org link, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix d92a371 189/192: Fix some byte-compile warnings, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 905a413 192/192: Fix #4 add GNU license info in package source code file, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix 2d33910 072/192: Merge tag 'v0.5.0' into develop, Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix bf128fb 087/192: Merge branch 'hotfix/void-function_org-link-set-parameters', Stefan Monnier, 2020/12/19
- [elpa] externals/kiwix f3a2d8f 091/192: Merge branch 'release/0.6.1', Stefan Monnier, 2020/12/19