neuropoly / neuro.polymtl.ca

NeuroPoly's Website
https://neuro.polymtl.ca
3 stars 5 forks source link

Sync with Github profiles #25

Open kousu opened 2 years ago

kousu commented 2 years ago

re: pictures of lab members: how about fetching (if it exists) the picture from github? that would ensure most pictures are up there (without "pushing" lab members) and make it automated (for new members)

Originally posted by @jcohenadad in https://github.com/neuropoly/neuropoly-docs/issues/21#issuecomment-959192573

Given that we have our org-chart recorded on https://github.com/orgs/neuropoly/teams

Screenshot 2021-11-03 at 12-19-33 Build software better, together

it should be possible to generate most of /team. To make it easier to manage, we can use include, e.g.:

## Faculty

```{include} _faculty.md
```

## PhD Students

```{include} _phd-students.md
```

...

where the script is responsible for generating team/_*.md.

It's really easy to make this go one-way. Where this gets tricky is with preserving people's custom profile links, alternate social media, email addresses, deciding between a local embedded profile or using a link to an external page. Not impossible, but it means actually parsing the pre-existing markdown and that's likely to be buggy.

We could tell people that everything will be pulled from github, so e.g. if they want an email address listed they need to also make it public on github, and if they want to use a personal site they need to list it publically on github.

jcohenadad commented 2 years ago

We could tell people that everything will be pulled from github, so e.g. if they want an email address listed they need to also make it public on github, and if they want to use a personal site they need to list it publically on github.

yes, as i was reading your post, i though exactly about that option. That would be neat!