Skip to content

docs: add OSA knowledge sync documentation - #2

Merged
neuromechanist merged 3 commits into
mainfrom
docs/osa-knowledge-sync
Jan 15, 2026
Merged

neuromechanist merged 3 commits into
mainfrom
docs/osa-knowledge-sync

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Jan 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Add documentation for OSA's knowledge sync feature (Phase 5).

Knowledge Sync Documentation

  • New page: docs/osa/knowledge-sync.md covering:
    • CLI commands (osa sync init/github/papers/all/status/search)
    • Automated sync in Docker (cron schedules)
    • Environment variables and API keys
    • Database locations and troubleshooting

Status Page (Closes #3)

  • New page: docs/osa/status.md with live API fetch:
    • GitHub sync status with health indicators
    • Papers sync status from all sources
    • Scheduler information and next run times
    • Auto-refresh functionality

Other Updates

  • Updated docs/osa/cli-reference.md: Added osa sync command section
  • Updated mkdocs.yml: Added Knowledge Sync and Status pages to navigation

Related

- Add knowledge-sync.md with CLI commands, Docker config, API keys
- Update cli-reference.md with sync commands and env variables
- Update mkdocs.yml navigation to include Knowledge Sync page

Related to: OpenScience-Collective/osa#26
- Add status.md with JavaScript to fetch from OSA /sync/status API
- Display GitHub and papers sync status with health indicators
- Show scheduler information and next run times
- Add to navigation in mkdocs.yml

Closes #3
- Add escapeHtml() function to sanitize all API response data
- Add null safety with optional chaining and defaults
- Improve error handling with CORS-specific hints
- Add API URL override via query param for local testing
- Remove broken link to API reference, document endpoint inline
@neuromechanist
neuromechanist merged commit 9e2f01c into main Jan 15, 2026
@neuromechanist
neuromechanist deleted the docs/osa-knowledge-sync branch January 15, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OSA sync status page to website

1 participant