|
|
@ -22,6 +22,37 @@ Then install [pagedjs-cli](https://gitlab.coko.foundation/pagedjs/pagedjs-cli),
|
|
|
|
|
|
|
|
|
|
|
|
`npm install -g pagedjs-cli`
|
|
|
|
`npm install -g pagedjs-cli`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
___ in case pagedjs-cli does not show up, follow these instructions:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check the version of node (this should be: v16.17.0)
|
|
|
|
|
|
|
|
'$ node --version'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check if nvm is installed
|
|
|
|
|
|
|
|
'$ nvm'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if nvm does not show up, install nvm with the following command:
|
|
|
|
|
|
|
|
'$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
copy the following code into the terminal:
|
|
|
|
|
|
|
|
'export NVM_DIR="$HOME/.nvm"
|
|
|
|
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
|
|
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install the latest version of nvm:
|
|
|
|
|
|
|
|
'$ nvm install --lts'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check the version of node (this should be: v16.17.0)
|
|
|
|
|
|
|
|
'$ node --version'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
now install paged.js:
|
|
|
|
|
|
|
|
$ npm install -g pagedjs-cli
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check if it is installed:
|
|
|
|
|
|
|
|
$ whereis pagedjs-cli
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add this path to settings.py
|
|
|
|
|
|
|
|
/home/ana/.nvm/versions/node/v16.17.0/bin/pagedjs-cli
|
|
|
|
|
|
|
|
|
|
|
|
Finally edit a copy of `settings.example.py` and save it as `settings.py`.
|
|
|
|
Finally edit a copy of `settings.example.py` and save it as `settings.py`.
|
|
|
|
It is important to set the `PAGEDJS_BINARY_PATH`, you should be able to find it
|
|
|
|
It is important to set the `PAGEDJS_BINARY_PATH`, you should be able to find it
|
|
|
|
by running: `whereis pagedjs-cli`.
|
|
|
|
by running: `whereis pagedjs-cli`.
|
|
|
|