From 19883af56fb78b88239b1b4e1e4a944edc988b94 Mon Sep 17 00:00:00 2001
From: "David I. Lehn"
Date: Sat, 24 Feb 2024 00:04:36 -0500
Subject: [PATCH 01/33] Remove empty file.
---
earl.jsonld | 0
1 file changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 earl.jsonld
diff --git a/earl.jsonld b/earl.jsonld
deleted file mode 100644
index e69de29bb..000000000
From e95d49b006f158682c2c756539ce9464cf17dffc Mon Sep 17 00:00:00 2001
From: "David I. Lehn"
Date: Fri, 23 Feb 2024 21:18:01 -0500
Subject: [PATCH 02/33] Convert to Eleventy.
- Copy and ignore files as needed.
- Comment out old `prettify.css` usage.
- Move `learn.html` to `learn/index.html` and update links. This could
break external links, but is aligned with the pattern of other files
and dirs. Eleventy will put it in `learn/` by default either way
without an override.
- `specs/`, `primer/`, and `requirements/`:
- Generate sub-dir listing data with JS.
- Switch from PHP to LiquidJS.
---
.eleventy.js | 52 ++++++++++++
.gitignore | 1 +
images/index.html | 4 +-
index.html | 4 +-
learn.html => learn/index.html | 18 ++---
package.json | 15 ++++
playground/1.0/index.html | 2 +-
playground/dev/index.html | 2 +-
playground/index.html | 2 +-
primer/{index.php => index.html} | 120 +++++++++++++---------------
requirements/index.11tydata.js | 44 +++++++++++
requirements/index.html | 123 +++++++++++++++++++++++++++++
requirements/index.php | 131 -------------------------------
spec/index.11tydata.js | 49 ++++++++++++
spec/{index.php => index.html} | 99 ++++++-----------------
test-suite/index.html | 2 +-
test-suite/vocab.html | 2 +-
test-suite/vocab_template.haml | 2 +-
18 files changed, 383 insertions(+), 289 deletions(-)
create mode 100644 .eleventy.js
rename learn.html => learn/index.html (92%)
create mode 100644 package.json
rename primer/{index.php => index.html} (54%)
create mode 100644 requirements/index.11tydata.js
create mode 100644 requirements/index.html
delete mode 100644 requirements/index.php
create mode 100644 spec/index.11tydata.js
rename spec/{index.php => index.html} (82%)
diff --git a/.eleventy.js b/.eleventy.js
new file mode 100644
index 000000000..bb5a141dc
--- /dev/null
+++ b/.eleventy.js
@@ -0,0 +1,52 @@
+const drafts = [
+ 'CG-FINAL',
+ 'CR',
+ 'ED',
+ 'FCGS',
+ 'PR',
+ 'REC',
+ 'WD',
+ 'latest'
+];
+
+module.exports = function(eleventyConfig) {
+ eleventyConfig.addPassthroughCopy('.htaccess');
+ eleventyConfig.addPassthroughCopy('LICENSE.md');
+ eleventyConfig.addPassthroughCopy('benchmarks/**/*.{jsonld,nq,md}');
+ eleventyConfig.addPassthroughCopy('contexts/**/*.{htaccess,html,jsonld}');
+ eleventyConfig.addPassthroughCopy('contexts/{event,person,place,recipe,remote-context}');
+ eleventyConfig.addPassthroughCopy('examples/**/*.{html,ttl,txt,json}');
+ eleventyConfig.addPassthroughCopy('favicon.ico');
+ eleventyConfig.addPassthroughCopy('fonts');
+ eleventyConfig.addPassthroughCopy('images/**/*.{htaccess,png,svg,xcf}');
+ eleventyConfig.addPassthroughCopy('ns/**/*.{html,jsonld}');
+ eleventyConfig.addPassthroughCopy('playground/**/*.{css,php,js}');
+ eleventyConfig.addPassthroughCopy('presentations');
+ eleventyConfig.addPassthroughCopy('schemas/**/*.json');
+ eleventyConfig.addPassthroughCopy('site.css');
+ eleventyConfig.addPassthroughCopy('spec/LICENSE.md');
+ for(const draft of drafts) {
+ eleventyConfig.addPassthroughCopy(`spec/${draft}`);
+ }
+ eleventyConfig.addPassthroughCopy('static');
+ eleventyConfig.addPassthroughCopy('test-suite');
+ eleventyConfig.addPassthroughCopy('utils');
+ eleventyConfig.ignores.add('CONTRIBUTING.md');
+ eleventyConfig.ignores.add('LICENSE.md');
+ eleventyConfig.ignores.add('README.rst');
+ eleventyConfig.ignores.add('benchmarks/README.md');
+ eleventyConfig.ignores.add('contexts/person.html');
+ eleventyConfig.ignores.add('examples');
+ eleventyConfig.ignores.add('images/README.md');
+ eleventyConfig.ignores.add('minutes/**/*');
+ eleventyConfig.ignores.add('ns/json-ld.html');
+ eleventyConfig.ignores.add('playground/dev/README.md');
+ eleventyConfig.ignores.add('presentations');
+ eleventyConfig.ignores.add('scripts');
+ eleventyConfig.ignores.add('spec/tools');
+ eleventyConfig.ignores.add('spec/LICENSE.md');
+ for(const draft of drafts) {
+ eleventyConfig.ignores.add(`spec/${draft}`);
+ }
+ eleventyConfig.ignores.add('test-suite');
+};
diff --git a/.gitignore b/.gitignore
index edfb95873..07504bcf6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
.DS_Store
node_modules
playground/jsonld.js
+_site
diff --git a/images/index.html b/images/index.html
index 4ad5c9d9b..00b88149e 100644
--- a/images/index.html
+++ b/images/index.html
@@ -19,7 +19,7 @@
-
+
@@ -52,7 +52,7 @@
Playground
- Documentation
+ Documentation
Developers
diff --git a/index.html b/index.html
index 576b455dc..b7d6c733b 100644
--- a/index.html
+++ b/index.html
@@ -56,7 +56,7 @@
Playground
- Documentation
+ Documentation
Developers
@@ -502,7 +502,7 @@
video, presentations, tutorials, and documentation about JSON-LD. Assuming you
are familiar with JSON, these training materials will help you quickly
put the power of JSON-LD into your web development efforts.
- Learn more about JSON-LD
+ Learn more about JSON-LD
diff --git a/learn.html b/learn/index.html
similarity index 92%
rename from learn.html
rename to learn/index.html
index f950aa680..711ada32e 100644
--- a/learn.html
+++ b/learn/index.html
@@ -16,9 +16,9 @@
-
-
-
+
+
+
@@ -43,16 +43,16 @@
- JSON-LD
+ JSON-LD
@@ -145,6 +145,6 @@ Blog Posts
-
+