mirror of
https://github.com/prdlk/website.git
synced 2026-08-02 17:31:41 +00:00
feat(data): add intro heading and summary to llms.txt builders
This commit is contained in:
+9
-7
@@ -3,7 +3,6 @@ import { getCollection } from "astro:content";
|
|||||||
import { getAllExperience } from "@/data/experience";
|
import { getAllExperience } from "@/data/experience";
|
||||||
import { getAllPosts } from "@/data/post";
|
import { getAllPosts } from "@/data/post";
|
||||||
import { getAllSpeaking } from "@/data/speaking";
|
import { getAllSpeaking } from "@/data/speaking";
|
||||||
import { siteConfig } from "@/site.config";
|
|
||||||
|
|
||||||
/** Builders for /llms.txt (index) and /llms-full.txt (full content), per https://llmstxt.org */
|
/** Builders for /llms.txt (index) and /llms-full.txt (full content), per https://llmstxt.org */
|
||||||
|
|
||||||
@@ -11,6 +10,11 @@ const absUrl = (path: string) => new URL(path, import.meta.env.SITE).href;
|
|||||||
|
|
||||||
const isoDate = (date: Date) => date.toISOString().slice(0, 10);
|
const isoDate = (date: Date) => date.toISOString().slice(0, 10);
|
||||||
|
|
||||||
|
const introHeading = "# Prad Nukala";
|
||||||
|
|
||||||
|
const introSummary =
|
||||||
|
"> Engineer & founder. Co-founder/CEO of Sonr ($4.7M raised). Built Layer-1 + full cryptography stack (ZKP/MPC), gasless onboarding, and led high-ownership teams. Optimized for autonomous, high-speed execution.";
|
||||||
|
|
||||||
const yearRange = (start: Date, end?: Date) =>
|
const yearRange = (start: Date, end?: Date) =>
|
||||||
`${start.getFullYear()}–${end ? end.getFullYear() : "Present"}`;
|
`${start.getFullYear()}–${end ? end.getFullYear() : "Present"}`;
|
||||||
|
|
||||||
@@ -38,11 +42,9 @@ export async function buildLlmsIndex(): Promise<string> {
|
|||||||
const { experience, projects, writing, speaking } = await getAllContent();
|
const { experience, projects, writing, speaking } = await getAllContent();
|
||||||
|
|
||||||
const lines: string[] = [
|
const lines: string[] = [
|
||||||
`# ${siteConfig.title}`,
|
introHeading,
|
||||||
"",
|
"",
|
||||||
`> ${siteConfig.description}`,
|
introSummary,
|
||||||
"",
|
|
||||||
`Personal site of ${siteConfig.author} — engineer and founder building decentralized identity infrastructure; co-founder and CEO of Sonr; W3C and DIF working-group member.`,
|
|
||||||
"",
|
"",
|
||||||
"## Experience",
|
"## Experience",
|
||||||
"",
|
"",
|
||||||
@@ -101,9 +103,9 @@ export async function buildLlmsFull(): Promise<string> {
|
|||||||
const { experience, projects, writing, speaking } = await getAllContent();
|
const { experience, projects, writing, speaking } = await getAllContent();
|
||||||
|
|
||||||
const lines: string[] = [
|
const lines: string[] = [
|
||||||
`# ${siteConfig.title} — full content`,
|
`${introHeading} — full content`,
|
||||||
"",
|
"",
|
||||||
`> ${siteConfig.description}`,
|
introSummary,
|
||||||
"",
|
"",
|
||||||
...section(
|
...section(
|
||||||
"Experience",
|
"Experience",
|
||||||
|
|||||||
Reference in New Issue
Block a user