ss47816.github.io
Static academic website for Shuo Sun, with shared repo-managed content for:
- home page
- projects archive
- publications archive
- CV page
- downloadable CV PDF
The site is intentionally build-light for GitHub Pages. Most content changes happen in JSON or BibTeX files, then flow into the rendered pages through small Node scripts.
Quick Start
Install dependencies:
Preview locally:
Then open http://localhost:8080.
Content Model
There are four main editable content sources:
assets/data/site-data.json
- shared profile text
- hero/about copy
- current affiliations with logos
- projects
- dedicated-page intro copy
data/publications-source.bib
- canonical publication source
- intended to come from Google Scholar BibTeX export
data/publication-overrides.json
- manual enrichment for publications
- summaries, tags, links, featured flags, thumbnails, hiding
data/cv-data.json
- CV-only sections that are not already represented elsewhere
- appointments, education, awards, service, teaching, mentoring
Generated outputs:
assets/data/publication-archive.json
- generated publication archive consumed by both the home page and
publications.html
- do not edit this file by hand
files/Shuo_SUN_CV.pdf
- downloadable PDF generated from the same shared data used by the site
File Map
index.html
projects.html
- dedicated projects archive shell
publications.html
- dedicated publications archive shell
cv.html
assets/js/site.js
- client-side page rendering
assets/css/site.css
scripts/sync-publications.mjs
- BibTeX ingestion, normalization, dedupe, merge, archive generation
scripts/build-cv.mjs
- CV PDF generation via headless Chrome print-to-PDF
Daily Workflows
Refresh everything
Use this after publication, project, CV, or profile updates:
This runs:
npm run sync:publications
npm run build:cv
Refresh publications only
npm run sync:publications
Rebuild the CV PDF only
Publication Workflow
Which publication file should I edit?
Use this rule:
- edit
data/publications-source.bib when the paper list itself changes
- edit
data/publication-overrides.json when the way a paper is presented changes
- do not edit
assets/data/publication-archive.json directly
Quick mental model:
publications-source.bib = raw source of truth for publication entries
publication-overrides.json = manual curation layer
publication-archive.json = generated final output for the website
If you want to add a paper and also give it a summary, tags, a thumbnail, or featured status, you will usually update the first two files, then regenerate the third.
Canonical source
Publications are sourced from:
- local
data/publications-source.bib
- optional remote
PUBLICATIONS_SOURCE_URL
The intended editorial workflow is:
- Export BibTeX from Google Scholar.
- Replace or update
data/publications-source.bib.
- Add manual enrichment in
data/publication-overrides.json.
- Run
npm run sync:publications.
If PUBLICATIONS_SOURCE_URL is set, the sync script can also fetch a public BibTeX file before generating the archive.
Expected sync behavior
The publication sync script:
- parses all BibTeX entries
- normalizes title, DOI, author list, venue, year, and type
- dedupes by DOI when available
- otherwise dedupes by normalized title plus year
- merges manual overrides
- excludes only entries with
hidden: true
- sorts by year descending, then title ascending
- writes a single shared archive JSON
What each publication file is for
data/publications-source.bib
Use this file for raw publication metadata:
- title
- author list
- year
- venue / journal / booktitle
- DOI
- URLs already present in the BibTeX export
Typical use:
- new paper added
- author order corrected
- venue/year fixed
- Scholar export refreshed
data/publication-overrides.json
Use this file for website-specific presentation and curation:
featured
hidden
summary
tags
venueShort
thumbnail
thumbnailAlt
links
equalContribution
Typical use:
- add a visitor-facing summary
- choose whether the paper appears on the home page
- shorten a venue name
- highlight equal-contribution authors
- attach a graphical abstract thumbnail
- add project/code/video links not present in the BibTeX
assets/data/publication-archive.json
This is a generated file.
It exists so the static site can load one ready-to-render JSON file in the browser without parsing BibTeX client-side.
Use it only to:
- inspect the final merged result
- confirm generated IDs
- verify that sync worked
Do not manually maintain content here, because the next sync will overwrite it.
Publication override fields
Each publication entry in data/publication-overrides.json can include:
hidden: boolean
featured: boolean
summary: string
tags: string[]
venueShort: string
thumbnail: string
thumbnailAlt: string
equalContribution: string[]
links: { paper?, pdf?, arxiv?, code?, project?, video? }
Example:
{
"drivescenegen-2024": {
"featured": true,
"hidden": false,
"summary": "A generative simulation paper for producing diverse driving scenarios from scratch.",
"tags": ["generative simulation", "scenario generation", "autonomous systems"],
"venueShort": "IEEE RA-L",
"thumbnail": "assets/images/publications/drivescenegen-2024.png",
"thumbnailAlt": "Graphical abstract for DriveSceneGen",
"equalContribution": ["Shuo Sun", "Coauthor Name"],
"links": {
"paper": "https://doi.org/10.1109/LRA.2024.3416792",
"arxiv": "https://arxiv.org/abs/2309.14685",
"code": "https://github.com/SS47816/DriveSceneGen"
}
}
}
How to add a new publication
- Add the entry to
data/publications-source.bib.
- Run
npm run sync:publications once so you can see the generated ID.
- Add a matching entry in
data/publication-overrides.json if you want:
- featured status
- visitor-facing summary
- theme tags
- buttons/links
- thumbnail
- hidden flag
- Run
npm run sync:publications again.
- Reload the site.
How to edit an existing publication
If the paper itself is wrong:
- edit
data/publications-source.bib
If the website presentation is wrong:
- edit
data/publication-overrides.json
Examples:
- wrong author order:
data/publications-source.bib
- want a shorter venue label:
data/publication-overrides.json
- want to add
featured: true: data/publication-overrides.json
- want to add a code link:
data/publication-overrides.json
- want to add a missing paper entirely:
data/publications-source.bib
How featured publications work
Home page Section 02 shows featured publications only:
- featured items come from
site-data.json home.featuredPublicationIds when present
- otherwise the renderer falls back to
featured: true
- home page is capped at 6 entries
The dedicated publications page always shows the full generated archive.
How to hide a publication
Set:
{
"some-paper-id": {
"hidden": true
}
}
Then run:
npm run sync:publications
How to add a thumbnail / graphical abstract
Put the file in:
assets/images/publications/<publication-id>.png
or:
assets/images/publications/<publication-id>.jpg
Then reference it in the override:
{
"some-paper-id": {
"thumbnail": "assets/images/publications/some-paper-id.png",
"thumbnailAlt": "Graphical abstract for Some Paper"
}
}
If thumbnail is omitted, the site renders a styled placeholder automatically.
How to auto-fetch available thumbnails
For papers with stable open/public figure pages, you can try:
This script:
- looks for a stable public figure source from existing paper links
- saves local images into
assets/images/publications/
- writes the matching
thumbnail fields into data/publication-overrides.json
It is intentionally conservative. If a paper does not have a stable open figure source, nothing breaks; the placeholder remains until you add a thumbnail manually.
Projects Workflow
Projects now live in data/projects.json.
This file is the single source of truth for:
- project metadata
- image paths and alt text
- which projects appear on
projects.html
- which projects appear in the CV outputs
Each project object can include:
id
title
org
period
status
summary
contributions: string[]
tags: string[]
featured: boolean
image: { src, alt }
projectUrl
paperUrl
codeUrl
Example:
{
"id": "example-project",
"title": "Example Project",
"org": "SMART M3S",
"period": "2026 - Present",
"status": "Current Research Direction",
"summary": "One-sentence public-facing summary.",
"contributions": [
"Contribution one.",
"Contribution two."
],
"tags": ["robotics", "human-AI"],
"featured": true,
"projectUrl": "https://example.com/project",
"paperUrl": "https://example.com/paper"
}
Project collections
data/projects.json also includes curated collections so ordering and inclusion stay out of the code:
collections.projectsPage
collections.cv
collections.academicCv
The home page is the one exception: it renders projects where featured: true, in file order.
Editing Text Across the Site
Most visitor-facing text can be changed in assets/data/site-data.json.
Profile and contact
Edit profile to update:
- name
- role
- affiliation
- bios
- research areas
- email
- LinkedIn
- GitHub
- Scholar
- ORCID
- CV download path
Home page messaging
Edit these keys in site-data.json:
hero.bridgeStatement
home.researchSummary
home.missionTitle
home.contactPrompt
home.currentLensTitle
home.currentLensBody
Dedicated page intros
Edit:
projectsPage.pageTitle
projectsPage.pageLead
publications.pageTitle
publications.pageLead
publications.pageCalloutTitle
publications.pageCalloutBody
cv.pageTitle
cv.pageLead
cv.contactNote
Current Affiliations and Logos
The “Currently” strip is sourced from site-data.json affiliationsCurrent.
Each affiliation item uses:
id
name
subtitle
logo
logoAlt