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

Replace generate.py with a Next.js-native feature #4

Closed
lucavallin opened this issue Dec 22, 2022 · 1 comment
Closed

Replace generate.py with a Next.js-native feature #4

lucavallin opened this issue Dec 22, 2022 · 1 comment

Comments

@lucavallin
Copy link
Owner

lucavallin commented Dec 22, 2022

Information about repositories is now fetched by the script generate.py. The script retrieves data from the GitHub API and then compiles it in data/generated.json and data/tags.json.

It should be possible to use https://nextjs.org/docs/basic-features/data-fetching/get-static-props to achieve this so that the process is perfectly integrated with Next.js. Also, we'd lose the dependency on Python and we wouldn't need those json files anymore. If this is not possible, it would still be nice to convert the generate.py script to Typescript to have only one language/ecosystem in the project.

When doing this, let's also convert repositories.toml to JSON so it can be handled natively by Typescript.

@lucavallin
Copy link
Owner Author

Done (almost)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant