duckinator / parts.horse

A website documenting electrical components.
https://parts.horse
MIT License
3 stars 1 forks source link

Replace or refine JSON structure #128

Closed duckinator closed 11 months ago

duckinator commented 1 year ago

The JSON structure being used right now is pretty frustrating. I added things as needed, and it was never actually designed.

It would be nice to reconsider both the format (maybe TOML?) as well as the actual organization structure of each file.

Part of #112.

duckinator commented 1 year ago

One approach could be to use a static site generator that uses YAML frontmatter (related: #127) and manually make a page for each component. If that's done, the frontmatter could contain the information needed to render the images as well.

I'm unsure if this is the best approach, but it would (theoretically) mean only the part related to generating images is actually custom, which should definitely lower the maintenance burden.

duckinator commented 11 months ago

The JSON files were removed with the switch to Sphinx in #144.