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

Add data to data files #2

Closed
SaraSoueidan opened this issue Nov 18, 2021 · 8 comments
Closed

Add data to data files #2

SaraSoueidan opened this issue Nov 18, 2021 · 8 comments
Assignees
Labels

Comments

@SaraSoueidan
Copy link

Data files

The src/_data/ directory contains a few json files. These files contain data globally available to the site, used to pull in and display that data in the templates and pages.

@nzakas Could you kindly start adding data to the following files when you're able to?

  • sponsors.json — the list of sponsors. Every sponsor has an image which you should place in the assets/images/sponsors directory, a name, and a URL to the sponsor's Web site (or other link). The list of backers has their images placed in the sponsors/backers directory, but we can move them into the /sponsors/ directory if you prefer.
  • authors.json — the list of people who have contributed articles to the site.
  • team.json — the ESLint team, categorized into the four main categories as represented on the Team page (technical steering committee, reviewers, committers, and alumni)
  • donations.json — donations information: who donated, how much they donated, when they donated, and their name, logo, and a link (if there is one, I'm not sure if the images in the donations list are clickable or not).

Let me know if you have any questions. ^_^

@nzakas
Copy link
Member

nzakas commented Nov 18, 2021

Sounds good. I'll add these in once we get your pull request merged.

As a note: in most cases, the images are not going to live locally in the website, but rather, will be pulled from another source. Here are the existing data files we are using:

  1. Sponsors - pulled from Open Collective and GitHub Sponsors
  2. Team - pulled from GitHub
  3. Authors - this was manually created but will eventually be pulled from GitHub

We don't currently have donation data, but I'll work on pulling that.

@SaraSoueidan
Copy link
Author

SaraSoueidan commented Nov 19, 2021

That makes things simpler then. I'll make sure I update the code to reflect that. 👍🏻

Dumb question: is there a JS script associated with these files that updates them or something like that? or should I just copy-paste the content and use it as is?

@nzakas
Copy link
Member

nzakas commented Nov 19, 2021

There is a script that auto-updates the data. You can just use static data for now and I’ll update the repo to dynamically pull in the data.

@SaraSoueidan
Copy link
Author

Thanks Nicholas!

@nzakas
Copy link
Member

nzakas commented Nov 22, 2021

Reopening because I haven't updated the donations or authors data yet.

@SaraSoueidan
Copy link
Author

I was just going to open another issue and request adding:

  • FAQs in the faqs.json file, and
  • Testimonias in the testimonials.json file, please. 🤗

nzakas added a commit that referenced this issue Nov 24, 2021
@nzakas
Copy link
Member

nzakas commented Nov 24, 2021

I'll add those to my list!

nzakas added a commit that referenced this issue Nov 24, 2021
SaraSoueidan pushed a commit that referenced this issue Nov 24, 2021
SaraSoueidan pushed a commit that referenced this issue Nov 24, 2021
@nzakas
Copy link
Member

nzakas commented Dec 1, 2021

I believe I've addressed everything in this issue now.

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

No branches or pull requests

2 participants