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
+73-18Lines changed: 73 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
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 and
4
+
Plugins (Methods/Events) API using the following Python scripts:
5
+
6
+
-`office-api/generate_docs_md.py`
7
+
-`plugins/generate_docs_methods_json.py`
8
+
-`plugins/generate_docs_events_md.py`
5
9
6
10
## Requirements
7
11
@@ -20,61 +24,112 @@ npm install
20
24
21
25
## Scripts Overview
22
26
23
-
### `generate_docs_json.py`
27
+
### `office-api/generate_docs_json.py`
24
28
25
29
This script generates JSON documentation based on the `apiBuilder.js` files.
26
30
27
31
-**Usage**:
32
+
28
33
```bash
29
34
python generate_docs_json.py output_path
30
35
```
31
36
32
37
-**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`.
38
+
-`output_path` (optional): The directory where the JSON documentation will be
This script generates Markdown documentation from the `apiBuilder.js` files.
45
+
46
+
-**Usage**:
47
+
48
+
```bash
49
+
python generate_docs_md.py output_path
50
+
```
51
+
52
+
-**Parameters**:
53
+
-`output_path` (optional): The directory where the Markdown documentation will
54
+
be saved. If not specified, the default path is
55
+
`../../../../office-js-api/`.
34
56
35
-
### `generate_docs_plugins_json.py`
57
+
### `plugins/generate_docs_methods_json.py`
36
58
37
59
This script generates JSON documentation based on the `api_plugins.js` files.
38
60
39
61
-**Usage**:
62
+
40
63
```bash
41
-
python generate_docs_plugins_json.py output_path
64
+
python generate_docs_methods_json.py output_path
42
65
```
43
66
44
67
-**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`.
68
+
-`output_path` (optional): The directory where the JSON documentation will be
This script generates Markdown documentation from the `apiBuilder.js` files.
74
+
This script generates JSON documentation based on the `plugin-events.js` files.
50
75
51
76
-**Usage**:
77
+
52
78
```bash
53
-
python generate_docs_md.py output_path
79
+
python generate_docs_events_json.py output_path
54
80
```
55
81
56
82
-**Parameters**:
57
-
-`output_path` (optional): The directory where the Markdown documentation will be saved. If not specified, the default path is `../../../../office-js-api/`.
83
+
-`output_path` (optional): The directory where the JSON documentation will be
0 commit comments