OpenKnowForge Quick Start
Local Development
Start API
bash
python -m uvicorn api.main:app --reloadLocal Preview
bash
npm run docs:devOpen:
http://127.0.0.1:5173/en/notes/http://127.0.0.1:5173/en/notes/explorer
GitHub Pages Deployment
1) Enable GitHub Pages
In your repo, open Settings -> Pages.
- Under Build and deployment, set Source to
GitHub Actions.
2) Trigger deployment
Every commit pushed to main will trigger the Pages deployment workflow automatically.
FAQ
Failed to load search index. Create notes via POST /note first.
This means the frontend cannot fetch search-index.json.
- Make sure at least one note has been created via
POST /note. - Confirm
docs/public/search-index.jsonexists. - Use
npm run docs:devfor preview; do not open the page viafile://.
GitHub Pages style is broken or static assets return 404
- Verify
Settings -> Pages -> Sourceis set toGitHub Actions. - Check the latest Pages deployment workflow status.
- Wait 1-3 minutes and hard refresh to avoid stale cache.
What should I change after forking
- Required: set
Settings -> Pages -> SourcetoGitHub Actions. - Required: push commits to
mainto trigger deployment. - Optional: set
VITEPRESS_GITHUB_REPOto your own repo (for exampleyour-name/your-repo).