Add sprites and styles per directory and recursively from one root directory
#1,829 opened on May 14, 2025
Repository metrics
- Stars
- (3,761 stars)
- PR merge metrics
- (PR metrics pending)
Description
I have about 20 projects and the number of projects is increasing, all using their own sprites. I need to configure one extra line for every new project's sprites. I know Martin can already search recursively, but when I do that all projects can access each other's sprites, because they are all included in one big sprite, which beside takes a lot of time to create. Would it be possible to add an option to recursively search the given sprite root directory (eg.: /usr/share/projects/sprites) and then for every first level directory found add the svg files to the sprite with the name of that directory.
Example directory structure in which /usr/share/projects/sprites/ is the root folder entered in Martin's config.yaml file and the highlighted directory will be cataloged and published as a sprite. /usr/share/projects/sprites/project1/icon1.svg /usr/share/projects/sprites/project1/icon2.svg /usr/share/projects/sprites/project2/icon1.svg /usr/share/projects/sprites/project2/icon2.svg /usr/share/projects/sprites/project3/icon1.svg /usr/share/projects/sprites/project3/icon2.svg
The same functionality would be nice to have for styles.