Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewritten kiwix-manage man #576

Merged
merged 6 commits into from
Sep 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
84 changes: 47 additions & 37 deletions src/man/kiwix-manage.1
Original file line number Diff line number Diff line change
@@ -1,62 +1,72 @@
.TH KIWIX 1 "21 May 2012"
.TH KIWIX-MANAGE 1 "21 May 2012"

.SH NAME
kiwix\-manage \- Kiwix Library Manager

.SH SYNOPSIS
.IX Header SYNOPSIS
.B kiwix\-manage
.br
kiwix\-manage LIBRARY_PATH add ZIM_PATH ...
.br
kiwix-manage LIBRARY_PATH show [CONTENTID1] [CONTENTID2] ...
.br
kiwix\-manage LIBRARY_PATH remove CONTENTID1 [CONTENTID2]
.TP
\fBkiwix\-manage\fR LIBRARY_PATH add ZIM_PATH ...
.TP
\fBkiwix\-manage\fR LIBRARY_PATH show [ZIM_ID_1] [ZIM_ID_2] ...
.TP
\fBkiwix\-manage\fR LIBRARY_PATH remove ZIM_ID_1 [ZIM_ID_2] ...
kelson42 marked this conversation as resolved.
Show resolved Hide resolved
.TP
\fBkiwix\-manage\fR --version
.TP
\fBkiwix\-manage\fR --help

.SH DESCRIPTION
.SS kiwix\-manage
.PP
\fBkiwix\-manage\fP tool for managing a kiwix library.
.PP
Allows one to manage the content of the kiwix library. The library file is a
flat XML file listing ZIM files with all necessary information like favicon,
date, creator, description, indexpath, filepath, title, source/metalink, etc.
.
\fBkiwix\-manage\fP is a command line tool for manipulating a Kiwix XML library.
.PP
Example library file can be found at https://www.kiwix.org/library\.xml
.br
\fBkiwix\-manage\fP allows to manage the entries of the Kiwix
library. The library file is a flat XML file listing ZIM files with
all necessary information like id, favicon, date, creator,
description, filepath, title, url, etc.

.SH ACTIONS

.TP
\fBadd\fR
Add \fBZIM_FILE\fP to \fBLIBRARY_FILE\fP.
Add \fBZIM_FILE\fP to \fBLIBRARY_FILE\f.
kelson42 marked this conversation as resolved.
Show resolved Hide resolved

.TP
\fBremove\fR
Remove the given \fBZIM_ID\fR from \fBLIBRARY_FILE\fR. At least one \fBZIM_ID\fR should be specified.

.TP
\fBshow\fR
Show given \fBCONTENT_ID\fP from \fBLIBRARY_FILE\fR. If no \fBCONTENT_ID\fP is given then all contents from \fBLIBRARY_FILE\fR are shown.
Show given \fBZIM_ID\fP from \fBLIBRARY_FILE\fR. If no \fBZIM_ID\fP is given then all contents from \fBLIBRARY_FILE\fR are shown.

.SH OPTIONS
.TP
\fBremove\fR
Remove the given \fBCONTENT_ID\fR from \fBLIBRARY_FILE\fR. At least one \fBCONTENT_ID\fR should be specified.
Options to be used with the action \fBadd\fR:

.TP
\fB\-\-zimPathToSave=\fR
Change the location reference of the ZIM file in the library.
\fB\-\-url=HTTP_URL\fR
veloman-yunkan marked this conversation as resolved.
Show resolved Hide resolved
Set the ZIM online HTTP(S) URL

.TP
\fB\-\-current\fR
Mark this content as the current (default) content in the library.
\fB\-\-zimPathToSave=OTHER_FS_PATH\fR
veloman-yunkan marked this conversation as resolved.
Show resolved Hide resolved
Set an arbitrary ZIM filesystem path (instead of the ZIM_PATH)

.TP
\fB\-\-backend=xapian|clucene\fR
Select an indexing backend.
Other options (to be used alone):

.TP
\fB\-\-indexPath=FULLTEXT_IDX_PATH\fR
Path to full-text index for that ZIM file.
\fB\-\-help | \-h
kelson42 marked this conversation as resolved.
Show resolved Hide resolved
Display the kiwix-manage help

.TP
\fBurl\fR
Set the content location of the ZIM file over the network for in\-kiwix download.
\fB\-\-version | \-v
kelson42 marked this conversation as resolved.
Show resolved Hide resolved
Display the version of kiwix-manage and all dependences

.SH EXAMPLE
Example library file can be found at https://download.kiwix.org/library/library_zim\.xml
kelson42 marked this conversation as resolved.
Show resolved Hide resolved

.SH SEE ALOS
kelson42 marked this conversation as resolved.
Show resolved Hide resolved
kiwix\-serve(1)

.SH SEE ALSO
kiwix(1) kiwix\-serve(1)
.SH AUTHOR
Emmanuel Engelhart <kelson@kiwix.org>
.br
Vasudev Kamath <kamathvasudev@gmail.com> (Manual)
.SH AUTHORS
Kiwix team <contact@kiwix.org>