goodrobots / devFrame

devFrame is a 3D printable, Open Source quadcopter and rover (coming soon) frame design. Supports 300-500 class quadcopter frames in Stretch X, Hybrid X and H configurations, as well as skid steer rovers (coming soon).
Other
7 stars 6 forks source link

Setup Google Sheets for _data Source #77

Closed cglusky closed 4 years ago

cglusky commented 4 years ago

Going to use public google sheets as data source for most of the docs site. Sheets will be exported as JSON and saved in _data dir for use in Jekyll.

This can be done programmatically with libs like tabletop:

https://github.com/jsoma/tabletop

And then stringify and save to github direct. e.g.

https://github.com/kinlane/openapi-toolbox/blob/master/pull-spreadsheet/index.html

But for now it will be a manual process.

cglusky commented 4 years ago

https://docs.google.com/spreadsheets/d/1AByeqGa_GsxQPJdSBpft0BGj954U5yF6GeJ3wLEKbSQ/edit?usp=sharing

Saving each sheet as csv and putting in _data folder. Jekyll can then iterate over data to turn into arrays for use on site.

Should also allow other users to: clone repo: add builds folder with csv's and other assets; and submit PR's without knowing anything about Jekyll.

cglusky commented 4 years ago

for now just pulling printedParts and everything else is in .md files. will open a new issue if the need for this comes up again.