-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Web API titles: some sample interfaces #21810
Conversation
@@ -1,5 +1,6 @@ | |||
--- | |||
title: XRWebGLBinding() | |||
title: "XRWebGLBinding: XRWebGLBinding() constructor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, we special case constructors to avoid having the same word twice. I wonder if it would be nicer to continue to do that, like so:
title: "XRWebGLBinding: XRWebGLBinding() constructor" | |
title: "XRWebGLBinding() constructor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm weakly -1 on this, because I like the consistency of always having the InterfaceName:
prefix for everything associated with that interface (and maybe because of some vague folk memory of working with C++ a long time ago!). But I do take your point about repetition and am happy to accept this change if it's the consensus and unblocks this work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy either way. Unless @Rumyra has a strong opinion we should decide and go ahead :)
Thanks for looking!
Yes. This PR also adds a
Yes, I agree about this. But I think it is a different issue. |
This pull request has merge conflicts that must be resolved before it can be merged. |
Thanks for highlighting these! I think the "Featured articles" should be improved by this change, because it will give more line breaking opportunities, and as for breadcrumbs, the PR to use short titles in sidebars will also use them in breadcrumbs, so that should help there. |
This pull request has merge conflicts that must be resolved before it can be merged. |
This draft PR is to show what page titles based on https://github.com/orgs/mdn/discussions/248#discussioncomment-3797416 would look like. It updates the title and adds
short-title
for three interfaces:https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement
https://developer.mozilla.org/en-US/docs/Web/API/Response
https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLBinding
I chose
Response
because it's very commonly referenced and has some statics, the other two because they contain some quite long titles.Note that the sidebars will look a bit silly unless you run this with the Yari from https://github.com/wbamberg/yari/tree/apiref-short-title, which contains the update to make APIRef use
short-title
if it's available.