This document explains how the publications list is displayed and how to add new publications to the codebase.
The publications list is displayed using the Publications component located in Publications.tsx. This component creates a list layout to showcase the publications.
Stack and Typography components.
– Publication Cards: Each publication is displayed as a card with a title, authors, metadata, and an abstract. Data is imported from src/data/publications.ts and the component logs user interactions via logAnalyticsEvent.flowchart LR
A[Publications Component] -->|Fetches| B[Publications Data]
B --> C[Maps Publications to List Items]
C --> D[Displays Publication Cards]
D --> E[Publication Title]
D --> F[Publication Authors]
D --> G[Publication Metadata]
D --> H[Publication Abstract]
To add new publications, update the publications array in src/data/publications.ts.
Add a new object to the publications array with the following structure:
{
"title": "Publication Title",
"authors": [
"Author 1",
"Author 2"
// more authors
],
"abstract": "Abstract of the publication.",
"doi": "10.1234/doi",
"journal": "Journal Name",
"date": "YYYY-MM-DD",
"related-project": "project-id" // optional
}
By following these steps, you can successfully add new publications to the publications list.