Replies: 2 comments 10 replies
-
I don't have a problem with mixing interfaces if it helps, but I am not certain it is a silver bullet. If you mix all the APIs there are lots of irrelevant interfaces for each of the current APIs and you still only get The big problem here is I don't see how we can do this "right" - except perhaps with some infrastucture that allows "sub APIs" so we could display all three APIs in the sidebar at the same time as separate APIs. Can we prototype just dumping everything in one "Authentication API" and seeing how navigable it is to do it this way? Notes:
|
Beta Was this translation helpful? Give feedback.
-
Having read through this discussion, I will start by saying that I appreciate the effort here in trying to improve this situation. I tried documenting FedCM, and WebOTP, and making improvements to WebAuthn, using the normal strategy we tend to use in documenting APIs. But it didn't work particularly well because of the weird footprint of these APIs. A few thoughts:
|
Beta Was this translation helpful? Give feedback.
-
I'm doing some work on the Credential Management API and had a suggestion.
The CM API provides a kind of framework that several other specifications plug into:
Usually our practice on MDN is to document separate specifications separately, and that's what we've done here.
But in some cases, including arguably this one, it can lead to fragmentary docs in which it's hard for readers to get an overview of what's going on. For example:
create()
andget()
methods are defined in the CM API, so their sidebars list the objects defined in the CM API. These methods return a subclass ofCredential
, but most of those subclasses are not listed in the sidebar, because they're defined in different specs.create
andget
would like to talk about all the credential types (e.g. WebOTP codes, WebAuth assertions, etc) that can be used with them, but is then straying into documentation belonging to the other specifications.create
andget
, but those belong in the CM API tree. The documentation for https://developer.mozilla.org/en-US/docs/Web/API/WebOTP_API looks pretty stunted and a little incoherent because it's missing the context provided by the CM API docs.So we could consider instead folding all the other specs into the CM API documentation. The obvious precedent for this is the Performance documentation, where there are many tiny specs that extend the core Performance stuff, and that we all rolled up together last year when @Elchi3 did the rewrite.
Beta Was this translation helpful? Give feedback.
All reactions