Skip to content

Commit

Permalink
Complete user manual (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts authored May 25, 2023
2 parents 4837711 + e804ed6 commit d27ba93
Show file tree
Hide file tree
Showing 18 changed files with 348 additions and 74 deletions.
7 changes: 3 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
"python.terminal.activateEnvInCurrentTerminal": true,
"python.terminal.activateEnvironment": true,
// Formatter
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--target-version=py38"
],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
// Linter
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
Expand Down
5 changes: 5 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ First off, thanks for considering to contribute to this project!

These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.

## Versioning and changelog

This project adheres to [Semantic Versioning](https://semver.org/).
The CHANGELOG format tries to complies with [Keep a Changelog](https://keepachangelog.com/) but it's mainly a concatenation of autogenerated release notes by GitHub Release.

## Git hooks

We use git hooks through [pre-commit](https://pre-commit.com/) to enforce and automatically check some "rules". Please install it before to push any commit.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
[![PyPI - Downloads](https://img.shields.io/pypi/dm/qgis-deployment-toolbelt)](https://pypi.org/project/qgis-deployment-toolbelt/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/qgis-deployment-toolbelt)](https://pypi.org/project/qgis-deployment-toolbelt/)

Cross-platform (but Windows focused) CLI to perform deployment operations: profiles, plugins, etc.
Cross-platform (but Windows focused) CLI to perform deployment operations aorund QGIS: profiles, plugins, etc.

**Interested**? For further details, [read the documentation](https://guts.github.io/qgis-deployment-cli//) :books:.
**Interested**? For further details, [read the documentation](https://guts.github.io/qgis-deployment-cli/) :books:.

## Contribute

Expand Down
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
# -- Options for HTML output -------------------------------------------------

# Theme
# html_favicon = "static/img/qgis_deployment_toolbelt_logo_200px.png"
# html_logo = "static/img/qgis_deployment_toolbelt_logo_200px.png"
html_favicon = "static/logo_qdt.png"
html_logo = "static/logo_qdt.png"
html_theme = "furo"
html_theme_options = {
"source_repository": __about__.__uri__,
Expand Down Expand Up @@ -146,7 +146,7 @@
"--theme",
"forest",
"--width",
"600",
"100%",
"--backgroundColor",
"transparent",
]
Expand Down Expand Up @@ -247,4 +247,4 @@ def run_apidoc(_):
# launch setup
def setup(app):
app.connect("builder-inited", run_apidoc)
app.connect("builder-inited", populate_download_page)
# app.connect("builder-inited", populate_download_page)
32 changes: 30 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,36 @@
> **Source code:** {{ repo_url }}
> **Last documentation build:** {{ date_update }}
---
----

![QGIS Deployment Toolbelt CLI](/static/qgis-deployment-toolbelt_cli_help.png)

## What it is and the underlying philosophy

Development is développement est conçu selon les principes suivants :

- a tailor-made tool for QGIS ecosystem
- open source and community driven
- independant from the QGIS installation mode
- packaged as CLI and prebuilt stand-alone binary
- cross-platform but with a strong focus on Windows
- documented
- tested
- usable with a single action (*one-click run*)
- easily reusable
- easily maintenable
- compatible with automation mechanisms:
- cron / scheduled tasks
- Windows [groups policies](https://en.wikipedia.org/wiki/Group_Policy) (so called GPO for *Group Policies Object*) and [tooling around client management](https://learn.microsoft.com/en-us/windows/client-management/)
- flexible enough to be adapted to an internal security policy (allowing to put a custom code certificate)

### It's not

- an installer for QGIS
- a packager helper

----

```{toctree}
---
caption: How to use
Expand All @@ -19,9 +45,10 @@ usage/installation
usage/how_it_works
usage/how_to_use
usage/profile
usage/scenario
jobs/index
usage/cli
usage/settings
jobs/index
usage/schedule_deployment
```

Expand All @@ -47,6 +74,7 @@ caption: Miscellaneous
maxdepth: 1
---
misc/compatibility
misc/tip_get_plugin_id
misc/credits
misc/funding
```
2 changes: 1 addition & 1 deletion docs/misc/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ The executable has been tested on Windows 10+.

The Python script is multiplatform (in theory...) and has been tested on:

- Ubuntu 20.04
- Ubuntu 22.04
- Windows 10
9 changes: 9 additions & 0 deletions docs/misc/credits.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@
```

----

## Licenses

> Generated with [pip-licenses](https://pypi.org/project/pip-licenses/)
```{include} licenses.md
```

----

## Images

- film scenario [by Berkah Icon from Noun Project](https://thenounproject.com/browse/icons/term/film-scenario/) under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
- profiles icon [by Lil Squid from Noun Project](https://thenounproject.com/browse/icons/term/profiles/) under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
8 changes: 8 additions & 0 deletions docs/misc/tip_get_plugin_id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# How to get a plugin ID

1. Open the repository in your browser. Example for the official set on QGIS 3.28: <https://plugins.qgis.org/plugins/plugins.xml?qgis=3.28>
1. Open the RAW mode (or source), typing `Ctrl + U` or right-click and select `View page source`
1. Use your browser search `Ctrl + F` to look for the plugin you want
1. Grab the `plugin_id` attribute:

![Plugin ID into official repository - Example QuickOSM](/static/repository_plugins_plugin_id.webp)
Binary file added docs/static/icon_profiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions docs/static/icon_profiles.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/icon_scenario.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions docs/static/icon_scenario.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/logo_qdt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/usage/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Main command

Aliases : `qdt`, `qgis-deployment-toolbelt`, `qdeploy-toolbelt`

```{sphinx_argparse_cli}
:module: qgis_deployment_toolbelt.cli
:hook:
Expand Down
Loading

0 comments on commit d27ba93

Please sign in to comment.