+ stylesheet: Change the layout of the Book/PDF
+ ----- saved to file as volumetric-regimes.css
+ ----- using Etherpump in web-interface.py: the main script of this Flask web-application
+
+ notes was added, to include the organisational dynamics into the Book/PDF making
+
+
+ A shared environment that can be operated as a local command line tool and web-interface, to allow for bridging different situations of viability (related to a shared server, personal hardware, ...).
+
+
+ Collaborative editorial space for Book/PDF making using Etherpads (Ethertoff <> Etherbox <> JupyterPi)
+
+
+ The capacity of the shared server has been monitored, this is the impact of a hard-refresh of the pdf view:
+
+
+
+
+
+
{% endblock %}
diff --git a/web-interface/templates/flask/notes.html b/web-interface/templates/flask/notes.html
new file mode 100644
index 0000000..88abedb
--- /dev/null
+++ b/web-interface/templates/flask/notes.html
@@ -0,0 +1,6 @@
+{% extends "flask/base.html" %}
+
+{% block content %}
+
+{% endblock %}
+
diff --git a/web-interface/update.py b/web-interface/update.py
index 7e6fb73..7614394 100644
--- a/web-interface/update.py
+++ b/web-interface/update.py
@@ -32,7 +32,7 @@ def API_request(url, pagename):
return data
-def download_media(html, images):
+def download_media(html, images, wiki):
"""
html = string (HTML)
images = list of filenames (str)
@@ -98,7 +98,7 @@ def parse_page(pagename, wiki):
if 'parse' in data:
html = data['parse']['text']['*']
images = data['parse']['images']
- html = download_media(html, images)
+ html = download_media(html, images, wiki)
html = clean_up(html)
else:
html = None
diff --git a/web-interface/web-interface.py b/web-interface/web-interface.py
index 0452cb4..b9807f4 100755
--- a/web-interface/web-interface.py
+++ b/web-interface/web-interface.py
@@ -3,6 +3,9 @@ import urllib, json
import os
from update import *
+# To add: server feedback (logging + capacity) using socket io in Flask
+# https://towardsdatascience.com/how-to-add-on-screen-logging-to-your-flask-application-and-deploy-it-on-aws-elastic-beanstalk-aa55907730f
+
# Create the application.
APP = flask.Flask(__name__)
@@ -34,6 +37,10 @@ def pad():
return flask.render_template('flask/index.html', title=PROJECT_NAME)
+@APP.route('/notes/', methods=['GET'])
+def notes():
+ return flask.render_template('flask/notes.html')
+
@APP.route('/update/', methods=['GET', 'POST'])
def update():
publication_unfolded = update_material_now(PAGENAME, WIKI) # download the latest version of the page