Skip to content

Commit

Permalink
add documentation about plugin path
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 4, 2024
1 parent 22f658a commit e1e114e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/configuration/options.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Settings
# Configuration

## Settings

The plugin must have a configuration, located at the top directory; it can be either:

Expand All @@ -8,12 +10,11 @@ The plugin must have a configuration, located at the top directory; it can be ei

In the configuration, you should at least provide the following configuration:

- `plugin_path`, the folder where the source code is located

Side note, the plugin path shouldn't have any dash character.
- `plugin_path`, the folder where the source code is located under the git repository. See

You can find a template `.qgis-plugin-ci` in this repository.
You can read the docstring of the [Parameters module](/_apidoc/qgispluginci.parameters) to know parameters which are available in the file.
You can read the docstring of the [Parameters module](/_apidoc/qgispluginci.parameters)
to know parameters which are available in the file.

## Conventions

Expand Down
11 changes: 11 additions & 0 deletions docs/configuration/plugin_path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Plugin source path

The plugin path should be named in a distinctive form for the plugin
as it will be used in QGIS for the plugin folder name.
For instance, `my_super_transformer` for _My Super Transformer_ plugin.

Also, [`use_project_slug_as_plugin_directory`](/_apidoc/qgispluginci.parameters) can be used to alter this behavior.
If the source directory is not at the top level, the [`project_slug`](/_apidoc/qgispluginci.parameters)
will automatically be used in any case.

Side note, the plugin path shouldn't contain any dash character.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ caption: Configuration
maxdepth: 1
---
configuration/options
configuration/plugin_path
configuration/exclude
configuration/submodules
configuration/translation
Expand Down

0 comments on commit e1e114e

Please sign in to comment.