Skip to content

Commit a0ddaef

Browse files
committed
Update common files.
1 parent 96115e7 commit a0ddaef

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

common/extract-examples.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def dataset_to_table(repo)
196196

197197
File.open(input, "r") do |f|
198198
doc = Nokogiri::HTML.parse(f.read)
199-
doc.css(".example").each do |element|
199+
doc.css(".example, .illegal-example").each do |element|
200200
error = nil
201201
warn = nil
202202
example_number += 1 if %w(pre aside).include?(element.name)
@@ -238,7 +238,7 @@ def save_example(examples:, element:, title:, example_number:, error:, warn:)
238238
context_for: element.attr('data-context-for'),
239239
context: element.attr('data-context'),
240240
base: element.attr('data-base'),
241-
ignore: element.attr('data-ignore'),
241+
ignore: element.attr('data-ignore') || element.attr('class').include?('illegal-example'),
242242
flatten: element.attr('data-flatten'),
243243
compact: element.attr('data-compact'),
244244
fromRdf: element.attr('data-from-rdf'),
@@ -630,4 +630,4 @@ def save_example(examples:, element:, title:, example_number:, error:, warn:)
630630
exit(1)
631631
end
632632

633-
exit(0)
633+
exit(0)

common/jsonld.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@ const jsonld = {
22
// Add as the respecConfig localBiblio variable
33
// Extend or override global respec references
44
localBiblio: {
5+
"JSON-LD11": {
6+
title: "JSON-LD 1.1",
7+
href: "https://w3c.github.io/json-ld-syntax/",
8+
authors: ["Gregg Kellogg", "Pierre-Antoine Champin"],
9+
publisher: "W3C",
10+
status: 'FPWD',
11+
date: '10 May 2019'
12+
},
13+
"JSON-LD11-API": {
14+
title: "JSON-LD 1.1 Processing Algorithms and API",
15+
href: "https://w3c.github.io/json-ld-api/",
16+
authors: ["Gregg Kellogg"],
17+
publisher: "W3C",
18+
status: 'FPWD',
19+
date: '10 May 2019'
20+
},
21+
"JSON-LD11-FRAMING": {
22+
title: "JSON-LD 1.1 Framing",
23+
href: "https://w3c.github.io/json-ld-framing/",
24+
authors: ["Gregg Kellogg"],
25+
publisher: "W3C",
26+
status: 'FPWD',
27+
date: '10 May 2019'
28+
},
529
// aliases to known references
630
"IEEE-754-2008": {
731
title: "IEEE 754-2008 Standard for Floating-Point Arithmetic",

0 commit comments

Comments
 (0)