diff --git a/conf.py b/conf.py
index 26aa6e7e6..ff341b972 100644
--- a/conf.py
+++ b/conf.py
@@ -175,21 +175,11 @@ html_favicon = os.path.join(html_theme_path[0], html_theme, 'static', 'img', 'fa
html_static_path = ['static']
html_add_permalinks = 'ΒΆ' # Sphinx < 3.5
html_permalinks = True # Sphinx >= 3.5
-html_js_files = [
- 'js/atom.js',
- 'js/accounts.js',
- 'js/chart-of-accounts.js',
- 'js/entries.js',
- 'js/reconciliation.js',
- 'js/misc.js',
- 'js/inventory.js',
- 'js/coa-valuation-continental.js',
- 'js/coa-valuation-anglo-saxon.js',
-]
-html_css_files = [
- #'css/accounting.css',
- 'css/legal.css',
-]
+# NOTE: only use for global files
+# Page-specific css/js files can be defined with
+# custom-js/custom-css metadata directives.
+html_js_files = []
+html_css_files = []
# Monkeypatch PHP lexer to not require
-
+
+
+ {% set js_files = meta['custom-js'].split(';') %}
+ {% for js_file in js_files %}
+ {% set link = '_static/js/' + js_file %}
+
+ {% endfor %}
+ {% endif %}
+ {# FIXME ANVFEDI Do we really need prefixfree ? It triggers a reload of css files two more times/page #}
+
{{ super() }}
{# TODO EDI boostrap beta cdn ??? Isn't there a stable CDN ? It looks like this cdn won't exist forever :D #}
diff --git a/static/js/entries.js b/static/js/entries.js
index ba3f3cbb2..95ea7ac50 100644
--- a/static/js/entries.js
+++ b/static/js/entries.js
@@ -1,7 +1,8 @@
/* global Immutable, React */
-/* global createAtom */
+/* global createAtom, findAncestor */
(function () {
'use strict';
+ // NOTE VFE: memento.rst
var data = createAtom();
data.addWatch('chart', function (k, m, prev, next) {
diff --git a/static/js/reconciliation.js b/static/js/reconciliation.js
index 50aed9585..6f2aece61 100644
--- a/static/js/reconciliation.js
+++ b/static/js/reconciliation.js
@@ -1,4 +1,5 @@
(function () {
+ // NOTE VFE: memento.rst
document.addEventListener('DOMContentLoaded', function () {
var $rec = $('#reconciliation .reconciliation-example');
if (!$rec.length) { return; }