Skip to content

Commit b967dd3

Browse files
committed
fix: api docs site build fails due to broken links
1 parent b835015 commit b967dd3

File tree

4 files changed

+26
-27
lines changed

4 files changed

+26
-27
lines changed

docs/API-Reference/widgets/NotificationUI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ notification1.done((closeReason)=>{
4242
console.log("notification is closed in ui reason:", closeReason);
4343
})
4444
```
45-
The [createFromTemplate](1) API can be configured with numerous options. See API options below.
45+
The `createFromTemplate` API can be configured with numerous options. See API options below.
4646

4747
* [widgets/NotificationUI](#module_widgets/NotificationUI)
4848
* [.API](#module_widgets/NotificationUI..API)

docs/API-Reference/worker/IndexingWorker.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ brackets.getModule("worker/IndexingWorker")
99
Phoenix houses a file indexing worker which caches all cacheable files of a project in memory.
1010
This module can be used to communicate with the Index and extend it by attaching new js worker scripts to the
1111
indexing worker as discussed below. Any extension that works on a large number of files should use the indexing
12-
worker cache to free up the main thread of heavy file access. This is similar to
13-
[worker/ExtensionsWorker](ExtensionsWorker-API) but with a full file index.
12+
worker cache to free up the main thread of heavy file access.
1413

15-
* Extensions are advised to use [worker/ExtensionsWorker](ExtensionsWorker-API) if they do not use the file index and
16-
just want to offload minor tasks.
1714
* Extensions performing large compute tasks should create their own worker and may use easy util methods in
18-
[worker/WorkerComm](WorkerComm-API) to communicate with the web worker.
15+
[worker/WorkerComm](../WorkerComm) to communicate with the web worker.
1916

2017
## Import
2118

@@ -43,7 +40,7 @@ IndexingWorker.loadScriptInWorker(workerPath);
4340
Once the worker script is loaded with the above step:
4441
* Phoenix can communicate with worker using the `IndexingWorker` reference in Phoenix.
4542
* Worker can communicate with Phoenix with the global `WorkerComm` reference within the Indexing worker.
46-
All utility methods in module [worker/WorkerComm](WorkerComm-API) can be used for worker communication.
43+
All utility methods in module [worker/WorkerComm](../WorkerComm) can be used for worker communication.
4744

4845
A global constant `Phoenix.baseURL` is available in the worker context to get the base url from which phoenix was
4946
launched.
@@ -52,34 +49,37 @@ NB: You can use all util methods available in `worker/WorkerComm` as `IndexingWo
5249
to communicate with the underlying worker thread.
5350

5451
* [worker/IndexingWorker](#module_worker/IndexingWorker)
55-
* [.WorkerComm-APIS](#module_worker/IndexingWorker..WorkerComm-APIS)
52+
* [.WorkerComm](#module_worker/IndexingWorker..WorkerComm)
5653
* ["EVENT_CRAWL_STARTED"](#event_EVENT_CRAWL_STARTED)
5754
* ["EVENT_CRAWL_PROGRESS"](#event_EVENT_CRAWL_PROGRESS)
5855
* ["EVENT_CRAWL_COMPLETE"](#event_EVENT_CRAWL_COMPLETE)
5956

60-
<a name="module_worker/IndexingWorker..WorkerComm-APIS"></a>
57+
<a name="module_worker/IndexingWorker..WorkerComm"></a>
6158

62-
### worker/IndexingWorker.WorkerComm-APIS
59+
### worker/IndexingWorker.WorkerComm
6360
To communicate between the IndexingWorker and Phoenix, the following methods are available:
6461
`loadScriptInWorker`, `execPeer`, `setExecHandler`, `triggerPeer` and other APIs described
6562
in module `worker/WorkerComm`.
6663
The above methods can be used with either `IndexingWorker` reference within Phoenix
6764
or the global `WorkerComm` reference within the Indexing worker. (See example below.)
6865

69-
See [worker/WorkerComm](WorkerComm-API) for detailed API docs.
66+
See [worker/WorkerComm](../WorkerComm) for detailed API docs.
67+
68+
```js
69+
// To Execute a named function `extensionName.sayHello` in the worker from phoenix
7070

71-
To Execute a named function `extensionName.sayHello` in the worker from phoenix
7271
// in my_worker.js. It is a good practice to prefix your `[extensionName]`
7372
// to exec handler to prevent name collisions with other extensions.
74-
```js
73+
7574
WorkerComm.setExecHandler("extensionName.sayHello", (arg)=>{
7675
console.log("hello from worker ", arg); // prints "hello from worker phoenix"
7776
return "Hello Phoenix";
7877
});
79-
```
78+
8079
// In Phoenix/extension
8180
let workerMessage = await IndexingWorker.execPeer("extensionName.sayHello", "phoenix");
8281
console.log(workerMessage); // prints "Hello Phoenix"
82+
```
8383

8484
**Kind**: inner property of [<code>worker/IndexingWorker</code>](#module_worker/IndexingWorker)
8585
<a name="event_EVENT_CRAWL_STARTED"></a>

src/widgets/NotificationUI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
* console.log("notification is closed in ui reason:", closeReason);
5858
* })
5959
* ```
60-
* The [createFromTemplate](1) API can be configured with numerous options. See API options below.
60+
* The `createFromTemplate` API can be configured with numerous options. See API options below.
6161
* @module widgets/NotificationUI
6262
*/
6363

src/worker/IndexingWorker.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818
*
1919
*/
2020

21-
/*global Phoenix*/
2221
// @INCLUDE_IN_API_DOCS
2322
/**
2423
* Phoenix houses a file indexing worker which caches all cacheable files of a project in memory.
2524
* This module can be used to communicate with the Index and extend it by attaching new js worker scripts to the
2625
* indexing worker as discussed below. Any extension that works on a large number of files should use the indexing
27-
* worker cache to free up the main thread of heavy file access. This is similar to
28-
* [worker/ExtensionsWorker](ExtensionsWorker-API) but with a full file index.
26+
* worker cache to free up the main thread of heavy file access.
2927
*
30-
* * Extensions are advised to use [worker/ExtensionsWorker](ExtensionsWorker-API) if they do not use the file index and
31-
* just want to offload minor tasks.
3228
* * Extensions performing large compute tasks should create their own worker and may use easy util methods in
33-
* [worker/WorkerComm](WorkerComm-API) to communicate with the web worker.
29+
* [worker/WorkerComm](../WorkerComm) to communicate with the web worker.
3430
*
3531
* ## Import
3632
* @example
@@ -57,7 +53,7 @@
5753
* Once the worker script is loaded with the above step:
5854
* * Phoenix can communicate with worker using the `IndexingWorker` reference in Phoenix.
5955
* * Worker can communicate with Phoenix with the global `WorkerComm` reference within the Indexing worker.
60-
* All utility methods in module [worker/WorkerComm](WorkerComm-API) can be used for worker communication.
56+
* All utility methods in module [worker/WorkerComm](../WorkerComm) can be used for worker communication.
6157
*
6258
* A global constant `Phoenix.baseURL` is available in the worker context to get the base url from which phoenix was
6359
* launched.
@@ -91,21 +87,24 @@ define(function (require, exports, module) {
9187
* The above methods can be used with either `IndexingWorker` reference within Phoenix
9288
* or the global `WorkerComm` reference within the Indexing worker. (See example below.)
9389
*
94-
* See [worker/WorkerComm](WorkerComm-API) for detailed API docs.
90+
* See [worker/WorkerComm](../WorkerComm) for detailed API docs.
91+
*
92+
* ```js
93+
* // To Execute a named function `extensionName.sayHello` in the worker from phoenix
9594
*
96-
* To Execute a named function `extensionName.sayHello` in the worker from phoenix
9795
* // in my_worker.js. It is a good practice to prefix your `[extensionName]`
9896
* // to exec handler to prevent name collisions with other extensions.
99-
* ```js
97+
*
10098
* WorkerComm.setExecHandler("extensionName.sayHello", (arg)=>{
10199
* console.log("hello from worker ", arg); // prints "hello from worker phoenix"
102100
* return "Hello Phoenix";
103101
* });
104-
* ```
102+
*
105103
* // In Phoenix/extension
106104
* let workerMessage = await IndexingWorker.execPeer("extensionName.sayHello", "phoenix");
107105
* console.log(workerMessage); // prints "Hello Phoenix"
108-
* @name WorkerComm-APIS
106+
* ```
107+
* @name WorkerComm
109108
*/
110109

111110
/**

0 commit comments

Comments
 (0)