Wykres commitów

4 Commity (7412f7f775baeec8017e482862097898652dfba4)

Autor SHA1 Wiadomość Data
Atul Varma 233dbc379d
Move SVGs into data/symbols. (#54)
This fixes #47 by moving the SVGs into `data/symbols`.
2021-03-22 20:30:36 -04:00
Atul Varma 612195e2f2
Add attach_to metadata. (#52)
This fixes #49 by implementing the `attach_to` metadata property.
2021-03-18 19:32:05 -04:00
Atul Varma c62214186b Only log warnings for unrecognized metadata properties. 2021-02-28 18:57:51 -05:00
Atul Varma 3e1b66a984
Add support for TOML symbol metadata. (#33)
This fixes #20 by adding support for TOML-based metadata for symbols.

There's now a template TOML file in `svg/_template.toml` that documents all the different metadata properties.  The file can be copied to match the name of an SVG file (but with a `.toml` extension) and it will be processed by the vocabulary builder when the site is generated.

Currently there are only two properties documented, `always_nest` and `always_be_nested` (as per the needs outlined in https://github.com/toolness/mystic-symbolic/issues/17#issuecomment-786696966), but they don't actually do anything yet (actual support for _using_ the metadata will come in another file).

Right now the TOML files are validated quite stringently: if a file contains the name of a property it doesn't understand, or the type of the property is wrong, it will raise an error. We can revisit this if it becomes burdensome.
2021-02-26 21:30:38 -05:00