In each sub directory, you can find the relevant files for the publication process. In general, you should always consult the W3C Guide page at https://www.w3.org/Guide.
- Make sure that you update the recent specification changes
- Overview.html - static HTML for publication
- diff.html - diff between the previous published version and Overview.html
- index.html - same as the index.html at https://w3c.github.io/wot-scripting-api/ (or at the root of the repository), except for changing the respec option from ED to the version you are aiming at such as CR, WD, etc.
- static.html - static HTML generated by ReSpec from the index.html above
Overview.html is generated as follows:
- Copy index.html from the root of the repository.
- Change
specStatus
to"NOTE"
from"ED"
(or"REC"
,"PR"
, etc.). - Generate static.html by ReSpec from https://w3c.github.io/wot-scripting-api/ (click "ReSpec" top right and choose "Export" then export as "HTML"). Make sure that you disable browser extensions or open in private window.
- Output Overview.html as a result of HTML Tidy. Use the following command (
tidy -ashtml -i static.html > Overview.html
). The-ashtml
option is needed until this issue is resolved at HTML Tidy. - Fix duplicate IDs (see fix-id.pl) caused by ReSpec not supporting conformance classes
cp Overview.html backup.html; ./fix-id.pl backup.html > Overview.html
After checking Overview.html using the Pubrules checker, we have to edit index.html and then regenerate the static HTML based on the procedure above to make it easier to generate a Pull Request to update the original at https://w3c.github.io/wot-scripting-api/ later.
- Edit index.html,
- Generate static.html by ReSpec from the index.html (click "ReSpec" top right and choose "Export" then export as "HTML",
- copy static.html to Overview.html and tidy it up,
- If there are any remaining errors/warnings with the Pubrules checker results, repeat the edit by going back to #1.
- Generate diff.html via http://services.w3.org/htmldiff
Note: You cannot use a tool like https://htmlpreview.github.io since they do not have static html as a resource that the pubrule checkers can use.
Some redirects come from specref not being up to date. In those cases, you need to manually update the final Overview.html.