-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding https://w3c.github.io/csswg-drafts/ URLs for all CSS specs? #704
Comments
(additional emphasis mine) https://w3c.github.io/csswg-drafts/ is a temporary measure (likely already no longer necessary as the server upgrades have begun and the server is already more stable) and will be either entirely dropped or replaced by redirects back to https://drafts.csswg.org as soon as the work on the draft server is complete. No one will benefit by adding confusion as to what the canonical URLs for the CSS drafts are. |
… URLs Related browser-specs PR: w3c/browser-specs#704
… URLs (#17747) * Replace all drafts.csswg.org spec_url with w3c.github.io/csswg-drafts URLs Related browser-specs PR: w3c/browser-specs#704 * Try rewriting CSS spec URLs in the linter * Apply suggestions from code review
I hear disagreement on the direction to take. I would love to see a more stable solution emerge for CSS drafts (server has been down for me in the past few hours for example) but I agree with @plinss that introducing another URL for the CSS drafts creates confusion, especially if this URL is not meant to last and not the URL that the CSS working group would like to use as a canonical URL. For instance, the BCD update means that I need to add a bit of logic in one of my side tools that associates BCD entries back with specs in browser-specs based on One possibility would be to track the [Edit: I only now realize that the |
This records the `w3c.github.io` URL for CSS drafts in a new `alternateUrls` property under `nightly`. See context in #704. That property is an array as the mechanism could be used to record nightly URLs used by a spec throughout its development. The code automatically adds the w3c.github.io URL for CSS drafts. One possible question: A spec already published in /TR could get a new shortname. Since the array is under `nightly`, this cannot really be used to record the previous /TR URL. Should this `alternateUrls` property rather be moved to the root (but then how to distinguish between alternate URLs for the nightly and release versions of the spec)? Or would we add an `alternateUrls` property under `release` as well if we ever want to track that?
FYI: I recently merged a PR to BCD that replaced all |
For the record, since that PR changed MDN to link to the w3c.github.io mirror, currenty all CSS spec references are labeled as "Unknown specification" because the mirror isn't listed in browser-specs, which is not great. I proposed to work around this in yari in mdn/yari#7173. |
So that's precisely what I was raising above. Switching the URLs is definitely good for readers, but it impacts tools that expect data to use the canonical URL. I wonder whether the switch could rather be made on MDN when the page is rendered rather than in BCD data? |
We just need to remap the URL to the old link when obtaining the spec metadata. By changing the URLs in BCD, we're able to relay the new links to consumers of BCD such as CanIUse and VS Code, so that they will automatically use the new links as well, thus improving the experience for more than just MDN readers! |
This records the `w3c.github.io` URL for CSS drafts in a new `alternateUrls` property under `nightly`. See context in #704. That property is an array as the mechanism could be used to record nightly URLs used by a spec throughout its development. The code automatically adds the w3c.github.io URL for CSS drafts.
Browser-specs now lists |
Thank you for adding this in, @tidoust! While attempting to adapt to the new property, I happened to notice that |
https://w3c.github.io/csswg-drafts/ now exists as an alternative to https://drafts.csswg.org/, and I think it’s very likely that for BCD, we’re going to change all the existing CSS spec
spec_url
to the https://w3c.github.io/csswg-drafts/ equivalents.But in order to do that for BCD, and have it work, we’d need the https://w3c.github.io/csswg-drafts/ URLs to be in browser-specs.
So I’m raising this issue to discuss how to represent this case in browser-specs. Maybe can allow the
nightlyUrl
value to be an array? Or else maybe add a newalternateNightlyUrl
(or something)?The text was updated successfully, but these errors were encountered: