You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/sdkjs_common/jsdoc/README.md
+76-18Lines changed: 76 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,14 @@
1
-
2
1
# Documentation Generation Guide
3
2
4
-
This guide explains how to generate documentation for Onlyoffice Builder/Plugins API using the provided Python scripts: `generate_docs_json.py`, `generate_docs_plugins_json.py`, `generate_docs_md.py`. These scripts are used to create JSON and Markdown documentation for the `apiBuilder.js` files from the word, cell, and slide editors.
3
+
This guide explains how to generate documentation for Onlyoffice Builder
4
+
and Plugins (Methods/Events) API using the following Python scripts:
5
+
6
+
-`office-api/generate_docs_json.py`
7
+
-`office-api/generate_docs_md.py`
8
+
-`plugins/generate_docs_methods_json.py`
9
+
-`plugins/generate_docs_methods_md.py`
10
+
-`plugins/generate_docs_events_json.py`
11
+
-`plugins/generate_docs_events_md.py`
5
12
6
13
## Requirements
7
14
@@ -20,61 +27,112 @@ npm install
20
27
21
28
## Scripts Overview
22
29
23
-
### `generate_docs_json.py`
30
+
### `office-api/generate_docs_json.py`
24
31
25
32
This script generates JSON documentation based on the `apiBuilder.js` files.
26
33
27
34
-**Usage**:
35
+
28
36
```bash
29
37
python generate_docs_json.py output_path
30
38
```
31
39
32
40
-**Parameters**:
33
-
-`output_path` (optional): The directory where the JSON documentation will be saved. If not specified, the default path is `../../../../office-js-api-declarations/office-js-api`.
41
+
-`output_path` (optional): The directory where the JSON documentation
42
+
will be saved. If not specified, the default path is
This script generates Markdown documentation from the `apiBuilder.js` files.
48
+
49
+
-**Usage**:
50
+
51
+
```bash
52
+
python generate_docs_md.py output_path
53
+
```
54
+
55
+
-**Parameters**:
56
+
-`output_path` (optional): The directory where the Markdown documentation
57
+
will be saved. If not specified, the default path is
58
+
`../../../../office-js-api/`.
34
59
35
-
### `generate_docs_plugins_json.py`
60
+
### `plugins/generate_docs_methods_json.py`
36
61
37
62
This script generates JSON documentation based on the `api_plugins.js` files.
38
63
39
64
-**Usage**:
65
+
40
66
```bash
41
-
python generate_docs_plugins_json.py output_path
67
+
python generate_docs_methods_json.py output_path
42
68
```
43
69
44
70
-**Parameters**:
45
-
-`output_path` (optional): The directory where the JSON documentation will be saved. If not specified, the default path is `../../../../office-js-api-declarations/office-js-api-plugins`.
71
+
-`output_path` (optional): The directory where the JSON documentation
72
+
will be saved. If not specified, the default path is
This script generates Markdown documentation from the `apiBuilder.js` files.
77
+
This script generates JSON documentation based on the `plugin-events.js` files.
50
78
51
79
-**Usage**:
80
+
52
81
```bash
53
-
python generate_docs_md.py output_path
82
+
python generate_docs_events_json.py output_path
54
83
```
55
84
56
85
-**Parameters**:
57
-
-`output_path` (optional): The directory where the Markdown documentation will be saved. If not specified, the default path is `../../../../office-js-api/`.
86
+
-`output_path` (optional): The directory where the JSON documentation
87
+
will be saved. If not specified, the default path is
0 commit comments