80 lines
932 B
ReStructuredText
80 lines
932 B
ReStructuredText
|
|
Configuration
|
|
=============
|
|
|
|
* Create new extension:
|
|
|
|
``./zaz.py -new -t ~/projects -n MyGreatExtension``
|
|
|
|
|
|
* Move to new folder:
|
|
|
|
``cd ~/projects/MyGreatExtension``
|
|
|
|
|
|
* Edit file ``conf.py``
|
|
|
|
``vim conf.py``
|
|
|
|
|
|
Parameters
|
|
----------
|
|
|
|
**Configure correctly this options, before you start code your extension.**
|
|
|
|
Only modify this options.
|
|
|
|
|
|
Type extension
|
|
^^^^^^^^^^^^^^
|
|
|
|
**TYPE_EXTENSION**
|
|
|
|
The type extension that you want develop.
|
|
|
|
* Integer
|
|
* 1 = Normal extension
|
|
* 2 = New components
|
|
* 3 = Calc addin
|
|
|
|
Example:
|
|
|
|
.. code-block:: python
|
|
|
|
TYPE_EXTENSION = 1
|
|
|
|
|
|
Version
|
|
^^^^^^^
|
|
|
|
**VERSION**
|
|
|
|
* String
|
|
* The current version of extension, look: `Semantic Versioning`_
|
|
|
|
Example:
|
|
|
|
.. code-block:: python
|
|
|
|
VERSION = '0.1.0'
|
|
|
|
|
|
Name
|
|
^^^^
|
|
|
|
**NAME**
|
|
|
|
* String
|
|
* Your extension name, not used spaces.
|
|
|
|
Example:
|
|
|
|
.. code-block:: python
|
|
|
|
NAME = 'MyGreatExtension'
|
|
|
|
|
|
|
|
|
|
.. _Semantic Versioning: https://semver.org/
|