-
-
Notifications
You must be signed in to change notification settings - Fork 430
xref
Swapnil Rustagi edited this page Mar 30, 2019
·
25 revisions
The xref option allows you to configure automatic external reference linking (xref). A detailed explanation on how to use xref in specifications is given here. This page describes the various configurations available.
xref can be configured as:
var respecConfig = {
xref: /* a valid configuration */,
};and the following configurations are available:
- Boolean value. Setting
xref: truesimply enables the xref feature. - Array of specifications. This option enables xref, but also adds the specifications in the array to the
data-citeattribute of the document's<body>. ReSpec then uses these specifications for disambiguation. - Profile name (string). Specification Profiles are described below.
- Object with the optional attributes
url,specsandprofile.-
urlis used to link to a custom references databases. -
specsis used to specify an array of specifications. This array is added to thedata-citeattribute of the document's<body>and used for disambiguation. -
profileis used to specify profile.
-
Profiles are pre-defined lists of specifications. Using a profile means adding all of its specifications to the data-cite attribute of the document's <body>.
-
web-platform. Specifications included:HTML,INFRA,URL,WEBIDL,DOM,FETCH.
- Simply enable xref.
var respecConfig = {
xref: true,
};- Using the
web-platformprofile.
var respecConfig = {
xref: "WEB-PLATFORM",
};- Using the specs
spec1andspec2for disambiguation.
var respecConfig = {
xref: ["spec1", "spec2"],
};- Using the specs
spec1andspec2along with specs in theweb-platformprofile for disambiguation, and looking for references in the specified references database only.
var respecConfig = {
xref: {
url: "https://respec.org/xref", // This is also the default references database.
specs: ["spec1", "spec2"],
profile: "WEB-PLATFORM"
}
};💖 Support ReSpec by becoming a sponsor via Open Collective. 💖
✨ View rendered version of this documentation at https://respec.org/docs/ ✨
- Getting Started
- How Do I…
- Spec Editor's Guide
- Writing Algorithms
- WebIDL Guide
- Configuring ReSpec
- Developers Guide
- Shorthands
- addSectionLinks
- authors
- caniuse
- edDraftURI
- editors
- format (markdown)
- formerEditors
- github
- highlightVars
- implementationStatus
- isPreview
- license
- lint
- localBiblio
- logos
- maxTocLevel
- mdn
- modificationDate
- monetization
- noTOC
- otherLinks
- pluralize
- postProcess
- preProcess
- previousDiffURI
- previousMaturity
- previousPublishDate
- prevRecShortname
- prevRecURI
-
processVersion(Removed) - publishDate
- shortName
- specStatus
- subjectPrefix
- subtitle
- testSuiteURI
- xref
- additionalCopyrightHolders
-
addPatentNote(Removed) - alternateFormats
- canonicalURI
- charterDisclosureURI
- copyrightStart
- crEnd
- dark mode
- doJsonLd
- errata
- group
- implementationReportURI
- level
- noRecTrack
- prevED
- prEnd
- submissionCommentNumber
-
wg(Deprecated — usegroup) -
wgId(Deprecated — usegroup) -
wgPatentURI(Deprecated — usegroup) -
wgPublicList(Deprecated — usegroup) -
wgURI(Deprecated — usegroup)
a11ycheck-charsetcheck-internal-slotscheck-punctuationinformative-dfnlocal-refs-existno-captionless-tablesno-headingless-sectionsno-http-propsno-link-warningsno-unused-dfnsno-unused-varsprivsec-sectionwpt-tests-exist
Handled by ReSpec for you.
- conformance
- idl-index
- index
- issue-summary
- references
- tof (Table of Figures)
- data-abbr
- data-cite
- data-dfn-for
- data-dfn-type
- data-export
- data-format
- data-include
- data-include-format
- data-include-replace
- data-link-for
- data-link-type
- data-local-lt
- data-lt
- data-lt-no-plural
- data-lt-noDefault
- data-max-toc
- data-number
- data-oninclude
- data-sort
- data-tests
-
data-transform(Deprecated) - data-type
- dir
- lang