diff --git a/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/CmsInstaller.php b/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/CmsInstaller.php
deleted file mode 100644
index 5dc9481..0000000
--- a/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/CmsInstaller.php
+++ /dev/null
@@ -1,64 +0,0 @@
-
- * @link https://getkirby.com
- * @copyright Bastian Allgeier GmbH
- * @license https://opensource.org/licenses/MIT
- */
-class CmsInstaller extends Installer
-{
- /**
- * Decides if the installer supports the given type
- *
- * @param string $packageType
- * @return bool
- */
- public function supports($packageType): bool
- {
- return $packageType === 'kirby-cms';
- }
-
- /**
- * Returns the installation path of a package
- *
- * @param \Composer\Package\PackageInterface $package
- * @return string
- */
- public function getInstallPath(PackageInterface $package): string
- {
- // get the extra configuration of the top-level package
- if ($rootPackage = $this->composer->getPackage()) {
- $extra = $rootPackage->getExtra();
- } else {
- $extra = [];
- }
-
- // use path from configuration, otherwise fall back to default
- if (isset($extra['kirby-cms-path']) === true) {
- $path = $extra['kirby-cms-path'];
- } else {
- $path = 'kirby';
- }
-
- // if explicitly set to something invalid (e.g. `false`), install to vendor dir
- if (is_string($path) !== true) {
- return parent::getInstallPath($package);
- }
-
- // don't allow unsafe directories
- $vendorDir = $this->composer->getConfig()->get('vendor-dir', Config::RELATIVE_PATHS) ?? 'vendor';
- if ($path === $vendorDir || $path === '.') {
- throw new InvalidArgumentException('The path ' . $path . ' is an unsafe installation directory for ' . $package->getPrettyName() . '.');
- }
-
- return $path;
- }
-}
diff --git a/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/Installer.php b/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/Installer.php
deleted file mode 100644
index 34371dc..0000000
--- a/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/Installer.php
+++ /dev/null
@@ -1,105 +0,0 @@
-
- * @link https://getkirby.com
- * @copyright Bastian Allgeier GmbH
- * @license https://opensource.org/licenses/MIT
- */
-class Installer extends LibraryInstaller
-{
- /**
- * Decides if the installer supports the given type
- *
- * @param string $packageType
- * @return bool
- */
- public function supports($packageType): bool
- {
- throw new RuntimeException('This method needs to be overridden.'); // @codeCoverageIgnore
- }
-
- /**
- * Installs a specific package
- *
- * @param \Composer\Repository\InstalledRepositoryInterface $repo Repository in which to check
- * @param \Composer\Package\PackageInterface $package Package instance to install
- * @return \React\Promise\PromiseInterface|null
- */
- public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
- {
- // first install the package normally...
- $promise = parent::install($repo, $package);
-
- // ...then run custom code
- $postInstall = function () use ($package): void {
- $this->postInstall($package);
- };
-
- // Composer 2 in async mode
- if ($promise instanceof PromiseInterface) {
- return $promise->then($postInstall);
- }
-
- // Composer 1 or Composer 2 without async
- $postInstall();
- }
-
- /**
- * Updates a specific package
- *
- * @param \Composer\Repository\InstalledRepositoryInterface $repo Repository in which to check
- * @param \Composer\Package\PackageInterface $initial Already installed package version
- * @param \Composer\Package\PackageInterface $target Updated version
- * @return \React\Promise\PromiseInterface|null
- *
- * @throws \InvalidArgumentException if $initial package is not installed
- */
- public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
- {
- // first update the package normally...
- $promise = parent::update($repo, $initial, $target);
-
- // ...then run custom code
- $postInstall = function () use ($target): void {
- $this->postInstall($target);
- };
-
- // Composer 2 in async mode
- if ($promise instanceof PromiseInterface) {
- return $promise->then($postInstall);
- }
-
- // Composer 1 or Composer 2 without async
- $postInstall();
- }
-
- /**
- * Custom handler that will be called after each package
- * installation or update
- *
- * @param \Composer\Package\PackageInterface $package
- * @return void
- */
- protected function postInstall(PackageInterface $package)
- {
- // remove the package's `vendor` directory to avoid duplicated autoloader and vendor code
- $packageVendorDir = $this->getInstallPath($package) . '/vendor';
- if (is_dir($packageVendorDir) === true) {
- $success = $this->filesystem->removeDirectory($packageVendorDir);
-
- if ($success !== true) {
- throw new RuntimeException('Could not completely delete ' . $packageVendorDir . ', aborting.'); // @codeCoverageIgnore
- }
- }
- }
-}
diff --git a/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/Plugin.php b/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/Plugin.php
deleted file mode 100644
index 033cbc2..0000000
--- a/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/Plugin.php
+++ /dev/null
@@ -1,59 +0,0 @@
-
- * @link https://getkirby.com
- * @copyright Bastian Allgeier GmbH
- * @license https://opensource.org/licenses/MIT
- */
-class Plugin implements PluginInterface
-{
- /**
- * Apply plugin modifications to Composer
- *
- * @param \Composer\Composer $composer
- * @param \Composer\IO\IOInterface $io
- * @return void
- */
- public function activate(Composer $composer, IOInterface $io): void
- {
- $installationManager = $composer->getInstallationManager();
- $installationManager->addInstaller(new CmsInstaller($io, $composer));
- $installationManager->addInstaller(new PluginInstaller($io, $composer));
- }
-
- /**
- * Remove any hooks from Composer
- *
- * @codeCoverageIgnore
- *
- * @param \Composer\Composer $composer
- * @param \Composer\IO\IOInterface $io
- * @return void
- */
- public function deactivate(Composer $composer, IOInterface $io): void
- {
- // nothing to do
- }
-
- /**
- * Prepare the plugin to be uninstalled
- *
- * @codeCoverageIgnore
- *
- * @param Composer $composer
- * @param IOInterface $io
- * @return void
- */
- public function uninstall(Composer $composer, IOInterface $io): void
- {
- // nothing to do
- }
-}
diff --git a/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/PluginInstaller.php b/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/PluginInstaller.php
deleted file mode 100644
index ccdd188..0000000
--- a/site/plugins/your-plugin/vendor/getkirby/composer-installer/src/ComposerInstaller/PluginInstaller.php
+++ /dev/null
@@ -1,112 +0,0 @@
-
- * @link https://getkirby.com
- * @copyright Bastian Allgeier GmbH
- * @license https://opensource.org/licenses/MIT
- */
-class PluginInstaller extends Installer
-{
- /**
- * Decides if the installer supports the given type
- *
- * @param string $packageType
- * @return bool
- */
- public function supports($packageType): bool
- {
- return $packageType === 'kirby-plugin';
- }
-
- /**
- * Returns the installation path of a package
- *
- * @param \Composer\Package\PackageInterface $package
- * @return string path
- */
- public function getInstallPath(PackageInterface $package): string
- {
- // place into `vendor` directory as usual if Pluginkit is not supported
- if ($this->supportsPluginkit($package) !== true) {
- return parent::getInstallPath($package);
- }
-
- // get the extra configuration of the top-level package
- if ($rootPackage = $this->composer->getPackage()) {
- $extra = $rootPackage->getExtra();
- } else {
- $extra = [];
- }
-
- // use base path from configuration, otherwise fall back to default
- $basePath = $extra['kirby-plugin-path'] ?? 'site/plugins';
-
- if (is_string($basePath) !== true) {
- throw new InvalidArgumentException('Invalid "kirby-plugin-path" option');
- }
-
- // determine the plugin name from its package name;
- // can be overridden in the plugin's `composer.json`
- $prettyName = $package->getPrettyName();
- $pluginExtra = $package->getExtra();
- if (empty($pluginExtra['installer-name']) === false) {
- $name = $pluginExtra['installer-name'];
-
- if (is_string($name) !== true) {
- throw new InvalidArgumentException('Invalid "installer-name" option in plugin ' . $prettyName);
- }
- } elseif (strpos($prettyName, '/') !== false) {
- // use name after the slash
- $name = explode('/', $prettyName)[1];
- } else {
- $name = $prettyName;
- }
-
- // build destination path from base path and plugin name
- return $basePath . '/' . $name;
- }
-
- /**
- * Custom handler that will be called after each package
- * installation or update
- *
- * @param \Composer\Package\PackageInterface $package
- * @return void
- */
- protected function postInstall(PackageInterface $package): void
- {
- // only continue if Pluginkit is supported
- if ($this->supportsPluginkit($package) !== true) {
- return;
- }
-
- parent::postInstall($package);
- }
-
- /**
- * Checks if the package has explicitly required this installer;
- * otherwise (if the Pluginkit is not yet supported by the plugin)
- * the installer will fall back to the behavior of the LibraryInstaller
- *
- * @param \Composer\Package\PackageInterface $package
- * @return bool
- */
- protected function supportsPluginkit(PackageInterface $package): bool
- {
- foreach ($package->getRequires() as $link) {
- if ($link->getTarget() === 'getkirby/composer-installer') {
- return true;
- }
- }
-
- // no required package is the installer
- return false;
- }
-}
diff --git a/site/snippets/cover.php b/site/snippets/cover.php
index 1b2f77a..01db5c4 100644
--- a/site/snippets/cover.php
+++ b/site/snippets/cover.php
@@ -8,9 +8,6 @@ $isOpen ??= false;
= $slots->title() ?>
- parent()->parent()->is('textes')){
- snippet('toc', ["content" => $page->bodyBlocks()->toBlocks()]);
- } ?>
text()): ?>
= $slots->text() ?>
diff --git a/site/snippets/header.php b/site/snippets/header.php
index c17c4bc..6d4cbc9 100644
--- a/site/snippets/header.php
+++ b/site/snippets/header.php
@@ -22,8 +22,6 @@ $entryTopPos ??= 20;
-
@@ -64,15 +62,6 @@ $entryTopPos ??= 20;
-
-
-
additionnalCss()->isNotEmpty()): ?>