feat: add CopyPageDropdown to static pages for LLM sharing

This commit is contained in:
Wayne Sutton
2025-12-14 12:57:08 -08:00
parent 9fa49cffbb
commit 128763387b
3 changed files with 8 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ readTime: "4 min read"
# About This Markdown Site
This is an open source markdown site built with React, TypeScript, and Convex. Write posts and pages in markdown, sync them to a real-time database, and deploy on Netlify.
This is an open-source markdown site built with React, TypeScript, and Convex. Write posts and pages in markdown, sync them to a real-time database, and deploy on Netlify.
## How It Works

View File

@@ -238,6 +238,7 @@ The `netlify.toml` file includes the correct build settings:
```
Key points:
- `npm ci --include=dev` forces devDependencies to install even when `NODE_ENV=production`
- The build script uses `npx vite build` to resolve vite from node_modules
- `@types/node` is required for TypeScript to recognize `process.env`

View File

@@ -132,6 +132,12 @@ export default function Post() {
<ArrowLeft size={16} />
<span>Back</span>
</button>
{/* Copy page dropdown for static pages */}
<CopyPageDropdown
title={page.title}
content={page.content}
url={window.location.href}
/>
</nav>
<article className="post-article">