Go to file
2023-08-22 17:46:22 +02:00
command-line publishing the code of a CC version of wiki-to-print 2023-02-01 17:32:15 +01:00
wiki-to-print adding a make setup rule 2023-08-21 12:18:12 +02:00
LICENSE.txt publishing the code of a CC version of wiki-to-print 2023-02-01 17:32:15 +01:00
README.md 'README.md' updaten 2023-02-09 12:36:09 +01:00
wiki-to-print.Common.css.example publishing the code of a CC version of wiki-to-print 2023-02-01 17:32:15 +01:00
wiki-to-print.Common.js.example publishing the code of a CC version of wiki-to-print 2023-02-01 17:32:15 +01:00
wiki-to-print.LocalSettings.php.example adding a LocalSettings example 2023-08-22 17:32:05 +02:00
wiki-to-print.nginx.example publishing the code of a CC version of wiki-to-print 2023-02-01 17:32:15 +01:00
wiki-to-print.service.example adding a systemd service conf example 2023-08-22 17:46:22 +02:00

wiki-to-print

Slightly adapted version of https://github.com/hackersanddesigners/wiki2print, in continuation of https://gitlab.constantvzw.org/titipi/wiki-to-pdf and https://git.vvvvvvaria.org/mb/volumetric-regimes-book.

Installed at: https://cc.vvvvvvaria.org/wiki/Wiki2print.

The code of the wiki-to-print instance that is running on the creative crowd server is published at Varia's Gitea under the CC4r license.

Continuations

This project is inspired by and builds upon several previous iterations of and experiments with mediawiki-to-pdf workflows:

Writing and notes on wiki printing practices:

How does it work?

When you create a page in the Pdf namespace on https://cc.vvvvvvaria.org/wiki/, it will load the wiki-to-print buttons in the navigation bar:

  • CSS!
  • View HTML
  • View PDF
  • Update text
  • Update Media

You can transclude pages into this page, structure your publication and edit the CSS.

  • When you click View HTML: the Flask application returns you a HTML version of the page.
  • When you click View PDF: the Flask application returns you a HTML version of the page, loaded with Paged.js. The HTML page is rendered into pages, giving you a preview of the PDF. You can use the inspector to work on the lay out.
  • When you click Update text: the Flask application makes a copy of all the text of the page and saves it to a file on the server (in the static folder).
  • When you click Update media: the Flask application downloads all the images on the page and saves tem to a folder on the server (in the static folder).

In this repository

  • command-line: Python script to work on a local copy of your publication
  • wiki-to-print: Flask application that renders a wiki page into HTML