Skip to content

Commit

Permalink
v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-farre committed Nov 26, 2024
1 parent 02b99a9 commit 155f55e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion commands/DeveloperController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use humhub\modules\cleanTheme\models\Configuration;
use humhub\modules\cleanTheme\Module;
use Yii;
use yii\base\Exception;
use yii\console\Controller;
use yii\console\ExitCode;
use yii\helpers\BaseConsole;
Expand Down Expand Up @@ -241,13 +242,22 @@ private function correctSelect2Theme($file): void

/**
* Generate dynamic CSS file
*
* Usage: php yii clean-theme/generate-dynamic-css-file
*
* Can be used after installing the module by cloning the GitHub repository
*/
public function actionGenerateDynamicCssFile()
{
/** @var Module $module */
$module = Yii::$app->getModule('clean-theme');
$module->configuration->generateDynamicCSSFile();
try {
$module->configuration->generateDynamicCSSFile();
} catch (Exception $e) {
$this->message('Could not generate dynamic CSS file: ' . $e->getMessage(), 'error');
return ExitCode::UNSPECIFIED_ERROR;
}
$this->message("\nSuccessfully generated dynamic CSS file", 'success');
return ExitCode::OK;
}
}
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

Unreleased
2.2.0 (November 26, 2024)
--------------------
- Enh: Add an option in the module configuration for menus to display a border instead of a background color
- Chg: The body class `is-guest` is now `hh-ct-is-guest`
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Clean Theme",
"description": "Clean theme based on the community HumHub theme",
"keywords": [],
"version": "2.1.0",
"version": "2.2.0",
"humhub": {
"minVersion": "1.17"
},
Expand Down

0 comments on commit 155f55e

Please sign in to comment.