openSUSE / suse-xsl

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

Fix #617: Put task and webpage both into "about" #620

Closed tomschr closed 6 months ago

tomschr commented 6 months ago

There were two "about" keys before: one for "Thing" and another for "WebPage". Howeve,r this created a validation issue. This fix bring them together in one "about" property.

The fixed version looks like this (the "Thing" entry is optional and depends on if we have a <meta name="task"> or not):

"about": [
  {
     "@type": "Thing",
     "name": "Administration"
  },
  {
     "@type": "WebPage",
     "url": "https://documentation.suse.com/smart/systems-management/html/sudo-run-commands-as-superuser/",
     "encodingFormat": "text/html"
  },
  {
     "@type": "WebPage",
     "url": "https://documentation.suse.com/smart/systems-management/pdf/sudo-run-commands-as-superuser_en.pdf",
     "encodingFormat": "application/pdf"
  }
],