UIUX: Update documentation interface (#33604)

* Set ui tools baseUrl

Set the URL of the UI tools in a variable in the documentation class so that it can be easily reused

* Group index factorization

* Home page and contributing

Update home page and add a page to contribute to this documentation

* Remove blank line

* Remove blank line 2 and indentation

* Add missing translations / remove unused

* remove trailing text

* Remove indentation

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Anthony Damhet
2025-03-28 15:17:33 +01:00
committed by GitHub
parent c855778dd4
commit 007a1368c1
9 changed files with 669 additions and 24 deletions

View File

@@ -40,12 +40,13 @@ $langs->load('uxdocumentation');
//
$documentation = new Documentation($db);
$group = 'Components';
// Output html head + body - Param is Title
$documentation->docHeader();
$documentation->docHeader($langs->trans('DocListLinks', $group));
// Set view for menu and breadcrumb
$documentation->view = array('Components');
$documentation->view = array($group);
// Output sidebar
$documentation->showSidebar(); ?>
@@ -56,8 +57,8 @@ $documentation->showSidebar(); ?>
<div class="doc-content-wrapper">
<h1 class="documentation-title"><?php echo $langs->trans('DocComponentsTitle'); ?></h1>
<p class="documentation-text"><?php echo $langs->trans('DocComponentsMainDescription'); ?></p>
<h1 class="documentation-title"><?php echo $langs->trans($group); ?></h1>
<p class="documentation-text"><?php echo $langs->trans('DocGroupIndexDescription', $group); ?></p>
<?php $documentation->showSummary(); ?>
</div>