linkstack-themes icon indicating copy to clipboard operation
linkstack-themes copied to clipboard

How to make a own template?

Open GustelDE opened this issue 1 year ago • 2 comments

LinkStack version

4.8.0

Description

I wanted to ask: I want to make a own, modified version of the "Sublime" theme. I downloaded the theme (zip-file from Github), renamed the folders and the name inside the read.me file and uploaded it under, lets say "newname-v1.0.zip".

But it shows up incorrectly, the version is displayed wrong, the preview-image is missing (but present in the zip) and all changes I made do not reflect...

How can I create a own theme? I dont want to edit the original Sublime-files, because I assume with the next update, all work is gone. Simply just locally, nothing on Github etc...

Details about your system

Docker-Version

How to reproduce

Downloaded a theme, edited and uploaded under new name.

Possible Solution

No response

Additional Context

No response

GustelDE avatar Sep 26 '24 21:09 GustelDE

can you share us your readme.md file ? because linkstack is reading this file

lastsamurai26 avatar Sep 27 '24 05:09 lastsamurai26

Hi, I did it so, I searched for the volume of the Docker-Container and stopped the container. Then copied: sudo cp -r /var/lib/docker/volumes/[name-of-contianer_data]/_data/themes/sublime/ /var/lib/docker/volumes/[name-of-contianer_data]/_data/themes/newtheme/

I edited then the readme.md in the newtheme-folder, changed Name, Author, Version, Date and removed the lines Theme Author URI and Source code. Then I started the container and it showed up correctly with the label "Update manually" in the theme-updater. Then I copied the preview-png from linux directly into the folder of the new theme.

I saw the owner/group was wrong and I executed: sudo chown -R _apt:systemd-journal /var/lib/docker/volumes/[name-of-contianer_data]/_data/themes/newtheme/

_apt:systemd-journal was the default owner/group of all other folders of the Linkstack-volume. Not sure if this is just for my Ubuntu/Docker-version so or always. I would check it.

Now I was able to edit the files and make my changes as desired. An update of the original sublime-theme should not affect my newtheme (at least I hope so).

It seems the information from the readme.md are read only once? Or it was beacause some caching with my reverse-proxy?

Maybe you could describe in the documentation how to create a locally/offline-theme? It's not difficult, if you know how to. A empty "dummy-readme.md" would have saved me a few hours.

GustelDE avatar Sep 28 '24 15:09 GustelDE