-
Notifications
You must be signed in to change notification settings - Fork 141
Properly structure JS Intl
docs
#2537
Comments
(I'd actually not be the right one to CC for this; currently, my work is solely focused on BCD, and I have no page creation/movement permissions on the MDN docs!) |
@vinyldarkscratch
I CC'ed you to inform you of the change and ensure the move is reasonable (aka I'm not miss-understanding something). If you prefer, I won't CC you in the future. |
Ah, well thank you, I appreciate it! No worries -- I just thought someone else besides me would have a better opinion on the documentation structure. 😛 |
This should really be @Elchi3 's call. He is the MDN JS lead. |
We could do this, I guess... How do we treat these namespace objects in API docs? Or in webextension docs? Maybe @wbamberg has opinions about the content structures, too. I think it would be great if we would first agree on how these things would be structured properly before we move a lot of pages. |
That happened over 5 years ago, so I don't think anyone still remembers why. :)
Absolutely! |
Also, if |
tl;dr IMO, @bershanskiy is right.
A close analog to It's probably beneficial to have pages that document an object's members be nested under that object itself, so this suggests that what we do with One consequence of this is that given our sidebar implementation, if we want the objects they construct (like So we can see that in the sidebar here, that That's probably OK. Noone has complained about this situation with respect to (This part is more possible things for the future.) But also. We talked in London about whether it made sense to separate constructors from the objects they construct. To me (maybe only because my background is not JS?) it's really weird that we have these pages that are both, and that conflate constructors and the objects they create. What if we said:
If we did this, where would the page for the
My sense is that we tend to do the latter thing, and put all the objects ("interfaces") at the top level under Web/API. But I'm not sure if the Web APIs have quite the same issue that we do here (and I'm also not sure if the Web APIs are a good choice to copy). |
Thank you for this excellent analysis, Will!
I was looking around but couldn't think of an analog but there you have it! Nice find!
Yes, this. I'm fine with not constraining us any longer to our brittle sidebars but instead think how about we want the content to be structured and then make sidebars work with that later.
Yes, I still think we should go this way all throughout. It is something I want work on once I'm back in January. So, for
That is, everything moves under |
For sanity I created a separate issue #2571 for that. |
I've updated this to be a user stories per our sprint rules and I'm planning to do this work in our next sprint. |
Intl
under itIntl
docs
I've moved all pages and their translations. |
Very nice, Florian. This isn't exactly a suggestion for a thing to change right now, just a thing to clarify :). In the But the items in there are links to the object pages (e.g. |
Thanks for the review, Will!
Yes, I've renamed it.
I agree constructor links are better. I've changed the links. |
The BCD update was merged. I think this is all done now. |
User story
As an MDN reader, I want consistent reference documentation, so I can find information reliably.
Acceptance criteria
Members of
Intl
are actually not child pages ofIntl
, so they need to be moved to match the existing URL patterns and they need to conform to the page recipes as outlined in linter requirements for JavaScript documentation.To avoid breaking URLs in tables on MDN, probably the content pages should be moved first (with old URL redirecting to new URL) and only then the BCD should be updated.
Related issues
Tasks
Below is a complete list of moves (including children of children of
Intl
, which might be moved automatically when their parent is moved):× javascript\builtins\Intl.json
The text was updated successfully, but these errors were encountered: