Getting Started - speced/respec GitHub Wiki
Copy this template, open it over HTTP, and you have a working ReSpec spec in under a minute.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>My Spec</title>
<script src="https://www.w3.org/Tools/respec/respec-w3c"
class="remove" async></script>
<script class="remove">
var respecConfig = {
specStatus: "ED",
editors: [{ name: "Your Name", url: "https://your-site.example/" }],
github: "your-org/your-repo",
shortName: "my-spec",
};
</script>
</head>
<body>
<section id="abstract">
<p>One paragraph describing what this spec does.</p>
</section>
<section id="sotd"></section>
</body>
</html>Open it over HTTP ā not file:// (CORS restrictions). Run a local server:
npx serve . # Node.js
python3 -m http.server # PythonRead the ReSpec Editor's Guide ā it covers sections, definitions, linking, WebIDL, references, and W3C-specific options.
For specific tasks: How Do Iā¦
For all configuration options: browse the sidebar or use browser Find.