alternateFormats - speced/respec GitHub Wiki
alternateFormats
Type: Array<{ label: string, uri: string }>
Default: []
Shows links to alternate formats of the specification (PDF, ePub, etc.) in the document header.
Basic usage
var respecConfig = {
alternateFormats: [
{
label: "PDF",
uri: "https://www.w3.org/TR/my-spec/my-spec.pdf",
},
{
label: "ePub",
uri: "https://www.w3.org/TR/my-spec/my-spec.epub",
},
],
};
Notes
- Each entry requires both
label(display text) anduri(URL) - Links appear in the document header under "Also available in:"
- You are responsible for generating and hosting the alternate format files — ReSpec only links to them