${safeTitle}
${safeExtension}${safeFileName}
export type PaperPreview = {
title: string;
fileName: string;
extension: string;
href: string;
};
export type DiagramPreview = {
title: string;
fileName: string;
href: string;
caption: string;
};
export type CodeShowcaseItem = {
id: string;
title: string;
summary: string;
language: string;
relativePath: string;
rawHref: string;
snippet: string;
};
const escapeHtml = (value: string): string => {
return value
.replace(/&/g, '&')
.replace(//g, '>')
.replace(/"/g, '"')
.replace(/'/g, ''');
};
const renderPaperCard = (paper: PaperPreview, index: number): string => {
const safeTitle = escapeHtml(paper.title);
const safeFileName = escapeHtml(paper.fileName);
const safeExtension = escapeHtml(paper.extension.toUpperCase());
const safeHref = escapeHtml(paper.href);
const animationDelayMs = 80 * index;
return ` ${safeFileName} ${safeSummary} ${safePath} Add your files to the repository Run the diagram scripts under Add curated code file entries in ${safeTitle}
${safeExtension}
${safeTitle}
Open full file
${safeSnippet}No papers detected yet
projects/ directory to auto-populate this section.No diagrams found
docs/diagrams to generate images for this showcase.No code showcase files mapped
web/src/app.ts to populate this section.
Devansh Patel
This is the journey of one, Devansh Patel through their Master of Business Administration.
${papers.length} document${papers.length === 1 ? '' : 's'} detected
This section highlights the infrastructure diagrams and implementation files behind this portfolio deployment.
${diagrams.length} diagram${diagrams.length === 1 ? '' : 's'} available
${codeShowcase.length} curated file${codeShowcase.length === 1 ? '' : 's'}