pppadump/README.md

76 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2021-12-06 17:34:16 +01:00
pppadump
2015-02-26 13:54:26 +01:00
=========
2015-02-26 17:15:41 +01:00
2021-12-10 11:09:37 +01:00
Bunch of scripts to extract documents from an [etherpad](http://etherpad.org/) instance and produce templated static files.
2015-02-26 17:15:41 +01:00
2021-12-10 11:09:37 +01:00
Forked from [constant](https://constantvzw.org/site/)'s [active archives](http://activearchives.org/wiki/Main_Page) [etherdump](https://gitlab.constantvzw.org/aa/etherdump) mixed with logic devised for [varia](https://varia.zone)'s [etherpump](https://git.vvvvvvaria.org/varia/etherpump) project
Requirements / dependencies
2015-02-26 17:15:41 +01:00
-------------
2021-12-10 11:09:37 +01:00
* python3 / pip3
2016-10-17 15:40:16 +02:00
* html5lib
2021-12-10 11:09:37 +01:00
* requests
* python-dateutil,
* jinja2
2015-02-26 17:15:41 +01:00
2015-03-05 16:24:23 +01:00
Installation
-------------
2021-12-10 11:09:37 +01:00
pip3 install python-dateutil jinja2 html5lib
2015-09-17 18:47:25 +02:00
python setup.py install
2015-03-05 16:24:23 +01:00
2019-06-14 13:20:49 +02:00
Usage
2016-10-17 13:06:56 +02:00
---------------
mkdir mydump
cd myddump
2021-12-06 17:34:16 +01:00
pppadump init
2016-10-17 13:06:56 +02:00
The program then interactively asks some questions:
2015-06-18 14:56:48 +02:00
2016-10-17 13:06:56 +02:00
Please type the URL of the etherpad:
http://automatist.local:9001/
The APIKEY is the contents of the file APIKEY.txt in the etherpad folder
Please paste the APIKEY:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2015-06-18 14:56:48 +02:00
2021-12-06 17:34:16 +01:00
The settings are placed in a file called .pppadump/settings.json and are used (by default) by future commands.
2015-06-18 14:56:48 +02:00
2021-12-06 17:34:16 +01:00
pppadump list
2019-06-14 13:20:49 +02:00
You should see a list of pads.
2015-06-18 14:56:48 +02:00
2015-09-17 18:47:25 +02:00
subcommands
2015-06-18 14:56:48 +02:00
----------
2016-10-17 13:06:56 +02:00
* init
* pull
2015-09-17 18:47:25 +02:00
* list
* listauthors
2015-11-19 12:52:35 +01:00
* gettext
2016-10-17 15:40:31 +02:00
* settext
2015-11-19 12:52:35 +01:00
* gethtml
* creatediffhtml
2015-09-17 18:47:25 +02:00
* revisionscount
2016-10-17 15:40:16 +02:00
* index
2016-10-17 15:40:31 +02:00
* deletepad
2019-06-14 13:22:39 +02:00
* pushhtml
2015-06-18 14:56:48 +02:00
2015-09-17 18:47:25 +02:00
To get help on a subcommand:
2015-06-18 14:56:48 +02:00
2021-12-06 17:34:16 +01:00
pppadump revisionscount --help
2015-11-13 11:03:57 +01:00
2016-10-17 15:40:16 +02:00
Magicwords
=================
2021-09-16 12:07:34 +02:00
Following the suggestions of sister project/friendly fork [etherpump](https://git.vvvvvvaria.org/varia/etherpump/), the magic word mechanism has been expanded (from the inital single hard coded \_\_NOPUBLISH__ value) to and generalized to allow a the use of text markers in the source text to control various options, including options for use in preprocessing and translation of markdown using pandoc.
2019-06-14 13:20:49 +02:00
2016-10-17 15:40:16 +02:00
Originally designed for use at: [constant](http://etherdump.constantvzw.org/).