Skip to content

A python3 only version of the arch-wiki-docs package with less python2.

License

Notifications You must be signed in to change notification settings

verbuggt/arch-wiki-docs-py3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arch-wiki-docs-py3

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

installation

  1. download and cd
    git clone https://github.com/verbuggt/arch-wiki-docs-py3.git && cd arch-wiki-docs-py3

  2. 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

  3. install requirements
    pip3 install -r requirements.txt

  4. apply patches
    on Linux/OSX: cp simplemediawiki.py venv/lib/python*/site-packages/
    on windows: move the simplemediawiki.py to venv/lib/python3.X/site-packages/

start the download

  1. start downloading (all languages - for specific language see below)
    python3 arch-wiki-docs.py --output-directory wiki

language selection

to download the wiki in English only run:

dingus@bingus:~$ python3 arch-wiki-docs.py --output-directory wiki --lang en

update

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

issues

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

TODO

maybe fix language selection
priority: -2


ok thats it :3

About

A python3 only version of the arch-wiki-docs package with less python2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages