Option NAME, VERSION and ID

Mauricio Baeza 2020-11-07 21:08:22 -06:00
parent eeb616ba44
commit 0a25ff8d7e
2 changed files with 45 additions and 56 deletions

46
Home.md

@ -89,7 +89,8 @@ unopkg done.
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
@ -107,6 +108,49 @@ Example:
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)
[Leer en español](es.home)

@ -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