Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

chore: entirely remove product timeline source files

yoma8686597459eb
diff --git a/apps/site/src/components/ProductTimeline.astro b/apps/site/src/components/ProductTimeline.astro
deleted file mode 100644
index 1dca1e13..00000000
--- a/apps/site/src/components/ProductTimeline.astro
+++ /dev/null
@@ -1,57 +0,0 @@
----
-interface TimelineItem {
- date: string;
- title: string;
- summary: string;
- commits: string[];
- highlights: string[];
-}
-
-interface Props {
- items: TimelineItem[];
-}
-
-const { items } = Astro.props;
----
-
-<ol class="relative border-s border-slate-200">
- {
- items.map((item, index) => (
- <li class:list={["ms-6", index === items.length - 1 ? "mb-0" : "mb-10"]}>
- <span class="absolute -start-3 flex h-6 w-6 items-center justify-center rounded-full border border-brand-border bg-brand-soft ring-8 ring-white">
- <span class="h-2.5 w-2.5 rounded-full bg-brand"></span>
- </span>
- <div class="rounded-lg border border-slate-100 bg-white p-5 shadow-sm transition hover:border-brand-border/50 hover:shadow-md md:p-6">
- <div class="flex flex-col gap-3 md:flex-row md:items-start md:justify-between">
- <div>
- <time class="text-sm font-semibold leading-none text-brand-text" datetime={item.date}>
- {item.date}
- </time>
- <h2 class="mt-2 text-2xl font-bold tracking-tight text-slate-950">{item.title}</h2>
- </div>
- <p class="shrink-0 rounded-full bg-slate-100 px-3 py-1 text-xs font-medium text-slate-500">
- {item.commits.length} 个代表提交
- </p>
- </div>
-
- <p class="mt-4 text-base leading-7 text-slate-600">{item.summary}</p>
-
- <div class="mt-5 flex flex-wrap gap-2">
- {item.highlights.map((highlight) => (
- <span class="rounded-full border border-brand-border/40 bg-brand-soft px-3 py-1 text-xs font-medium text-brand-text">
- {highlight}
- </span>
- ))}
- </div>
-
- <div class="mt-5 flex flex-wrap items-center gap-2 text-xs text-slate-400">
- <span>相关提交</span>
- {item.commits.map((commit) => (
- <code class="rounded bg-slate-100 px-1.5 py-0.5 font-mono text-slate-600">{commit}</code>
- ))}
- </div>
- </div>
- </li>
- ))
- }
-</ol>
diff --git a/apps/site/src/pages/timeline.astro b/apps/site/src/pages/timeline.astro
deleted file mode 100644
index fb1f91fc..00000000
--- a/apps/site/src/pages/timeline.astro
+++ /dev/null
@@ -1,93 +0,0 @@
----
-import { getCollection } from "astro:content";
-import { Picture } from "astro:assets";
-import Layout from "@/layouts/Layout.astro";
-import Container from "@/components/container.astro";
-import Sectionhead from "@/components/sectionhead.astro";
-import ProductTimeline from "@/components/ProductTimeline.astro";
-import { productTimeline } from "@/data/productTimeline";
-
-// Filter blog entries with 'draft: false' & date before current date
-const publishedBlogEntries = await getCollection("blog", ({ data }) => {
- return !data.draft && data.publishDate < new Date();
-});
-
-// Sort content entries by publication date
-publishedBlogEntries.sort(function (a, b) {
- return b.data.publishDate.valueOf() - a.data.publishDate.valueOf();
-});
----
-
-<Layout title="开发日志">
- <Container>
- <Sectionhead>
- <Fragment slot="title">产品演进时间轴</Fragment>
- <Fragment slot="desc">
- 基于同级 `edgeever` 核心仓库的真实 Git 提交历史整理,按日期合并产品能力、部署体验和迁移流程的变化。
- </Fragment>
- </Sectionhead>
-
- <main class="mt-16 mx-auto max-w-5xl">
- <section>
- <ProductTimeline items={productTimeline} />
- </section>
-
- <section class="mt-20">
- <div class="max-w-2xl">
- <p class="text-sm font-semibold text-brand-text">同步文档</p>
- <h2 class="mt-2 text-3xl font-bold tracking-tight text-slate-950">部署、迁移与产品说明</h2>
- <p class="mt-3 leading-7 text-slate-600">
- 这些文章继续保留为可分享的独立页面,内容同样以核心仓库 README 和 docs 为准。
- </p>
- </div>
- </section>
-
- <ul class="mt-10 grid gap-8 md:grid-cols-3">
- {
- publishedBlogEntries.map((blogPostEntry, index) => (
- <li class="rounded-lg border border-slate-100 bg-white shadow-sm transition hover:-translate-y-0.5 hover:shadow-md">
- <a href={`/timeline/${blogPostEntry.slug}`} class="block h-full">
- <div>
- <Picture
- src={blogPostEntry.data.image.src}
- alt={blogPostEntry.data.image.alt}
- sizes="(max-width: 800px) 100vw, 800px"
- width={800}
- height={600}
- loading={index <= 2 ? "eager" : "lazy"}
- decoding={index <= 2 ? "sync" : "async"}
- class="aspect-[4/3] w-full rounded-t-lg object-cover object-center bg-white"
- />
- <div class="p-5">
- <span class="text-xs font-semibold uppercase tracking-wider text-brand-text">
- {blogPostEntry.data.category}
- </span>
-
- <h3 class="mt-2 text-xl font-semibold leading-snug tracking-tight text-slate-950">
- {blogPostEntry.data.title}
- </h3>
- <p class="mt-3 line-clamp-3 text-sm leading-6 text-slate-500">
- {blogPostEntry.data.snippet}
- </p>
-
- <div class="mt-5 flex gap-2 text-sm">
- <span class="text-gray-400">
- {blogPostEntry.data.author}
- </span>
- <span class="text-gray-400">• </span>
- <time
- class="text-gray-400"
- datetime={blogPostEntry.data.publishDate.toISOString()}>
- {blogPostEntry.data.publishDate.toDateString()}
- </time>
- </div>
- </div>
- </div>
- </a>
- </li>
- ))
- }
- </ul>
- </main>
- </Container>
-</Layout>
diff --git a/apps/site/src/pages/timeline/[slug].astro b/apps/site/src/pages/timeline/[slug].astro
deleted file mode 100644
index d84fc662..00000000
--- a/apps/site/src/pages/timeline/[slug].astro
+++ /dev/null
@@ -1,62 +0,0 @@
----
-import { getCollection } from "astro:content";
-import Layout from "@/layouts/Layout.astro";
-import Container from "@/components/container.astro";
-
-// Generate a new path for every collection entry
-export async function getStaticPaths() {
- const blogEntries = await getCollection("blog");
- return blogEntries.map((entry) => ({
- params: { slug: entry.slug },
- props: { entry },
- }));
-}
-
-// Get the entry directly from the prop on render
-const { entry } = Astro.props;
-const { Content } = await entry.render();
----
-
-<Layout title={entry.data.title}>
- <Container>
- <div class="mx-auto max-w-3xl mt-14">
- <span class="text-blue-400 uppercase tracking-wider text-sm font-medium">
- {entry.data.category}
- </span>
- <h1
- class="text-4xl lg:text-5xl font-bold lg:tracking-tight mt-1 lg:leading-tight">
- {entry.data.title}
- </h1>
- <div class="flex gap-2 mt-3 items-center flex-wrap md:flex-nowrap">
- <span class="text-gray-400">
- {entry.data.author}
- </span>
- <span class="text-gray-400">•</span>
- <time
- class="text-gray-400"
- datetime={entry.data.publishDate.toISOString()}>
- {entry.data.publishDate.toDateString()}
- </time>
- <span class="text-gray-400 hidden md:block">•</span>
- <div class="w-full md:w-auto flex flex-wrap gap-3">
- {
- entry.data.tags.map((tag) => (
- <span class="text-sm text-gray-500">#{tag}</span>
- ))
- }
- </div>
- </div>
- </div>
-
- <div class="mx-auto prose prose-lg mt-6 max-w-3xl">
- <Content />
- </div>
- <div class="text-center mt-8">
- <a
- href="/timeline"
- class="bg-gray-100 px-5 py-3 rounded-md hover:bg-gray-200 transition"
- >← 返回开发时间轴</a
- >
- </div>
- </Container>
-</Layout>