How to add more themes in https://bschwarz.github.io/puml-themes/gallery.html
Closed this issue · 9 comments
One way to add themes to the gallery is to push new themes to https://github.com/plantuml/plantuml/tree/master/themes
Themes pushed there will be integrated in next official PlantUML release.
Hmm, what I mean is more like
you see plain theme is available in https://github.com/plantuml/plantuml/blob/master/themes/puml-theme-plain.puml
but it's not shown on the gallery (https://bschwarz.github.io/puml-themes/gallery.html).
Ideally, I'm hoping that all available themes are shown on the gallery.
The themes that are on the official plantuml repo consist of themes from my repo, as well as themes from other repos. The puml-theme-plain was authored by Matthew Leather. Although it looks like it was derived from one of my themes, it is not part of my repo, hence it is not in the gallery.
We could do one of two things:
- I can keep a copy of the themes in my repo as well, and generate the gallery
- create a gallery on the plantuml.com website that shows all the themes
Both would create some initial work to accomplish this.
Instead of hard copying themes,
can this repo just fetch dynamically from plantuml before generating static sites and ideally become a theme gallery for all rather than theme gallery for those authored by you only?
Step 1. Get all themes from plantuml themes
@startuml
help themes
@enduml
Step 2. Generate static images and pages by replacing the theme line from pre defined templates.
Say prepare a basic puml without theme.
And insert theme and generate static sites.
No, I don't want to do that. It would be a misrepresentation, since this repo is concerned with the themes that are in this repo. People may get confused to see themes in the gallery that are not in the repo.
I think the best option would be for plantuml to host the gallery, if that is desired. I can provide the template/scripts that I have if that will help.
Gotcha. Makes sense.
Where do i file a feature request for PlantUML to host it?
And feel free to close this one
You will want to open it against the plantuml official repo. I believe you can create a feature there. And then if they need my help at all, I can help out.
Thanks.