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

Add a way to show links to MDN, and show them for a number of specs. #396

Merged
merged 2 commits into from
Jul 20, 2020

Conversation

dbaron
Copy link
Contributor

@dbaron dbaron commented Jul 15, 2020

Add a way to show links to MDN, and show them for a number of specs.

This fixes part of #375. It does the following:

  • adds an mdnUrl field to activities.json, using @adamroach's list in
    consider replacing caniuse links with MDN links #375 (comment)
    which can either be a string or an array of strings (like mozBugUrl)

  • adds a way to show the MDN icon in the "More Info" column (which I
    commit as an asset rather than picking a glyphicon, and use via CSS
    mask).

  • adds code to validate the new field in activities.py (matching
    mozBugUrl)

  • adds code to add the new field for the add verb in activities.py

There's also an initial commit to fix something I broke in #385, so this should be rebased rather than squashed.

@dbaron dbaron requested a review from martinthomson July 15, 2020 00:13
@dbaron dbaron self-assigned this Jul 15, 2020
@dbaron dbaron marked this pull request as draft July 15, 2020 00:14
@dbaron
Copy link
Contributor Author

dbaron commented Jul 15, 2020

Oops, I realize I should also make the activities.py add code add this field.

dbaron added a commit to dbaron/standards-positions that referenced this pull request Jul 15, 2020
…ozilla#396, part 2)

This fixes part of mozilla#375.  It does the following:

 * adds an `mdnUrl` field to `activities.json`, using @adamroach's list in
   mozilla#375 (comment)
   which can either be a string or an array of strings (like `mozBugUrl`)

 * adds a way to show the MDN icon in the "More Info" column (which I
   commit as an asset rather than picking a glyphicon, and use via CSS
   mask).

 * adds code to validate the new field in activities.py (matching
   `mozBugUrl`)

 * adds code to add the new field for the `add` verb in `activities.py`
@dbaron dbaron marked this pull request as ready for review July 15, 2020 00:26
Copy link
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fewer links for WebMIDI would be ideal. I guess that it isn't really worth creating Web_MIDI_API just to resolve the broken link on all of those pages.

(I didn't check all of the links. I only skimmed them, I'm trusting that you found reasonable destinations.)

activities.json Outdated Show resolved Hide resolved
Copy link
Member

@tantek tantek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with @martinthomson and LGTM. Per suggestion that https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API should exist, can we request that explicitly of MDN? And if that request is a GH issue perhaps that could be linked here too.

…ozilla#396, part 2)

This fixes part of mozilla#375.  It does the following:

 * adds an `mdnUrl` field to `activities.json`, using @adamroach's list in
   mozilla#375 (comment)
   which can either be a string or an array of strings (like `mozBugUrl`)

 * adds a way to show the MDN icon in the "More Info" column (which I
   commit as an asset rather than picking a glyphicon, and use via CSS
   mask).

 * adds code to validate the new field in activities.py (matching
   `mozBugUrl`)

 * adds code to add the new field for the `add` verb in `activities.py`

Co-authored-by: Martin Thomson <[email protected]>
@dbaron dbaron merged commit 5452fc5 into mozilla:master Jul 20, 2020
dbaron added a commit that referenced this pull request Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants