mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
feat: add CopyPageDropdown to static pages for LLM sharing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user