Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of external JSON-LD generation #617

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Fix handling of external JSON-LD generation #617

merged 1 commit into from
Mar 22, 2024

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Mar 22, 2024

Some DC files didn't create the JSON-LD structure. This fix should get around it.

This PR contains:

  • Fix for creating the external JSON-LD file
  • Add language part into external JSON-LD filename to distinguish the same filename (basic structure is concat($json-ld-base.dir, $lang, '-', $filename)
  • Fix a problem on doc-sle; taking into account $rootid parameter when set to avoid overwriting JSON file.
  • Enable JSON-LD structure for HTML by default

@tomschr tomschr self-assigned this Mar 22, 2024
The previous implementation had an issue with $rootid
set and wasn't reliable. This is corrected now.

Additionally, this commit changes:

* Add language into external JSON-LD filename
* Take into account rootid parameter for filename
* Enable JSON-LD structure for HTML by default
@tomschr
Copy link
Collaborator Author

tomschr commented Mar 22, 2024

Frank tested it and he said it's fine. Many thanks! 👍

@tomschr tomschr marked this pull request as ready for review March 22, 2024 16:53
@tomschr tomschr merged commit 9149f44 into main Mar 22, 2024
1 of 2 checks passed
@tomschr tomschr deleted the json-ld-fix branch March 22, 2024 16:53
tomschr added a commit that referenced this pull request Mar 25, 2024
There were two "about" keys before: one for "Thing" and another for
"WebPage". This created a validation issue. This fix bring them
together in one "about" property.
tomschr added a commit that referenced this pull request Mar 25, 2024
Fix #617: Put task and webpage both into "about"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant