Skip to content
Marcos Caceres edited this page Mar 28, 2026 · 10 revisions

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) and uri (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

Guides

Configuration options

W3C Configuration options

Linting rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

HTML attributes

CSS Classes

Special properties

Clone this wiki locally