Skip to content

KrishnaswamyLab/krishnaswamy-lab-site

Repository files navigation

Krishnaswamy Lab Website

The Krishnaswamy Lab website is built primarily with Svelte, DaisyUI, SvelteKit, Tailwindcss, and Typescript. Data is managed via static YAML files.

Contributing

Are you a lab member trying to update information on the website? Then this is the section for you!

The majority of the site's content is stored as independent YAML files under the directory src/yaml/<data-type>/<record>.yml, where data-type is one of:

  • affiliations: Smita Krishnaswamy's affiliations listed on the home page.
  • courses: Selected courses that Smita Krishnaswamy teaches listsed under https://www.krishnaswamylab.org/teaching.
  • members: Information about members under https://www.krishnaswamylab.org/members.
  • projects: Information about projects listed under https://www.krishnaswamylab.org/projects.
  • research_categories: The types of research the Krishnaswamy Lab does listed on the home page.
  • selected_publications: Selected publications for Smita Krishnaswamy https://www.krishnaswamylab.org/publications.
  • workshops/year: Information about the workshops lead by Smita Krishnaswamy listed on https://www.krishnaswamylab.org/workshops.

and <record> is just the filename and represents a single element of the data-type. What is important is the content of the file not the name! Having a descriptive name makes it easier for humans to find and update.

So what should you put in a record? Well that is dependant on its type. The entire site is written with TypeScript and so each data-type has a class and a collection of properties that are expected listed below (or see src/lib/types.ts).

NOTE: the presence of a ? means that the property is optional!

Types

Types are defined here

Affiliations

Property Type Description
title string name of affiliation
href string link to affiliation website
about string description of affiliation
quote? quote quote from the affiliation

Quote

Property Type Description
text string text of quote
attribute string who said the quote

Courses

Property Type Description
about string about the course
listings string[] yale course codes
professors string[] who teaches the course
title string name of course

Members

Property Type Description
member MemberName name of member
title? string title of member, e.g. PhD
about? string about blurb for member
cv? string link to CV
image? string link to member image, should be /static/member/<img-name>
website? string link to website
isAlum? boolean true if member is an alumni
name_str? string how to display name on website

MemberName

Property Type Description
first string first name of member
middle? string middle name or initial of member
preferred? string preferred first name of member
last string last name of member

Projects

Note that:

For projects to show up as a link it needs a publication title! e.g. project.publication.title

Property Type Description
href string relative url to project specific page /project/<href>
title string name of project
abbreviation? string abbreviation if it is a method
description? string description to use in list at top of /projects page
hero ImageHero project hero image info
publication Publication related publication

ImageHero

Property Type Description
title string hero title
blurb? string tagline for blurb
image string link to image

Research Categories

Property Type Description
title string name of research category
about string description of category
image string image to use with category
examples? ResearchExamples list of examples to display

ResearchExample

Property Type Description
text string name of example
href string link to example

Selected Publications

Publication

Property Type Description
type string type of publication
href string link to publication
year number year of publication
title string title of publication
authors string[] list of authors
abstract string abstract of publication
periodical string name of journal
publisher? string publishing group of periodical
periodicalImage? string image to use for periodical link
github? string link to github repo
poster? string link to poster
slides? string link to slides
youtube? string ID of youtube video
keyImage? string link to key image of publication to highlight
keywords? string[] keywords of publication
selected? boolean whether or not a selected publication
month? number month when published
pages? string pages of publication
issues? number issue of publication
volume? number volume of publication

Workshops

SyllabusDay

Property Type Description
day string day of event
items SyllabusDayItems list of topics covered

SyllabusDayItem

Property Type Description
col1? string type of content
href string link to content
col2 string name of Svelte component to use, one of Colab, Forms, GitHub.
col3 string name of content

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published