You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
2 years ago
|
# ATNOFS Documentation contraption
|
||
|
|
||
|
## Current sketch
|
||
|
|
||
|
Currently a python script that will downloads all the chapters as listed here:
|
||
|
<https://octomode.vvvvvvaria.org/atnofs-index/pad/>
|
||
|
|
||
|
Listed as pads, it will download the HTML + CSS of the pages, and then creates PDF out of them with pagedjs-cli.
|
||
|
|
||
|
It then compiles the full pdf with pypdftk.
|
||
|
|
||
|
## Or...
|
||
|
|
||
|
Maybe it should instead make a very long html from the previews?
|
||
|
<https://octomode.vvvvvvaria.org/atnofs-index/preview.html>
|
||
|
In case we'll want page numbers, etc from pagedjs.
|
||
|
|
||
|
## Requirements
|
||
|
|
||
|
* apt install python3
|
||
|
* pip3 install pypdftk
|
||
|
* npm install -g pupeteer
|
||
|
* export NODE_CHROMIUM_REVISION=729994
|
||
|
node .nvm/versions/node/v18.12.1/lib/node_modules/pagedjs-cli/node_modules/puppeteer/install.js
|
||
|
* npm install -g chromium
|
||
|
* npm install -g pagedjs-cli
|
||
|
## Sandbox
|
||
|
|
||
|
To be able to use pagedjs-cli, one need to build a chrome-sandbox (...):
|
||
|
chown root:root chrome_sandbox
|
||
|
sudo chmod 4755 chrome_sandbox
|
||
|
sudo cp chrome_sandbox /usr/local/sbin/chrome-devel-sandbox
|
||
|
export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
|