turingschool / savile

Turing's Design System
MIT License
1 stars 0 forks source link

Switch from collections to data #63

Closed tannerwelsh closed 3 years ago

tannerwelsh commented 3 years ago

What does this PR do?

Changes the docs generation script from exporting Markdown files to exporting YAML files. This means that we get one file per category of doc (e.g. _data/typography.yml) rather than one file per doc (e.g. `docs/_tokens/--s-font-size-xl.md)

This means that we can no longer render a collection item, but instead have to render the data item's example property. See changes to any html file here for example.

Where should the reviewer start?

Changes to bin/build-css-docs.

How should this be manually tested?

Run bin/build-css-docs

Any other deploy steps?

Nope!