Closed Bug 817827 Opened 12 years ago Closed 10 years ago

Hide (really) internal APIs from documentation

Categories

(Add-on SDK Graveyard :: Documentation, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jswisher, Assigned: wbamberg)

Details

It's not very clear, and cuddlefish should be documented too, but if it helps: cuddlefish is just an SDK-specific instantiation of the generic module loader, which is documented much more fully: https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/api-utils/loader.html.
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation
Component: General → Documentation
Product: Developer Documentation → Add-on SDK
It might make more sense to just hide from the documentation pages the really-truly internal APIs that no one should be using.
Priority: -- → P2
Summary: Document Cuddlefish API → Hide (really) internal APIs from documentation
Is there a list of really-truly internal APIs?

The simplest way to do this is just to remove the MD files, and rely on in-source comments for such modules. If that's good enough, and we have a list of really-truly internal APIs, and I'll delete the MD files.

If there is some purpose for having MD files but then not displaying them in the docs (and I can't imagine what that might be), then an alternative would be to have a module metadata key like "really-truly-internal", and it would be simple for the docs system to read it and not include the corresponding documentation.
I can imagine it being nice to have docs for people explicitly working on the SDK that are better than just source comments.
OK, so are we basically talking about another category of docs, beneath "High-level" and "Low-level", called "Internal" or something: so the docs are exposed in the browser, just in a different category, and with a top-level index file that explains that they are for people hacking on the SDK?

I think this is potentially a good idea, depending on how many modules fall into that category. As I say, we'd want a way to tell the doc code which modules fall into this category: metadata is the most obvious route although it might not be the best. With that done, it's easy to implement.

(I'm not very keen on actually hiding stuff in the docs browser: I don't think it's very helpful to anyone. It's better to show everything, but explain who it's for.)
Assignee: nobody → wbamberg
Ok, are there any modules we currently have that it makes sense to hide from the normal docs pages? I'm not really seeing any.
Priority: P2 → --
Please ping me when you triage this.
Just to capture what we discussed in triage:

If there is a significant number of modules which are "really internal"[1], then it would be worth splitting them out of the "Low-level modules" group and displaying them in a separate section of the sidebar. The purpose of this is to make the list of low-level modules less huge, so it's easier to find interesting modules in there.

If we do this, we would need a way to indicate to the docs system that they are "really internal", probably using metadata, unless anyone has a better idea about that.

We don't want to *hide* any documentation.

Irakli will have a think about which modules might count as "really internal", and if there are enough, we'll go ahead. If there are only a few, it's not worth it.

[1] in the sense that they are only really of interest to people implementing specific SDK modules, and don't have a general application. For example, "core/heritage" is low level but generally useful, while "keyboard/utils" might only be of interest to people maintaining the "hotkeys" module.
I don't think this is still relevant given we're on MDN, so I'm clearing my needinfo. If you disagree let's start over again.
Flags: needinfo?(rFobic)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.