Skip to content

Commit

Permalink
hopefully it's really fixed!
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Jan 15, 2024
1 parent 41ff0fc commit 6f5d59f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ assets/js/html-form-enhancer.js: node_modules/html-form-enhancer/dist/html-form-
assets/js/serialize-json-form.js: node_modules/html-form-enhancer/dist/serialize-json-form.js
cp node_modules/html-form-enhancer/dist/serialize-json-form.* assets/js

src/data/iana-links.json:
node util/fetch-link-relation-data.mjs > src/data/iana-links.json
data/iana-links.json:
node util/fetch-link-relation-data.mjs > data/iana-links.json
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

1.0.2 (????-??-??)
------------------

* Another JSON file. Files are now explictly included and in the root
directory.


1.0.1 (2024-01-15)
------------------

Expand Down
4 changes: 2 additions & 2 deletions src/data/editor-links.json → data/editor-links.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
},
"authenticated-as": {
"description": "Links to a resource that represents the currently authenticated user",
"href": "https://datatracker.ietf.org/doc/html/draft-pot-authentication-link-01#section-3",
"href": "https://datatracker.ietf.org/doc/html/draft-pot-authentication-link-01#section-3"
},
"logout": {
"description": "Links to the resource where the currently authenticated user can end their session",
"href": "https://datatracker.ietf.org/doc/html/draft-pot-authentication-link-01#section-4",
"href": "https://datatracker.ietf.org/doc/html/draft-pot-authentication-link-01#section-4"
},
"register-user": {
"description": "Links to a resource where a user can sign up for the current resource.",
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"dist",
"LICENSE",
"src",
"assets"
"assets",
"data"
],
"mocha": {
"loader": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/links-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type LinkDescriptions = Record<string, {href: string; description: string}>;

function loadLinkData(fileName: string) {
return JSON.parse(
readFileSync(new URL(import.meta.url + '/..').pathname + '/../data/' + fileName + '.json', 'utf-8')
readFileSync(new URL(import.meta.url + '/..').pathname + '../../data/' + fileName + '.json', 'utf-8')
);
}

Expand Down

0 comments on commit 6f5d59f

Please sign in to comment.