openwebdocs / project

project documentation, policies & meeting minutes
http://openwebdocs.org
Creative Commons Zero v1.0 Universal
359 stars 42 forks source link

OWD project: Up-to-date & machine readable specification links on MDN and in BCD #24

Closed Elchi3 closed 3 years ago

Elchi3 commented 3 years ago

This is a write up of a project around specification links that @sideshowbarker and I started to work on and that I'd like to introduce here some more, so that it becomes more transparent why we should do some work on this and what work is involved exactly.

Problem statement

Priority assessment

This table checks this project against the OWD prioritization criteria.

Criteria Assessment
Effort Large as this affects all MDN reference pages. However, thanks to the scraping work that Mike has done, we were able to quickly get spec_urls in for javascript and HTML pages already.
Dependencies BCD and MDN are both involved. In order to render the spec section from a template like the yari compat table, we need yari engineering time. Collecting the spec_urls into BCD doesn't have a dependency, though.
Community enablement Anyone can submit and review spec_urls to BCD features. Is shareable. Some knowledge about what makes a spec a current spec required.
Momentum I think the momentum comes from being able to use this data in a machine-readable form in some spec tooling. No direct web developer momentum, I think.
Enabling learners N / A
Enabling professionals Professionals appreciate a precise spec section on MDN
Underrepresented topics / ethical web N/A
Operational necessities N / A
Addressing needs of the Web industry N / A

Proposed solutions

Task list

Elchi3 commented 3 years ago

Status update!

teoli2003 commented 3 years ago

@elchi3 As it is a prerequesite for this issue, should I submit PRs for bringing BCD in front-matter all over the place? I have a Python script that does most of the work automatically; I only need to deal with special cases manually.

Elchi3 commented 3 years ago

Yes, thanks for your work. BCD Front-matter is good for a variety of use cases. In a next step, the specification section can then make use of it (via the new {{Specifications}} macro that is analog to {{Compat}})

teoli2003 commented 3 years ago

Absolutely! We can script this change (spec table -> spec macro) too but two points must be checked:

1) If there are pages with a specification table but no BCD info, we need to check them and either add the corresponding entries in mdn/browser-compat-table or, if not relevant, to keep the table (or use a kind of {{Specifications("x.y.z")}} like with {{Compat}}). We can list these pages with a script and start handling them right away, I think.

2) If there are comments after the specification table, should we just keep them there or evaluate them on a case by case basis?

Elchi3 commented 3 years ago

90% is done, the rest is blocked by other work. I'm not sure how much we want to rabbit whole into the remaining work in Q3.

Spec sections powered by BCD spec_urls are implemented for all major content areas on MDN.

The old spec tables still appear on:

teoli2003 commented 3 years ago

Except for the "few random pages", I don't think we should invest in this in Q3, other than trying to move forward the discussions.

Elchi3 commented 3 years ago

No disagreement in today's SC call to close this as done. 🎉 Follow-up projects can always be nominated and we will move open discussions forward as needed.

teoli2003 commented 3 years ago

\o/