mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
fix: fork configuration now updates 14 files, logoGallery uses relative URLs and Search result highlighting and scroll-to-match
This commit is contained in:
@@ -68,7 +68,7 @@ Open `fork-config.json` and update the values:
|
||||
npm run configure
|
||||
```
|
||||
|
||||
The script reads your JSON file and updates all 11 configuration files automatically. You should see output like:
|
||||
The script reads your JSON file and updates all 14 configuration files automatically. You should see output like:
|
||||
|
||||
```
|
||||
Fork Configuration Script
|
||||
@@ -77,14 +77,16 @@ Reading config from fork-config.json...
|
||||
Updating src/config/siteConfig.ts...
|
||||
Updating src/pages/Home.tsx...
|
||||
Updating src/pages/Post.tsx...
|
||||
Updating src/pages/DocsPage.tsx...
|
||||
Updating convex/http.ts...
|
||||
Updating convex/rss.ts...
|
||||
Updating netlify/edge-functions/mcp.ts...
|
||||
Updating scripts/send-newsletter.ts...
|
||||
Updating index.html...
|
||||
Updating public/llms.txt...
|
||||
Updating public/robots.txt...
|
||||
Updating public/openapi.yaml...
|
||||
Updating public/.well-known/ai-plugin.json...
|
||||
Updating default theme in src/config/siteConfig.ts...
|
||||
|
||||
Configuration complete!
|
||||
```
|
||||
@@ -103,17 +105,19 @@ The configuration script updates these files:
|
||||
|
||||
| File | What changes |
|
||||
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `src/config/siteConfig.ts` | Site name, bio, GitHub username, gitHubRepo config, features (logo gallery, GitHub contributions, visitor map, blog page, posts display, homepage, right sidebar, footer, social footer, AI chat, newsletter, contact form, newsletter admin, stats page, MCP server, dashboard, image lightbox) |
|
||||
| `src/config/siteConfig.ts` | Site name, bio, GitHub username, gitHubRepo config, default theme, features (logo gallery, GitHub contributions, visitor map, blog page, posts display, homepage, right sidebar, footer, social footer, AI chat, newsletter, contact form, newsletter admin, stats page, MCP server, dashboard, image lightbox) |
|
||||
| `src/pages/Home.tsx` | Intro paragraph, footer links |
|
||||
| `src/pages/Post.tsx` | SITE_URL, SITE_NAME constants |
|
||||
| `src/pages/DocsPage.tsx` | SITE_URL constant |
|
||||
| `convex/http.ts` | SITE_URL, SITE_NAME constants |
|
||||
| `convex/rss.ts` | SITE_URL, SITE_TITLE, SITE_DESCRIPTION |
|
||||
| `netlify/edge-functions/mcp.ts` | SITE_URL, SITE_NAME, MCP_SERVER_NAME constants |
|
||||
| `scripts/send-newsletter.ts` | Default SITE_URL constant |
|
||||
| `index.html` | Meta tags, JSON-LD, page title |
|
||||
| `public/llms.txt` | Site info, GitHub link |
|
||||
| `public/robots.txt` | Sitemap URL |
|
||||
| `public/openapi.yaml` | Server URL, site name |
|
||||
| `public/openapi.yaml` | Server URL, site name, example URLs |
|
||||
| `public/.well-known/ai-plugin.json` | Plugin metadata |
|
||||
| `src/config/siteConfig.ts` | Default theme (`defaultTheme` field) |
|
||||
|
||||
## Optional settings
|
||||
|
||||
|
||||
@@ -10,7 +10,42 @@ docsSectionOrder: 4
|
||||
---
|
||||
|
||||
All notable changes to this project.
|
||||

|
||||
|
||||
## v2.8.6
|
||||
|
||||
Released January 4, 2026
|
||||
|
||||
**Fork configuration improvements**
|
||||
|
||||
- Fork configuration script now updates 14 files (was 11)
|
||||
- Added `src/pages/DocsPage.tsx` (SITE_URL constant)
|
||||
- Added `netlify/edge-functions/mcp.ts` (SITE_URL, SITE_NAME, MCP_SERVER_NAME)
|
||||
- Added `scripts/send-newsletter.ts` (default SITE_URL)
|
||||
- Improved `public/openapi.yaml` handling for all example URLs
|
||||
- Logo gallery hrefs now use relative URLs instead of hardcoded markdown.fast URLs
|
||||
- Updated `fork-config.json.example` with missing options (statsPage, mcpServer, imageLightbox)
|
||||
|
||||
Updated files: `scripts/configure-fork.ts`, `src/config/siteConfig.ts`, `FORK_CONFIG.md`, `content/blog/fork-configuration-guide.md`, `fork-config.json.example`
|
||||
|
||||
## v2.8.5
|
||||
|
||||
Released January 3, 2026
|
||||
|
||||
**Search result highlighting and scroll-to-match**
|
||||
|
||||
- Clicking a search result now navigates to the exact match location (not just the nearest heading)
|
||||
- All matching text is highlighted with theme-appropriate colors
|
||||
- Highlights pulse on arrival, then fade to subtle background after 4 seconds
|
||||
- Press Escape to clear highlights
|
||||
- Works across all four themes (dark, light, tan, cloud)
|
||||
|
||||
**Technical details:**
|
||||
|
||||
- New `useSearchHighlighting.ts` hook with polling mechanism to wait for content load
|
||||
- Search query passed via `?q=` URL parameter instead of hash anchor
|
||||
- Theme-specific highlight colors matching existing design system
|
||||
|
||||
Updated files: `src/hooks/useSearchHighlighting.ts` (new), `src/components/SearchModal.tsx`, `src/components/BlogPost.tsx`, `src/pages/Post.tsx`, `src/styles/global.css`
|
||||
|
||||
## v2.8.4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user