This is a example of exporting wikijs site pages to PDF using site-exporter-pdf tool.
wikijs-exporter-demo.mp4
- Open this repository in Github Codespaces
- Update the config.yml file with your wikijs site informations.
or, you can run the wikijs container provided in this repository by runningthis may not work as codespaces require github authentication when accessing the site.task up.
- Update the
.envfile with your WikiJS JWT token - run
sudo chmod 777 ./outto allow write access to the./outdirectory. - run
task pdf:exportto export the site pages to PDF in the./outdirectory.
Prerequisites: Docker, DevContainer Extension in VSCode
- Open this repository in VSCode
- Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac)
- Select "Dev Containers: Reopen in Container"
- Run the
task pdf:exporttask
- Open your browser's Developer Tools (F12 or right-click > Inspect > Applications Tab > Cookies > http://localhost:3000)
- Login to your wikijs
- Copy the value of the
jwtcookie - Paste it in the
.envfile
This project is licensed under the GPL-3.0 license. See the LICENSE file for more details.