The working directories are on the 'top level', like /spec
(this one will be used as an example in what follows). The index.html
file in those directories are the respec
sources, plus the possible other accompanying files. The respec
config typically says something like
specStatus: "ED",
// publishDate: "",
previousPublishDate: "2014-03-04"
the /publishing-snapshot
directory contains specific milestone publications, e.g., FPWD-rdf-canonicalization
or, later, WD-rdf-canonicalization-2014-XX-XX
for a copy of what is officially published at W3C. This means all the relevant data files from /spec
, plus a generated Overview.html
file as a pure HTML5 file (i.e., not a respec
source).
(Obviously, many of these steps are typically done in your local repo and then committed to github when appropriate.)
- Create a new subdirectory in
/publishing-snapshot
, say,publishing-snapshot/WD-2014-12-12
. - Copy all the auxiliary files (e.g., data files, BNF files, images, etc.) from the main repo area. Note that not all the files may be necessary for final publications; e.g., the diagrams may have a
.key
and/or.pdf
versions that are used in the process of creating the diagrams, but only the.svg
and.png
files are used in the final document. - (Before you forget:-) add an entry to the new directory in
/index.html
on the top of the repository - Generate the pure HTML file:
- Finalize/change the
index.html
file in/spec
- Commit all the files to github
- From your Web browser, use the following URI:
https://w3c-ccg.github.io/canonicalization/spec/index.html?specStatus=WD;publishDate=2014-12-12
(note the URI parameters to set thespecStatus
andpublishDate
values!). You should see the final format on your screen. - Check whether
respec
signals a possible problem (a red or orange button should appear on the upper right hand corner for errors or warnings, respectively). - Push the button called
respec
on the upper right hand corner, chooseSave Snapshot
, thenSave as HTML
. You should either see the HTML source in your screen (e.g., in Safari or IE) or asked to download the HTML file on your disk. - Create/update a file called
Overview.html
file in the snapshot directory, and commit it to github- If you are in the main (i.e.,
gh-pages
) branch,https://w3c-ccg.github.io/canonicalization/publishing-snapshots/WD-2014-12-12/Overview.html
is a copy of the publication-to-be in pure HTML.
- If you're working in an alternative branch, the content will not be available at
https://w3c-ccg.github.io/[...]
. Instead, use the service athttps://rawgit.com/
—paste the URL of the raw file into the RawGit page, and you can use the content at the "development" URLhttps://rawgit.com/w3c-ccg/canonicalization/my-branch/publishing-snapshots/WD-2014-12-12/Overview.html
.
- If you are in the main (i.e.,
- Use the W3C pub rules checker with this URI to check the validity of the document. If there are problems, go back to the first step.
- Use the W3C link checker with this URI to check the links in the document (there is a link to the checker from the result generated by the pub rules checker). If there are problems, go back to the first step.
- Finalize/change the
- Generate diff from previous version:
- Push the button called
respec
on the upper right hand corner, chooseSave Snapshot
thenDiff
, - Save diff to publication directory using path set in
otherLinks/Changes/Diff to previous version/href
.
- Push the button called
- Update working version of file, preferably when the publication is done:
- Set
otherLinks/Changes/Diff previous version/href
based on last publication date (in case the choice is to include a date in thediff
file’s name) - Update
previousPublishDate
,previousSpecStatus
andpreviousURI
based on the publication snapshot.
- Set
- Once all pubrules issues are solved, you are ready. The next step is for the staff contact to make a copy of the snapshot and push it on the W3C server at
http://www.w3.org/TR/2014/...
The process may become slightly simpler if you run a local Web server on your machine that has an access to the local github repository. Indeed, in that case, step 5.2. can be omitted, i.e., the Overview.html
file can be generated locally. Alternatively, you may choose to make a local copy of index.html
and open the file from your browser locally. The danger, in this case, is to loose sync with the "master" copy, but if you are sure you have that under control, then this is probably the simplest approach. (Note, however, that you still have to push the new version to github to let the W3C rule checkers do their work…)
This process is based on the assumption that index.html
(i.e., respec
format) differs from the final document only in terms of the specification status and date (or other configuration option that can be set in the URI). If that is not the case, then a local copy of the file has to be added to the snapshot and be manipulated in that directory; of course, in that case the simplest is to set the specStatus
and other options in that copy. Again, the danger of course is to loose sync with the "master" copy.