commit c936a381c3a924fb7a74bd66c7b304966a676cd4 Author: varia server Date: Tue May 7 23:54:02 2019 +0200 first commit to the etherdump @ varia repo :) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8315b7e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.etherdump +publish/ +publish/* +index.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..c6ad345 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# etherdump @ Varia + +Hosted at and . + +Welcome to the Varia Etherpad zone. This is a list of pads that have been deliberately published by its authors. +The Etherpad is used as collaborative writing tool to document/coordinate projects, gatherings, meetings or public events that happen in and related to Varia. + +This zone is made with [Etherdump](https://gitlab.constantvzw.org/aa/etherdump), a lovely piece of software produced and used through [Constant](http://constantvzw.org), +that extends the multi writing and publishing functionalities of the Etherpad, but catches its content when it falls. +This Etherdump installation (currently) converts pads into *html*, *txt* and *json* documents. + +But this and other things might change. ;) + +This installation of etherdump is running on the [publish-vs-nopublish branch](https://gitlab.constantvzw.org/decentral1se/etherdump). + +It list only includes pads that are tagged with the magic word `__PUBLISH__` (which is an *opt-in* keyword). + + diff --git a/cron.sh b/cron.sh new file mode 100755 index 0000000..de27ed6 --- /dev/null +++ b/cron.sh @@ -0,0 +1,10 @@ +# This will dump all the pads with a __PUBLISH__ tag into a folder "publish" as meta.json, txt, html and dhtml +etherdump pull --all --meta --text --dhtml --publish __PUBLISH__ --publish-opt-in --pub /var/www/etherdump/publish --fix-names --no-raw-ext + +# This will make an index for the dump +etherdump index input \ + /var/www/etherdump/publish/*.meta.json \ + --order lastedited \ + --templatepath /var/www/etherdump/templates \ + --title "etherdump @ Varia" \ + --output index.html diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..077b01b --- /dev/null +++ b/styles.css @@ -0,0 +1,25 @@ +body{ + background-color: #fdff99; + margin:1em; + line-height: 1.3; +} +#welcome{ + max-width: 600px; + margin:1em 0; +} +table{ + min-width: 800px; +} +th, td{ + text-align: left; + padding:0 1em 0 0; +} +hr{ + border:0; + border-bottom:1px solid; + margin:2em 0 1em; +} +#footer{ + max-width: 600px; + font-size: smaller; +} \ No newline at end of file diff --git a/templates/pad.html b/templates/pad.html new file mode 100644 index 0000000..41385f0 --- /dev/null +++ b/templates/pad.html @@ -0,0 +1,17 @@ + + + + + {{title}} + + + + + + + +{{body}} + + diff --git a/templates/pad_colors.html b/templates/pad_colors.html new file mode 100644 index 0000000..39cdf25 --- /dev/null +++ b/templates/pad_colors.html @@ -0,0 +1,17 @@ + + + +{{padid}} + + + +{{ style }} + + +{{ html }} + + + + \ No newline at end of file diff --git a/templates/pad_index.html b/templates/pad_index.html new file mode 100644 index 0000000..1d52f8d --- /dev/null +++ b/templates/pad_index.html @@ -0,0 +1,128 @@ + + + + + + + +
+ +
+
+ versions +
+ + + + + + + + +
padid{{padid}}
lastedited{{lastedited_iso}}
revisions{{revisions}}
versions + +
+
+ + + + diff --git a/templates/rss.xml b/templates/rss.xml new file mode 100644 index 0000000..8c7e829 --- /dev/null +++ b/templates/rss.xml @@ -0,0 +1,33 @@ + + + + {{title}} + + {{siteurl}} + {{description}} + {{utcnow}} + {{language}} + {{updatePeriod}} + {{updateFrequency}} + {{generator}} + +{% for p in pads %} + + {{p.pad}} + {{p.link}} + {{p.lastedited_822}} + {{p.link}} + + {% if content %}{% endif %} + +{% endfor %} + + +