A python3 only version of the arch-wiki-docs package with less python2.
if you want to download the entire arch wiki for offline availability, so you can confidently wreck your network drivers and such but don't like python2, you can use this.
it's basically the same as the original with the old py2 libraries replaced with their py3 counterparts and some required fixes
-
download and cd
git clone https://github.com/verbuggt/arch-wiki-docs-py3.git && cd arch-wiki-docs-py3
-
install python3-venv, create virtual python3 environment and source into it
sudo apt install -y python3-venv && python3 -m venv venv && source venv/bin/activate
-
install requirements
pip3 install -r requirements.txt
-
apply patches
on Linux/OSX:cp simplemediawiki.py venv/lib/python*/site-packages/
on windows: move the simplemediawiki.py tovenv/lib/python3.X/site-packages/
- start downloading (all languages - for specific language see below)
python3 arch-wiki-docs.py --output-directory wiki
to download the wiki in English only run:
dingus@bingus:~$ python3 arch-wiki-docs.py --output-directory wiki --lang en
to update your copy of the wiki, just run the same command used for downloading again. changed files will be downloaded, unchanged files will be skipped
you may wish to automate this
Language selection only works for English
so this will not work:
dingus@bingus:~$ python3 arch-wiki-docs.py --output-directory wiki --lang de
if you want any other language, you need to edit the file Arch-Wiki/ArchWiki.py
and change local_language
(line 16) to your desired language (locale name)
so for German, that would mean changing local_language
to "Deutsch"
then you can run the script with --lang [country_code]
where country_code
is the ISO3166-1 Alpha-2-Code
maybe fix language selection
priority: -2
ok thats it :3