How to create my own fork rep on git
-
Hello!
I want make some changes in material theme so i created fork rep on github https://github.com/Master-GitHub/nodebb-theme-material-master-wild. Also i changed id, url etc in package.json and plugin.json. I installed theme with
npm install https://github.com/Master-GitHub/nodebb-theme-material-master-wild
but after restart plugin getting restart. I dont know why. -
What kind of changes? You might want to do a child theme instead.
-
@master than you should definitely use a child theme instead.
-
@master The easiest way, actually, is to just create your own custom plugin with the templates you want overwritten, and use the existing theme. Here's how I'd suggest you do it:
- create a new directory for your plugin
- enter the directory and create a new file
plugin.json
containing the following:{ "templates": "templates" }
- create a new directory called
templates
and in that directory, place the modified template files you made - run
npm init
to create apackage.json
file - publish to git
npm install [git url] --save
in the NodeBB directory- activate the plugin
- rebuild and restart
Copyright © 2024 NodeBB | Contributors