You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/themes/custom/hdbt_subtheme/README.md
+40-48Lines changed: 40 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,34 +4,40 @@
4
4
5
5
HDBT Subtheme is a so called "starterkit" which you can start using by enabling it in `/admin/appearance`.
6
6
7
-
Or if you don't accept the theme name, you can rename every `hdbt_subtheme` file with `your_theme_name` and renaming every `hdbt_subtheme_*` variable/reference with `your_theme_name_*`. And then enable it in `/admin/appearance`.
7
+
HDBT Subtheme uses HDBT theme builder to compile the JS and SCSS files. Also, the SVG icons are combined in to a sprite.svg via the theme builder.
8
8
9
-
Of course you have a choice to not use it at all by just deleting the whole folder.
10
-
11
-
HDBT Subtheme uses webpack module bundler to compile the JS and SCSS files. Also the SVG icons are combined in to a sprite.svg via webpack.
12
-
13
-
As the HDBT Subtheme is only distributed via the [HELfi Platform](https://github.com/City-of-Helsinki/drupal-helfi-platform), it doesn't have an upgrade path per se. In case there is a demand for upgradeability for existing projects then of course we will consider changing the theme to an upgradeable model.
9
+
As the HDBT Subtheme is only distributed via the [HELfi Platform](https://github.com/City-of-Helsinki/drupal-helfi-platform),
10
+
it doesn't have an upgrade path per se. In case there is a demand for upgrade-ability for existing projects then of
11
+
course we will consider changing the theme to an upgradeable model.
14
12
15
13
## Requirements
16
14
17
-
HDBT Subtheme requires HDBT theme as a base theme and it should be installed in `/themes/custom/hdbt`.
15
+
Do not rename the `hdbt_subtheme` as the Platform config 3.* assumes that the sub theme name is `hdbt_subtheme`.
16
+
17
+
HDBT Subtheme requires [hdbt theme](https://github.com/City-of-helsinki/drupal-hdbt) as a base theme, and it should be
### I need to rebuild caches every time I build the css or change the twig files. How can I automate it?
92
81
93
-
You can create a `local.settings.php` and `local.services.yml` files to `/sites/default/` folder and paste the following contents in them.
82
+
You can create a `local.settings.php` and `local.services.yml` files to `/sites/default/` folder and paste the following
83
+
contents in them.
94
84
95
-
**_Keep in mind that using the Null Cache Backend is the primary culprit for caching issues. F.e. Something works in local environment, but not in production environment._**
85
+
**_Keep in mind that using the Null Cache Backend is the primary culprit for caching issues. F.e. Something works in
86
+
local environment, but not in production environment._**
96
87
97
88
local.services.yml:
98
89
```
@@ -131,7 +122,8 @@ aggregation from Drupal. Go to /admin/config/development/performance and uncheck
131
122
site caches and you should be able to continue with your work.
132
123
133
124
### How can I add custom translations?
134
-
Add your UI translations to ``./translations/{fi/sv}.po`` files like it is explained in Translation in Drupal 8 documentation: https://www.drupal.org/docs/understanding-drupal/translation-in-drupal-8.
125
+
Add your UI translations to `./translations/{fi/sv}.po` files like it is explained in Translation in Drupal
0 commit comments