Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populate proposal data from tc39/dataset #290

Closed
jasonwilliams opened this issue Jul 26, 2022 · 1 comment · Fixed by #292
Closed

Populate proposal data from tc39/dataset #290

jasonwilliams opened this issue Jul 26, 2022 · 1 comment · Fixed by #292
Assignees
Labels
content Related to creating / editing content javascript Pull requests that update Javascript code needs decision Needs a decision

Comments

@jasonwilliams
Copy link
Member

jasonwilliams commented Jul 26, 2022

Populate the website with data from https://github.com/tc39/dataset

Eleventy Fetch seems useful (and for local development):
https://www.11ty.dev/docs/quicktips/cache-api-requests/

Task:
A new JS file would need to be added to https://github.com/tc39/tc39.github.io/tree/master/_data which has a similar format to the link above. It fetches proposal data and returns a format we're expecting. At build time this API would be fetched and the data can be iterated through in the template.

Triggering Action from dataset
Either https://github.saobby.my.eu.orgmunity/t/triggering-by-other-repository/16163/2 or a cron action to rebuild the website at a set interval

Issues:

  • Translations? I'm not sure we would have a solution for this if pulling from the API. I'm open to any ideas

Related:

@jasonwilliams jasonwilliams added needs decision Needs a decision content Related to creating / editing content javascript Pull requests that update Javascript code labels Jul 26, 2022
@jasonwilliams jasonwilliams changed the title Pull data from tc39/dataset Populate proposal data from tc39/dataset Jul 26, 2022
@codehag
Copy link
Collaborator

codehag commented Jul 26, 2022

Translations should maybe be pushed to the dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Related to creating / editing content javascript Pull requests that update Javascript code needs decision Needs a decision
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants