mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
clarify rules for documenting classes
This commit is contained in:
@@ -96,10 +96,11 @@ Using `autoUpdater` as an example:
|
||||
* API classes or classes that are part of modules must be listed under a
|
||||
`## Class: TheClassName` chapter.
|
||||
* One page can have multiple classes.
|
||||
* The constructors must be listed with `###`-level titles.
|
||||
* The methods must be listed under an `### Instance Methods` chapter.
|
||||
* The events must be listed under an `### Instance Events` chapter.
|
||||
* The properties must be listed under an `### Instance Properties` chapter.
|
||||
* Constructors must be listed with `###`-level titles.
|
||||
* [Static Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/static) must be listed under a `### Static Methods` chapter.
|
||||
* [Instance Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Prototype_methods) must be listed under an `### Instance Methods` chapter.
|
||||
* Instance Events must be listed under an `### Instance Events` chapter.
|
||||
* Instance Properties must be listed under an `### Instance Properties` chapter.
|
||||
|
||||
Using the `Session` and `Cookies` classes as an example:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user