Script to generate pages from Arch Wiki in docset format (tested with zeal)
Note: Building may take a long time.
Check Installation for manual instructions.
- git
- dashing (aur link)
- arch-wiki-docs (and its dependencies)
- python
- python-simplemediawiki
- python-lxml
- python-cssselect
- python-requests
Set run permissions
chmod +x arch-wiki-docset.sh
or run with bash
command
Download build and install with
./arch-wiki-docset.sh -d -b -i
or
./arch-wiki-docset.sh --download --build --install
this can be used to update the docset as well
./arch-wiki-docset.sh -d
or
./arch-wiki-docset.sh --download
Downloads english version of the wiki
To download other languages, add the language code to the command
./arch-wiki-docset.sh -d [language code]
or
./arch-wiki-docset.sh --download [language code]
Example
./arch-wiki-docset.sh -d es it fr de
./arch-wiki-docset.sh -b
or
./arch-wiki-docset.sh --build
./arch-wiki-docset.sh -c
or
./arch-wiki-docset.sh --clean
./arch-wiki-docset.sh -i
or
./arch-wiki-docset.sh --install
./arch-wiki-docset.sh -u
or
./arch-wiki-docset.sh --uninstall
The script automatically fetches the docset location from zeal configuration file
./arch-wiki-docset.sh -c
or
./arch-wiki-docset.sh --checkFolder
The wiki has to be redownloaded to check if there are new files
./arch-wiki-docset.sh -r
or
./arch-wiki-docset.sh --redownload
./arch-wiki-docset.sh -p [language code]
or
./arch-wiki-docset.sh --prefLang [language code]
Use this before building the docset.
The script will automatically check if the language code is correct (supports all languages supported by arch-wiki-docs)
./arch-wiki-docset.sh -h
or
./arch-wiki-docset.sh --help