dingo
dingo copied to clipboard
A contributors page
Let's build a contributors page which lists our contributors from github.com/dinever/dingo/graphs/contributors as a thank-you and encourage more people to get involved into this.
I'm thinking about writing a script to automatically fetch information from this GitHub API and creates a .go file before each release in the future.
What do you mean "creates a .go file before each release" ?
Hi @TimothyYe,
The original idea is that we create a hard-coded .go file like this each time we create a release:
package Dingo
var contributors = []string{
"dinever",
"nak3",
"samdfonseca",
"bentranter",
"TimothyYe",
"youngsterxyf",
}
However, this idea is a little bit stupid.
We should probably just crawl and cache the contributors from api.github.com/repos/dingoblog/dingo/contributors, and render the content when user visits the contributors page.
Note that the page should be placed in the admin dashboard. Like in /admin/about/.
@dinever , We can use javascript to get JSON data from that API interface and render it to /admin/about instantly once user visit that page.