Skip to content

Commit 5c59980

Browse files
devvaannshabose
authored andcommitted
Fix JSdoc issues causing formatting issue in docs site
1 parent b66e337 commit 5c59980

File tree

9 files changed

+18
-20
lines changed

9 files changed

+18
-20
lines changed

src/NodeConnector.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@
133133
* const imageArrayBuffer = getSomeImageArrayBuffer(); // Get the ArrayBuffer
134134
* nodeConnector.triggerPeer('imageEdited', 'name.png', imageArrayBuffer);
135135
* ```
136-
*
137136
* * ## Caveats
138-
*
139137
* - Be cautious when sending large binary data, as it may affect performance and memory usage. Transferring large
140138
* data is fully supported, but be mindful of performance.
141139
* - Functions called with `execPeer` and `triggerPeer` must be asynchronous and accept a single argument. An optional

src/features/NewFileContentManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ define(function (require, exports, module) {
127127
/**
128128
* Returns a promise that resolves to the default text content of the given file after querying
129129
* all the content providers. If no text is returned by any providers, it will return an empty string "".
130-
* @example <caption>To get the default content given a path</caption>
130+
* To get the default content given a path
131131
* NewFileContentManager.getInitialContentForFile("/path/to/file.jsx");
132132
* @param {string} fullPath
133133
* @returns {Promise<string>} The text contents

src/utils/EventManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ define(function (require, exports, module) {
5656
* Registers a named EventHandler. Event handlers are created using the call:
5757
* `EventDispatcher.makeEventDispatcher(Command.prototype);`
5858
*
59-
* @example <caption>To register a close dialogue event handler in an extension:</caption>
59+
* To register a close dialogue event handler in an extension:
6060
* // in close-dialogue.js module winthin the extension, do the following:
6161
* const EventDispatcher = brackets.getModule("utils/EventDispatcher"),
6262
* EventDispatcher.makeEventDispatcher(exports);
@@ -93,7 +93,7 @@ define(function (require, exports, module) {
9393
/**
9494
* Triggers an event on the named event handler.
9595
*
96-
* @example <caption>To trigger an event to the `closeDialogue` event handler registered above</caption>
96+
* To trigger an event to the `closeDialogue` event handler registered above
9797
* // anywhere in code, do the following:
9898
* const EventManager = brackets.getModule("utils/EventManager");
9999
* EventManager.triggerEvent("closeDialogueHandler", "someEvent", "param1", "param2", ...);

src/utils/ExtensionInterface.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ define(function (require, exports, module) {
7676
/**
7777
* Registers a named extension interface. Will overwrite if an interface of the same name is already present.
7878
*
79-
* @example <caption>To register an interface `angularCli`</caption>
79+
* To register an interface `angularCli`
8080
* ExtensionInterface.registerExtensionInterface("angularCli", exports);
8181
*
8282
* @param {string} extensionInterfaceName
@@ -102,7 +102,7 @@ define(function (require, exports, module) {
102102
* Returns a promise that gets resolved only when an ExtensionInterface of the given name is registered. Use this
103103
* getter to get hold of extensions interface predictably.
104104
*
105-
* @example <caption>To get a registered interface `angularCli`</caption>
105+
* To get a registered interface `angularCli`
106106
* let angularCli;
107107
* ExtensionInterface.waitAndGetExtensionInterface("angularCli").then(interfaceObj=> angularCli = interfaceObj);
108108
* ...

src/utils/FeatureGate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ define(function (require, exports, module) {
6868

6969
/**
7070
* Registers a named feature with the default enabled state.
71-
* @example <caption>To register a feature gate with name `myExtension.newColors`</caption>
71+
* To register a feature gate with name `myExtension.newColors`
7272
* const FEATURE_NEW_COLORS = 'myExtension.newColors';
7373
* FeatureGate.registerFeatureGate(FEATURE_NEW_COLORS, false); // false is the default value here
7474
*
@@ -96,7 +96,7 @@ define(function (require, exports, module) {
9696

9797
/**
9898
* Returns true is an featureGate is enabled either by default or overridden by the user using local storage.
99-
* @example <caption>To check if the feature `myExtension.newColors` is enabled</caption>
99+
* To check if the feature `myExtension.newColors` is enabled
100100
* const FEATURE_NEW_COLORS = 'myExtension.newColors';
101101
* if(FeatureGate.isFeatureEnabled(FEATURE_NEW_COLORS)){
102102
* // do fancy colors here

src/utils/Metrics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ define(function (require, exports, module) {
335335

336336
/**
337337
* log a numeric count >=0
338-
* @example <caption>To log that user clicked searchButton 5 times:</caption>
338+
* To log that user clicked searchButton 5 times:
339339
* Metrics.countEvent(Metrics.EVENT_TYPE.UI, "searchButton", "click");
340340
* Metrics.countEvent(Metrics.EVENT_TYPE.UI, "searchButton", "click", 5);
341341
*
@@ -364,7 +364,7 @@ define(function (require, exports, module) {
364364

365365
/**
366366
* log a numeric value (number).
367-
* @example <caption>To log that startup time is 200ms:</caption>
367+
* To log that startup time is 200ms:
368368
* Metrics.valueEvent(Metrics.EVENT_TYPE.PERFORMANCE, "startupTime", "ms", 200);
369369
*
370370
* @param {EVENT_TYPE|string} eventType The kind of Event Type that needs to be logged- should be a js var compatible string.

src/widgets/NotificationUI.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ define(function (require, exports, module) {
159159
/**
160160
* Adds a done callback to the Notification promise. The promise will be resolved
161161
* when the Notification is dismissed. Never rejected.
162-
* @example <caption>Print the close reason on console when the notification closes</caption>
162+
* Print the close reason on console when the notification closes
163163
* notificationInstance.done((closeReason)=>{
164164
* console.log(closeReason)
165165
* })
@@ -174,7 +174,7 @@ define(function (require, exports, module) {
174174
* Creates a new notification popup from given template.
175175
* The template can either be a string or a jQuery object representing a DOM node that is *not* in the current DOM.
176176
*
177-
* @example <caption>Creating a notification popup</caption>
177+
* Creating a notification popup
178178
* // note that you can even provide an HTML Element node with
179179
* // custom event handlers directly here instead of HTML text.
180180
* let notification1 = NotificationUI.createFromTemplate(
@@ -301,7 +301,7 @@ define(function (require, exports, module) {
301301
* Creates a new toast notification popup from given title and html message.
302302
* The message can either be a string or a jQuery object representing a DOM node that is *not* in the current DOM.
303303
*
304-
* @example <caption>Creating a toast notification popup</caption>
304+
* Creating a toast notification popup
305305
* // note that you can even provide an HTML Element node with
306306
* // custom event handlers directly here instead of HTML text.
307307
* let notification1 = NotificationUI.createToastFromTemplate( "Title here",

src/worker/IndexingWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ define(function (require, exports, module) {
9191
*
9292
* See [worker/WorkerComm](WorkerComm-API) for detailed API docs.
9393
*
94-
* @example <caption>To Execute a named function `extensionName.sayHello` in the worker from phoenix</caption>
94+
* To Execute a named function `extensionName.sayHello` in the worker from phoenix
9595
* // in my_worker.js. It is a good practice to prefix your `[extensionName]`
9696
* // to exec handler to prevent name collisions with other extensions.
9797
* WorkerComm.setExecHandler("extensionName.sayHello", (arg)=>{

src/worker/WorkerComm.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
/**
107107
* Adds support for WorkerComm APIs to the provided web-Worker instance. Only available in the main thread.
108108
* This API should be called immediately after creating the worker in main thread.
109-
* @example <caption>Create a web-worker with `WorkerComm` in an extension.</caption>
109+
* Create a web-worker with `WorkerComm` in an extension.
110110
* // load the worker [See API docs for full sample]
111111
* const _myWorker = new Worker(
112112
* `${workerPath}?workerCommUrl=${workerCommUrl}&eventDispatcherURL=${eventDispatcherURL}`);
@@ -126,7 +126,7 @@
126126

127127
/**
128128
* Sets a named function execution handler in the main thread or worker thread.
129-
* @example <caption>To set a named function `sayHello` in worker and phoenix</caption>
129+
* To set a named function `sayHello` in worker and phoenix
130130
*
131131
* function sayHello(arg)=>{
132132
* console.log("hello from worker ", arg); // prints "hello from worker phoenix"
@@ -153,7 +153,7 @@
153153
* Executes the named function at the other end if present. If this is called from the main thread, it will
154154
* execute the function at the worker thread and vice-versa. The function to execute
155155
* is set with API `setExecHandler`.
156-
* @example <caption>To Execute a named function `sayHello` in the worker from phoenix</caption>
156+
* To Execute a named function `sayHello` in the worker from phoenix
157157
* // in my_worker.js
158158
* WorkerComm.setExecHandler("sayHello", (arg)=>{
159159
* console.log("hello from worker ", arg); // prints "hello from worker phoenix"
@@ -184,7 +184,7 @@
184184
* Triggers events at the other end on the eventDispatcher. If this is called from the main thread, it will
185185
* trigger `WorkerComm` global at the worker thread. If this is called from the worker thread, it will
186186
* trigger `eventDispatcher` used in `createWorkerComm` API call when creating the worker.
187-
* @example <caption>To Trigger a named event `searchDone` from worker to phoenix</caption>
187+
* To Trigger a named event `searchDone` from worker to phoenix
188188
* // in my_worker.js
189189
* WorkerComm.triggerPeer("searchDone", {matches: 2});
190190
*
@@ -222,7 +222,7 @@
222222
/**
223223
* Loads a script into the worker context. Only available within the main thread. This can be used
224224
* by the main Phoenix thread to dynamically load scripts in the worker-thread.
225-
* @example <caption>To load a script `add_worker_Script.js` into the your worker:</caption>
225+
* To load a script `add_worker_Script.js` into the your worker:
226226
* WorkerComm.createWorkerComm(_myWorker, exports);
227227
* .....
228228
* let ExtensionUtils = brackets.getModule("utils/ExtensionUtils");

0 commit comments

Comments
 (0)