Browse Source

Un favicon, et ranger dans Externes les projets en dehors de la zone

master
Matthieu Marcillaud 9 months ago
parent
commit
2478849386
  1. BIN
      phpdoc/template/images/favicon.ico
  2. 4
      src/Stage/IndexStage.php
  3. BIN
      templates/favicon.png

BIN
phpdoc/template/images/favicon.ico vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

4
src/Stage/IndexStage.php

@ -55,6 +55,8 @@ class IndexStage implements StageInterface {
$organization = 'spip-dist';
} elseif ($organization === 'spip' and $project->prefix !== 'spip') {
$organization = 'spip-core';
} elseif (strpos($project->urls->repository, 'git.spip.net/') === false) {
$organization = 'extern';
}
$groups[$organization][] = $project;
}
@ -90,6 +92,7 @@ class IndexStage implements StageInterface {
'spip-contrib-outils' => 'Outils',
'spip-contrib-squelettes' => 'Squelettes',
'other' => 'Autres',
'extern' => 'Externes',
];
$others = array_diff(array_keys($groups), array_keys($organizations));
foreach ($others as $other) {
@ -117,6 +120,7 @@ class IndexStage implements StageInterface {
$template->generate('variables.css.twig');
$fs = new Filesystem();
$fs->copy($context->directory->templates . '/favicon.png', $context->directory->output_base . '/favicon.png');
$fs->copy($context->directory->templates . '/autodoc.png', $context->directory->output_base . '/autodoc.png');
$fs->copy($context->directory->templates . '/autodoc.css', $context->directory->output_base . '/autodoc.css');
}

BIN
templates/favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Loading…
Cancel
Save