diff --git a/.eleventy.js b/.eleventy.js
index a676dc6..78d3f41 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -115,6 +115,9 @@ module.exports = function(eleventyConfig) {
"node_modules/d3-geo/dist/d3-geo.min.js": "js/d3-geo.js",
"node_modules/topojson-client/dist/topojson-client.min.js": "js/topojson-client.js",
"node_modules/world-atlas/land-110m.json": "land-110m.json",
+ "node_modules/yaml/browser/dist": "js/yaml",
+ "node_modules/drawflow/dist/drawflow.min.js": "js/drawflow.js",
+ "node_modules/drawflow/dist/drawflow.min.css": "js/drawflow.css",
"src/lib": "/lib",
});
diff --git a/.gitignore b/.gitignore
index a3ac561..71e6eca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ package-lock.json
!.gitignore
!.eleventy.js
!.nvmrc
+!src/docs/
diff --git a/README.md b/README.md
index 0cbdedd..afdb9d1 100644
--- a/README.md
+++ b/README.md
@@ -15,3 +15,6 @@ npm install
npm run dev
```
+## Relay and dump worker
+
+`worker/` contains the Cloudflare Worker used by setup, the editor, and support dumps. It deploys separately from the Pages site; see [worker/README.md](worker/README.md) for local tests and deployment configuration.
diff --git a/package.json b/package.json
index f8d1b45..5291746 100644
--- a/package.json
+++ b/package.json
@@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"clean": "rm -rf _site",
+ "test": "node --test tests/",
"dev": "eleventy --serve & npx tailwindcss -i ./src/styles/main.css -o ./_site/styles.css --watch",
"build": "ELEVENTY_PRODUCTION=true eleventy && NODE_ENV=production npx tailwindcss -i ./src/styles/main.css -o ./_site/styles.css --minify"
},
@@ -34,6 +35,7 @@
"canvas-sketch-util": "^1.10.0",
"d3-array": "^3.2.4",
"d3-geo": "^3.1.1",
+ "drawflow": "0.0.60",
"eleventy-plugin-toc": "^1.1.5",
"glsl-noise": "^0.0.0",
"lucide": "^0.507.0",
@@ -42,6 +44,7 @@
"theatre": "^0.2.3",
"three": "^0.176.0",
"topojson-client": "^3.1.0",
- "world-atlas": "^2.0.2"
+ "world-atlas": "^2.0.2",
+ "yaml": "2.6.1"
}
}
diff --git a/src/_data/docVersions.js b/src/_data/docVersions.js
index 657e133..e79da42 100644
--- a/src/_data/docVersions.js
+++ b/src/_data/docVersions.js
@@ -1,6 +1,11 @@
module.exports = {
- latest: "3.3.6",
+ latest: "3.3.7",
versions: [
+ {
+ id: "3.3.7",
+ label: "3.3.7",
+ pathPrefix: "/docs/3.3.7",
+ },
{
id: "3.3.6",
label: "3.3.6",
diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk
index 86bb7ce..6f0a9bf 100644
--- a/src/_includes/layouts/base.njk
+++ b/src/_includes/layouts/base.njk
@@ -20,6 +20,11 @@
+ {% if appPage %}
+ {# scripts only from this site, connections only to this site and the relay; Alpine needs eval, the layout has inline scripts #}
+
+
+ {% endif %}
- {% include "partials/analytics.njk" %}
+ {# the editor and the setup carry a secret in the link: no third-party scripts there #}
+ {% if not appPage %}{% include "partials/analytics.njk" %}{% endif %}
@@ -191,7 +197,7 @@
{% if not hideFooter %}
{% include "partials/footer.njk" %}
{% endif %}
- {% include "partials/cookie-banner.njk" %}
+ {% if not appPage %}{% include "partials/cookie-banner.njk" %}{% endif %}