mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
feat: Make semantic search optional and disabled by default
- Add SemanticSearchConfig interface with enabled toggle to siteConfig.ts - Default semantic search to disabled (enabled: false) to avoid blocking forks without OPENAI_API_KEY - Update SearchModal.tsx to conditionally show mode toggle based on config - Update sync-posts.ts to skip embedding generation when disabled - Add semantic search toggle to Dashboard config generator - Update FORK_CONFIG.md with Semantic Search Configuration section - Update fork-config.json.example with semanticSearch option - Update docs-semantic-search.md with enable/disable instructions - Update changelog and documentation When disabled (default): - Search modal shows only keyword search (no mode toggle) - Embedding generation skipped during sync - No OpenAI API key required 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
22
changelog.md
22
changelog.md
@@ -4,6 +4,28 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## [2.10.1] - 2026-01-05
|
||||
|
||||
### Added
|
||||
|
||||
- Optional semantic search configuration via `siteConfig.semanticSearch`
|
||||
- New `enabled` toggle (default: `false` to avoid blocking forks without API key)
|
||||
- When disabled, search modal shows only keyword search (no mode toggle)
|
||||
- Embedding generation skipped during sync when disabled (saves API costs)
|
||||
- Existing embeddings preserved in database when disabled (no data loss)
|
||||
- Tab key shortcut hints hidden when semantic search is disabled
|
||||
- Dashboard config generator includes semantic search toggle
|
||||
|
||||
### Technical
|
||||
|
||||
- New `SemanticSearchConfig` interface in `src/config/siteConfig.ts`
|
||||
- Updated `src/components/SearchModal.tsx` to conditionally render mode toggle
|
||||
- Updated `scripts/sync-posts.ts` to check config before embedding generation
|
||||
- Updated `src/pages/Dashboard.tsx` with semantic search config option
|
||||
- Updated `FORK_CONFIG.md` with semantic search configuration section
|
||||
- Updated `fork-config.json.example` with semanticSearch option
|
||||
- Updated documentation: `docs-semantic-search.md`, `docs.md`
|
||||
|
||||
## [2.10.0] - 2026-01-05
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user