openSUSE / suse-xsl

DocBook XSL Stylesheets for SUSE branding
Other
11 stars 10 forks source link

Add "WebPage" type to JSON-LD #612

Closed tomschr closed 3 months ago

tomschr commented 4 months ago

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:

https://documentation.suse.com/$productid/$docset/$format/$filename