File size: 1,165 Bytes
3883c60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Extension base

## What is this about?
The extension base shows the files that the extension loader will check for.

## Structure

Extensions are placed in the `extensions` folder.

2 different descriptions below, same structure, pick the one you understand best.
<details>
<summary>
As markdown list
</summary>

* extension
  * extension.json **(required)**
  * main.py
  * requirements.py
  * style.py
  * scripts
    * script.js
</details>

<details>
<summary>
As file path list
</summary>

extension/extension.json **(required)**  
extension/main.py  
extension/requirements.py  
extension/style.py  
extension/scripts/script.js
</details>

## File contents

extension/requirements.py: Refer to [Requirements docs](requirements.md)  
extension/style.py: Refer to [SimpleStyle docs](style.md)  
extension/scripts/script.js: Refer to [Custom javascript docs](js.md)

extension/extension.json:
```json
{
  "name": "Extension name",
  "description": "This extension does nothing.",
  "author": "GitMylo",
  "tags": []
}
```

extension/main.py:
```python
# Put any code here, such as callback registers etc. This code will be ran after install, on plugin init.
```