0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
penpot/docs/05-Management-Guide.md
2020-01-27 16:08:43 +01:00

689 B

Management Guide

TODO

Collections import

This is the way we can preload default collections of images and icons to the running platform.

First of that, you need to have a configuration file (edn format) like this:

{:icons
 [{:name "Generic Icons 1"
   :path "./icons/my-icons-collection/"
   :regex #"^.*_48px\.svg$"}
  ]
 :images
 [{:name "Generic Images 1"
   :path "./images/my-images-collection/"
   :regex #"^.*\.(png|jpg|webp)$"}]}

You can found a real example in sample_media/config.edn (that also has all the material design icon collections).

Then, you need to execute:

clojure -Adev -m uxbox.media-loader ../path/to/config.edn