Enhance documentation and improve API configuration

- Added VPN connection requirement to README.md for local access to the Logistics API.
- Updated documentation_api_logistics.md to clarify usage environments and provide detailed connection instructions.
- Modified update-documentation.mdc to include guidelines on handling sensitive information in examples.
- Implemented automatic heading ID generation in Documentation.php for better navigation in the documentation.
- Updated logistics.php configuration to include default values for base URL, API key, and folder.
- Added support contact information in the dashboard view for API-related issues.
This commit is contained in:
2026-02-20 14:56:38 +01:00
parent 657c5ad5e3
commit 4b2f172e2a
7 changed files with 155 additions and 35 deletions

View File

@@ -20,10 +20,32 @@ it('converts markdown to HTML content', function () {
expect($component->get('htmlContent'))
->toBeString()
->not->toBeEmpty()
->toContain('<h1>')
->toContain('<h1 id="')
->toContain('<table>');
});
it('generates heading IDs matching the table of contents anchors', function () {
$html = Livewire::test(Documentation::class)->get('htmlContent');
$anchors = [
'1-pré-requis',
'2-environnements-dutilisation',
'3-comment-effectuer-des-requêtes',
'4-structure-de-réponse',
'5-tables-et-colonnes-disponibles',
'6-récupération-de-données',
'7-envoi-de-données',
'8-endpoints-non-fonctionnels',
'9-relations-entre-entités',
'10-remarques-et-points-dattention',
'11-ressources-externes',
];
foreach ($anchors as $anchor) {
expect($html)->toContain("id=\"{$anchor}\"");
}
});
it('displays the main documentation sections', function () {
Livewire::test(Documentation::class)
->assertSee('Pré-requis')