Skip to content
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

MDN URL per feature #1122

Open
foolip opened this issue May 21, 2024 · 3 comments
Open

MDN URL per feature #1122

foolip opened this issue May 21, 2024 · 3 comments
Labels
enhancement New feature or request schema Schema changes, proposals, and bugs

Comments

@foolip
Copy link
Collaborator

foolip commented May 21, 2024

In order to support GoogleChrome/webstatus.dev#295 we'd need a MDN URL per feature and publish it as mdn_url or similar.

We can get MDN URLs from BCD, but for most features we'll have more than one. If so we need to pick one of them, or sometimes another page that's about the feature as a a whole.

cc @estelle

@captainbrosset
Copy link
Contributor

I toyed a little bit with this on this dashboard I made: https://captainbrosset.github.io/web-features-explorer/recent/
Click on a feature's Learn More link to see MDN link(s).
The code is not pretty, and it makes no attempt to have just one URL. In fact I don't think we will be able to always have just one. The code just kind of simplifies the links, and groups them by technical areas. See https://github.com/captainbrosset/web-features-explorer/blob/main/.eleventy.js

I don't think that's what you wanted here, but I thought I'd mention it anyway. This could be a solution that doesn't require maintenance.

@foolip
Copy link
Collaborator Author

foolip commented May 28, 2024

We could quite easily generate mdn_url which could be one or more URLs, and then override it to be a single URL when that makes more sense.

@captainbrosset
Copy link
Contributor

I guess we could also map markdown articles in the mdn/content repo to web-feature IDs, like we do in BCD.

@ddbeck ddbeck added schema Schema changes, proposals, and bugs enhancement New feature or request labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request schema Schema changes, proposals, and bugs
Projects
None yet
Development

No branches or pull requests

3 participants