docs: getting started from scratch

This commit is contained in:
decentral1se 2023-03-29 18:46:27 +02:00
parent 361a70fa6c
commit 11c95fb26c
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
2 changed files with 15 additions and 5 deletions

View File

@ -27,8 +27,11 @@ It saves it as a HTML page, which can be turned into a PDF with Paged.js.
## How to use it?
1. Change the `wiki` and `pagename` variables in `update.py` on line 221 + 222.
2. Copy paste your CSS into print.css
3. Run `$ python3 update.py`
4. Run `$ make`
5. Open `localhost:8000` in your browser
1. Change the `wiki` and `pagename` (e.g. `Pdf:Foobar`) variables in `update.py` on line 221 + 222.
1. Copy paste your CSS into print.css
1. `python3 -m venv .venv && source .venv/bin/activate`
1. `pip install -r requirements.txt`
1. Run `import nltk; nltk.download('punkt')` in a `python3` interpreter
1. Run `$ python3 update.py`
1. Run `$ make`
1. Open `localhost:8000` in your browser

View File

@ -0,0 +1,7 @@
click==8.1.3
Jinja2==3.1.2
joblib==1.2.0
MarkupSafe==2.1.2
nltk==3.8.1
regex==2023.3.23
tqdm==4.65.0