Option NAME, VERSION and ID
parent
eeb616ba44
commit
0a25ff8d7e
46
Home.md
46
Home.md
|
@ -89,7 +89,8 @@ unopkg done.
|
||||||
|
|
||||||
Only modify this options.
|
Only modify this options.
|
||||||
|
|
||||||
**Configure correctly this options in this file, before you start code your extension.**
|
**Configure correctly this options in this file, before you create your new extension.**
|
||||||
|
|
||||||
|
|
||||||
### Type extension
|
### Type extension
|
||||||
|
|
||||||
|
@ -107,6 +108,49 @@ Example:
|
||||||
TYPE_EXTENSION = 1
|
TYPE_EXTENSION = 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Name
|
||||||
|
|
||||||
|
Your extension name, not used spaces.
|
||||||
|
|
||||||
|
`NAME`
|
||||||
|
|
||||||
|
* String
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```python
|
||||||
|
NAME = 'MyExtension'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Version
|
||||||
|
|
||||||
|
`VERSION`
|
||||||
|
|
||||||
|
* String
|
||||||
|
* The version for extension, look: [https://semver.org/](https://semver.org/)
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```python
|
||||||
|
VERSION = '0.1.0'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### ID extension
|
||||||
|
|
||||||
|
Internal name for your extension.
|
||||||
|
|
||||||
|
`ID`
|
||||||
|
|
||||||
|
* String
|
||||||
|
* Should be unique, used URL inverse
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```python
|
||||||
|
ID = 'org.yourname.extensionname'
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
* [Library easymacro.py](easymacro)
|
* [Library easymacro.py](easymacro)
|
||||||
|
|
||||||
[Leer en español](es.home)
|
[Leer en español](es.home)
|
||||||
|
|
55
conf.py.md
55
conf.py.md
|
@ -1,63 +1,8 @@
|
||||||
All options in this file. Only modify this options.
|
|
||||||
|
|
||||||
**Configure the correct options in this file, before you start code your extension.**
|
|
||||||
|
|
||||||
|
|
||||||
### Type extension
|
|
||||||
|
|
||||||
`TYPE_EXTENSION`
|
|
||||||
|
|
||||||
It's important select correctly this option.
|
|
||||||
|
|
||||||
* Integer
|
|
||||||
* 1 = Normal extension
|
|
||||||
* 2 = New components
|
|
||||||
* 3 = Calc addin
|
|
||||||
|
|
||||||
Example:
|
|
||||||
```python
|
|
||||||
TYPE_EXTENSION = 1
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
### Version
|
|
||||||
|
|
||||||
`VERSION`
|
|
||||||
|
|
||||||
* String
|
|
||||||
* The version of extension, look: [https://semver.org/](https://semver.org/)
|
|
||||||
|
|
||||||
Example:
|
|
||||||
```python
|
|
||||||
VERSION = '0.1.0'
|
|
||||||
```
|
|
||||||
|
|
||||||
### Name
|
|
||||||
|
|
||||||
Your extension name, not used spaces.
|
|
||||||
|
|
||||||
`NAME`
|
|
||||||
|
|
||||||
* String
|
|
||||||
|
|
||||||
Example:
|
|
||||||
```python
|
|
||||||
NAME = 'MyMacro'
|
|
||||||
```
|
|
||||||
|
|
||||||
### ID extension
|
|
||||||
|
|
||||||
It's internal name for you extension.
|
|
||||||
|
|
||||||
`ID`
|
|
||||||
|
|
||||||
* String
|
|
||||||
* Should be unique, used URL inverse
|
|
||||||
|
|
||||||
Example:
|
|
||||||
```python
|
|
||||||
ID = 'org.yourname.extensionname'
|
|
||||||
```
|
|
||||||
|
|
||||||
### Locales
|
### Locales
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue