structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
232 stars 28 forks source link

Add support for local theme files #14

Closed wsaeed closed 1 year ago

wsaeed commented 1 year ago

Currently, themes only support URLs for downloading the themes file. Sometimes due to security and privacy, uploading these files to a public web server is impossible.

Add support for themes files stored in the data directory.

themes https://static.structurizr.com/themes/microsoft-azure-2021.01.26/theme.json ./theme.json

simonbrowndotje commented 1 year ago

Themes are loaded client-side, via your web browser, so adding support for local theme files isn't a straightforward task I'm afraid. The web server doesn't need to be public though, it just needs to be accessible from your Structurizr Lite server and your web browser.

wsaeed commented 1 year ago

Adding a web server and keeping the theme files inside GitHub for versioning requires much more effort. We need to set up a publishing mechanism.

Structurizr lite is already using a web server to serve the diagrams. Can the theme files (JSON) be served via the web server?

simonbrowndotje commented 1 year ago

I'd like to understand your use case before adding such a facility ... theme files are designed to be hosted centrally for sharing across multiple workspaces, but it sounds like you're trying to do something different here?