Code: Select all
{
"version": 1,
"themes": {
"theme-name": {
"name": "Name of your theme",
"repo": "https://github.com/yourUsername/theme-name/tree/master",
"zip": "https://github.com/yourUsename/theme-name/archive/refs/heads/master.zip",
"summary": "My sample theme",
"version": "2.0.0",
"image": "https://raw.githubusercontent.com/yourUsername/theme-name/master/preview.jpg"
}
}
}
I'm not clear if the additional folder references in the "zip" line may be required in some circumstances. If so then I suggest the documentation at https://github.com/robiso/wondercms/wiki/Custom-modules explain what those might be.
As for the second error message, Entirely my fault! I had failed to read the whole page and spent some time using trial and error to find the correct form of URL to use to add the repository to my copy of WonderCMS! I missed that the answer is already there! It's:
Code: Select all
https://raw.githubusercontent.com/yourUsername/theme-name/master/wcms-modules.json