-
Create a new volto project, if you don't have one.
-
Add the following packages to the mrs.developer.json
file of your volto project.
{
"volto-educal-hero-block": {
"url": "git@github.com:collective/volto-educal-hero-block.git",
"https": "https://github.com/collective/volto-educal-hero-block.git",
"package": "@plone-collective/volto-educal-hero-block",
"branch": "main",
"path": "src"
},
"volto-block-banner": {
"url": "git@github.com:collective/volto-block-banner.git",
"https": "https://github.com/collective/volto-block-banner.git",
"package": "@plone-collective/volto-block-banner",
"branch": "main",
"path": "src"
},
"volto-educal-theme": {
"url": "git@github.com:collective/volto-educal-theme.git",
"https": "https://github.com/collective/volto-educal-theme.git",
"package": "@plone-collective/volto-educal-theme",
"branch": "main",
"path": "src"
}
}
-
Now link the add-on in the volto project:
-
Make sure the private
field is set to true
in the volto project's package.json
. As yarn workspaces can only be enabled in private projects.
-
Add src/addons/*
as array members under the workspaces
property in the volto project's package.json
.
-
Add @plone-collective/volto-educal-theme
as an array member under the addons
property in the volto project's package.json
.
Finally, the volto project's package.json
should include the following lines:
{
"private": true,
"workspaces": ["src/addons/*"],
"addons": ["@plone-collective/volto-educal-theme"]
}
REMEMBER:
- You just need to add this in your volto project's
package.json
file and not in any of the add-ons package.json
file. - For a more detailed guide, on how to install an add-on in volto visit here.
-
Change this line in src/theme.js
of the volto project.
- import 'semantic-ui-less/semantic.less';
+ import '@plone-collective/volto-educal-theme/semantic.less';
import '@plone/volto/../theme/themes/pastanaga/extras/extras.less';
You can refer the change here.
-
Bootstrap the Plone API backend. Alternatively, you can visit the official documentation for other installation options.
-
Run yarn
to install the node modules. 📦
-
Run yarn start
command to start the volto server! 🍻