.. | ||
css | ||
js | ||
templates | ||
Makefile | ||
README.md | ||
update.py |
CLI for wiki-to-print
The script uses the MediaWiki API to download all content (text + images) from a specified wiki page.
It saves it as a HTML page, which can be turned into a PDF with Paged.js.
Folder structure
.
├── css
│ ├── baseline.css
│ ├── pagedjs.css
│ └── print.css
├── fonts
├── images
├── js
│ ├── paged.js
│ └── paged.polyfill.js
├── Makefile
├── templates
│ ├── template.html
│ └── template.inspect.html
└── update.py
How to use it?
- Change the
wiki
andpagename
variables inupdate.py
on line 221 + 222. - Copy paste your CSS into print.css
- Run
$ python3 update.py
- Run
$ make
- Open
localhost:8000
in your browser