CedricRobitaille / ecommerce-pattern-library

A term-long project redesigning an ecommerce website focusing on making a pattern library.
https://loving-brahmagupta-0deb11.netlify.com/pattern-library/
0 stars 0 forks source link

Finalizing pattern docs - Completed #24

Open CedricRobitaille opened 4 years ago

CedricRobitaille commented 4 years ago

@Thomasjbradley

I have created the README.md and have adjusted all remaining config.yml files.

There is one issue however. For the /cards/config.yml, for the product-card and product-card-home, examples are not updating on the pattern library. Would know know why that would be?

thomasjbradley commented 4 years ago

Any errors in your Terminal?

CedricRobitaille commented 4 years ago

@thomasjbradley

Nope, it's error free. This has been persisting since I made the cards get data from the .md files.

thomasjbradley commented 4 years ago

You need to use the data source style field, like this:

- name: "data"
  type: "object"
  data:
    source: "site.data.products[1]"
    type: "Product"
CedricRobitaille commented 4 years ago

@thomasjbradley

I have added that the config.yml and still no success.

Also, does the type have to be "Product" or can be be something unrelated?

thomasjbradley commented 4 years ago

Typo in there: site.products[0] not site.data….

Yeah, Product actually doesn’t really matter. It’s just a helpful piece of text.