Wiki-to-print: Difference between revisions

From creative crowd wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 32: Line 32:


See the issue tracker of the git repository: https://git.vvvvvvaria.org/varia/wiki-to-print/issues
See the issue tracker of the git repository: https://git.vvvvvvaria.org/varia/wiki-to-print/issues
==On the server==
$ sudo service wiki2print status
$ sudo service wiki2print start
$ sudo service wiki2print stop
$ sudo service wiki2print restart
===For debugging===
You can find the files of wiki-to-print here:
$ cd /var/www/wiki2print/web-interface/
$ ls
├── Makefile
├── __pycache__
├── api.py
├── plugins
├── readme.md
├── requirements.txt
├── static
├── templates
├── update.py
├── venv
└── web-interface.py
* web-interface.py: the flask application
* api.py: script with all the functions that are used by the flask application
You can run the flask application directly (instead of running it as a systemd service):
$ make server
If you add prints statements in the python files you can see the result in the terminal.

Revision as of 11:54, 22 June 2023

 


Network of wiki-publishing experiments

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.

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

How does it work?

When you create a page in the Pdf namespace, it will load the wiki2print buttons in the navigation bar:

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

wiki-to-print environments

wiki-to-print log

See the issue tracker of the git repository: https://git.vvvvvvaria.org/varia/wiki-to-print/issues

On the server

$ sudo service wiki2print status
$ sudo service wiki2print start
$ sudo service wiki2print stop
$ sudo service wiki2print restart

For debugging

You can find the files of wiki-to-print here:

$ cd /var/www/wiki2print/web-interface/
$ ls
├── Makefile
├── __pycache__
├── api.py
├── plugins
├── readme.md
├── requirements.txt
├── static
├── templates
├── update.py
├── venv
└── web-interface.py
  • web-interface.py: the flask application
  • api.py: script with all the functions that are used by the flask application

You can run the flask application directly (instead of running it as a systemd service):

$ make server

If you add prints statements in the python files you can see the result in the terminal.