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

Add "WebPage" type to JSON-LD #612

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Add "WebPage" type to JSON-LD #612

merged 1 commit into from
Mar 25, 2024

Conversation

tomschr
Copy link
Collaborator

@tomschr tomschr commented Mar 5, 2024

Additional entry which creates pointers to all enabled formats. Looks like this:

"about": [
  {
     "@type": "WebPage",
     "url": "https://documentation.suse.com/sles/15-SP5/html/SLES-raspberry-pi/",
     "encodingFormat": "text/html"
  },
  {
     "@type": "WebPage",
     "url": "https://documentation.suse.com/sles/15-SP5/pdf/SLES-raspberry-pi_en.pdf",
     "encodingFormat": "application/pdf"
  },
]

It's extracted from the Docserv config file. The URL is comprised from these Docserv config elements:

  • <product productid="..."> => $productid
  • <docset setid="..."> => $docset
  • <format .../> = $format
  • <dc> / <subdeliverable> => $filename
  • <language lang="..."> => used in the filename for PDF
https://documentation.suse.com/$productid/$docset/$format/$filename

Additional entry which creates pointers to all enabled
formats. Looks like this:

"about": [
  {
     "@type": "WebPage",
     "url": "https://documentation.suse.com/sles/15-SP5/html/SLES-raspberry-pi/",
     "encodingFormat": "text/html"
  },
  {
     "@type": "WebPage",
     "url": "https://documentation.suse.com/sles/15-SP5/pdf/SLES-raspberry-pi_en.pdf",
     "encodingFormat": "application/pdf"
  },
]
@tomschr tomschr added skill-xslt XSLT knowledge necessary topic-metadata Issues that deals with meta data information labels Mar 5, 2024
@tomschr tomschr marked this pull request as ready for review March 25, 2024 09:37
@tomschr tomschr merged commit 5e2d44b into main Mar 25, 2024
2 checks passed
@tomschr tomschr deleted the jsonld-webpages branch March 25, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skill-xslt XSLT knowledge necessary topic-metadata Issues that deals with meta data information
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant