Files
FWS-PacManage/doc/README.md
BlackAngelTV 56c491f33e docs: add the contribution guide the agent guide points at
The agent guide now sends contributors to CONTRIBUTING.md for the
conventions, and that file did not exist, so the pointer was a dead end
and the conventions lived only in the README, where they sat next to the
feature list.

The guide covers what a contributor needs in one place — the licence
terms that constrain reuse, the build and the four CMake options, the
nine test targets and what each one covers, the code conventions, and the
point of the architecture split that decides where new code goes — plus
the commit rules the agent guide states, including signed commits and no
tool attribution. The READMEs and the doc index now link to it instead of
duplicating the list.
2026-09-27 21:36:13 +02:00

45 lines
2.7 KiB
Markdown

# Documentation PacManager
Cette documentation est la source du **wiki Gitea** du projet : chaque fichier est
une page autonome, et son nom de fichier est celui de la page wiki
(`architecture.md` → page `architecture`).
Le `README.md` à la racine reste la présentation du projet (fonctionnalités,
compilation, licence) ; ce dossier décrit **comment le logiciel est construit et
comment il fonctionne à l'intérieur**, pour quelqu'un qui doit le modifier, le
déboguer ou brancher un plugin.
## Pages
| Page | Contenu |
| --- | --- |
| [installation.md](installation.md) | Dépendances, compilation, options CMake, installation dans le bureau, fichiers créés sur le système |
| [architecture.md](architecture.md) | La coupure logique / interface, le flux d'un appel, où ajouter du code |
| [interface.md](interface.md) | Les écrans, la navigation, les raccourcis clavier, le thème (tokens du site FWS) |
| [operations.md](operations.md) | Le déroulé d'une opération : sudo, verrou pacman, progression, providers multiples |
| [plugins.md](plugins.md) | Fournisseurs et extensions : contrats, ABI C, emplacements, écriture d'un plugin |
| [magasin-de-plugins.md](magasin-de-plugins.md) | Le magasin : format du catalogue JSON, installation, sécurité, publication |
| [mise-a-jour.md](mise-a-jour.md) | L'auto-mise à jour : version, méthodes, redémarrage |
| [tests.md](tests.md) | Les cibles de test et ce qu'elles couvrent, comment en ajouter |
| [depannage.md](depannage.md) | Problèmes courants et comment les diagnostiquer |
## Les fichiers à connaître
| Fichier | Rôle |
| --- | --- |
| `include/app-core.h`, `src/app-core.cpp` | **La logique** : providers, workers, historique, plugins, sudo, verrou pacman, auto-update. Aucun widget. |
| `include/main-window.h`, `src/main-window.cpp` | **Le cadre** : barre latérale, en-tête, barre de statut, menus, tray, dialogues, feuille de style. |
| `pages/` | **Les écrans**, un fichier par écran, plus `page.h` (contrat) et `ui-kit.*` (widgets partagés). |
| `include/progress-tracker.h` | La progression d'une opération, lue dans la sortie des outils. |
| `include/plugin-shop.h`, `src/plugin-shop.cpp` | Le magasin de plugins et son catalogue. |
| `include/workers.h`, `src/workers.cpp` | Les threads de travail (recherche, listes, actions). |
| `plugins/` | Les plugins livrés : `flatpak-provider`, `aur-provider`, et les deux exemples. |
## Conventions du projet
Elles sont dans [`CONTRIBUTING.md`](../CONTRIBUTING.md) (FR) et
[`CONTRIBUTING.en.md`](../CONTRIBUTING.en.md) (EN) : build, tests, commits en
anglais au format Conventional Commits et signés, noms de fichiers en
kebab-case, identifiants en anglais, commentaires en anglais. Les agents IA
suivent [`AGENTS.md`](../AGENTS.md).