Skip to content

Commit af10caa

Browse files
committed
Add JSON label
1 parent 6b74ef6 commit af10caa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/finalizing/utils/generate-readme-md.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export function renderReadmeMd(templateFile, context, metadata) {
1313
env.addFilter('fileType', (mediaType) => {
1414
switch (mediaType) {
1515
case 'text/turtle': return 'Turtle';
16+
case 'application/json': return 'JSON';
1617
case 'application/ld+json': return 'JSON-LD';
1718
case 'application/rdf+xml': return 'RDF/XML';
1819
case 'application/n-triples': return 'N-Triples';
@@ -22,6 +23,7 @@ export function renderReadmeMd(templateFile, context, metadata) {
2223
env.addFilter('pageId', (mediaType) => {
2324
switch (mediaType) {
2425
case 'text/turtle': return 'turtle';
26+
case 'application/json': return 'json';
2527
case 'application/ld+json': return 'jsonld';
2628
case 'application/rdf+xml': return 'rdfxml';
2729
case 'application/n-triples': return 'ntriples';

0 commit comments

Comments
 (0)