Browse Source

docs: getting started from scratch

hacking-docs
decentral1se 1 year ago
parent
commit
11c95fb26c
No known key found for this signature in database GPG Key ID: 3789458B3D0C410
  1. 13
      command-line/README.md
  2. 7
      command-line/requirements.txt

13
command-line/README.md

@ -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

7
command-line/requirements.txt

@ -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
Loading…
Cancel
Save