You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kenneth G. Franqueiro edited this page Dec 16, 2025
·
5 revisions
To produce static output for your spec source from the command line, you can use a command-line HTTP client such as wget or curl and POST your ReSpec source document to the W3C https://www.w3.org/publications/spec-generator/ spec-generator service as a file upload; for example:
That command causes curl to read the source.html file from the current directory, send an HTTP POST request with the contents of that file as the value of the file field in the request, and then write the response to the index.html file.
That index.html file is a dump of the source.html file’s DOM, generated by processing the source with ReSpec — that is, exactly the same output you get by manually using Ctrl+Shift+Alt+S within the document itself and picking "Save as HTML (Source)" to save the output.
You can use additional -F flags with curl to specify particular ReSpec configuration options:
If your respec document is composed of multiple files (html, js, etc), you can submit a tarball of all the files (see Echidna's wiki on how to create the tarball). The main file should be named 'index.html' and all the other resources should be relative to that file. As above, you can use the following command to send the tarball.