Skip to content

alternateFormats

PieterHering edited this page Feb 18, 2021 · 1 revision

alternateFormats

Shows links to alternate formats (such as PDF, ePub) in the document header.

This option accepts an array of objects, each of which has two required fields:

uri
for the link to the alternate document
label
for a human readable string that matches it. This is used to link to alternate formats for the same content (e.g. PDF, ePub, PS).
var respecConfig = {
  alternateFormats: [
    {
      label: "PDF",
      uri: "https://example.w3.org/TR/example.pdf",
    },
    {
      label: "XML",
      uri: "https://example.w3.org/TR/example.xml",
    },
  ],
};