Skip to content

Commit 711a779

Browse files
Update path for volto-light-theme in styleguide (#96)
* Update path for volto-light-theme in styleguide because volto light theme is now a monorepo it has a different folder structure then before. That's why I made these changes to go into volto-light-theme/frontend/packages/volto-light-theme/src instead of volto-light-theme/src * Added Changelog entry * updated the instructions to install VLT in the styleguide
1 parent 3247032 commit 711a779

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/docs/reference/frontend-styleguide.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,26 @@ and declare it in the root `package.json` as a dependency:
159159
}
160160
```
161161

162+
Also add these overrides to the root `package.json`:
163+
164+
```json
165+
"pnpm": {
166+
"overrides": {
167+
// other overrides
168+
"@kitconcept/volto-light-theme": "workspace:*",
169+
"@kitconcept/volto-bm3-compat": "1.0.0-alpha.1"
170+
},
171+
// other pnpm packages
172+
}
173+
```
174+
175+
After that in the `volto.config.js` add @kitconcept/volto-light-theme to the addons and the thee like this:
176+
177+
```js
178+
const addons = ['volto-vlt-test-styleguide', '@kitconcept/volto-light-theme'];
179+
const theme = '@kitconcept/volto-light-theme';
180+
```
181+
162182
in the add-on's `tsconfig.json`, declare it as a path mapping:
163183

164184
```json
@@ -167,7 +187,7 @@ in the add-on's `tsconfig.json`, declare it as a path mapping:
167187
"compilerOptions": {
168188
// other existing options...
169189
"paths": {
170-
"@kitconcept/volto-light-theme/*": ["../volto-light-theme/src/*"]
190+
"@kitconcept/volto-light-theme/*": ["../volto-light-theme/frontend/packages/volto-light-theme/src/*"]
171191
}
172192
}
173193
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated the instructions to install VLT via the styleguide. @TimoBroeskamp

0 commit comments

Comments
 (0)