How surajmgr/nexus works
1. Repository purpose
- This is a Docusaurus-based documentation website, not an application backend.
- The site’s architecture is centered on static content + React-based site customization + GitHub Actions deployment.
2. Primary runtime boundary
- At build time, Docusaurus compiles Markdown/MDX, React pages, and static assets into a static site.
- At runtime, the result is just a hosted static website; there is no visible server-side application layer in the repo.
3. Content subsystem
- Most of the repository is documentation content under:
- docs/ for top-level site docs,
- blog/ for blog posts,
- projects/ for product/project-specific doc sites.
- The projects/ folder is a major organizational boundary: it contains separate documentation spaces for cryt, fortihub, sparqchat, and vocus.
4. Multi-project documentation model
- Each project under projects/* has its own docs/, intro.md, and sidebars.ts.
- This implies the site is structured as a multi-tenant documentation portal, where each product area has its own navigation and content hierarchy.
- projects/vocus is the most fully developed area, with internal docs for architecture, API reference, advanced topics, widgets, and developer guides.
5. Site shell and navigation
- Root-level Docusaurus configuration files (docusaurus.config.ts, sidebars.ts) define the shared site frame, navigation, and global documentation behavior.
- The global docs under docs/ and the project-specific sidebars together form the primary information architecture.
6. Custom React UI layer
- The src/components/ directory contains the main customization layer:
- InteractiveGuide
- reusable UI utilities like Collapsible
- Canny-related feedback components
- These components sit on top of Docusaurus and are used to enrich the static docs with interactive UI where needed.
7. Feedback subsystem
- src/pages/feedback/ and src/components/canny/ indicate a dedicated feedback experience, likely integrating with an external feedback service.
- src/plugins/feedback-route-plugin/ suggests a custom Docusaurus plugin used to add or shape routing for that feedback flow.
- Architecturally, this is the main non-docs functional feature in the site.
8. Page-level routing
- src/pages/ contains custom site pages such as:
- home page,
- privacy,
- terms,
- markdown-based content pages,
- feedback page.
- These pages form the “application-like” parts of the site, separate from the doc system.
9. Static asset boundary
- static/ holds files served directly without processing, including:
- .well-known assets,
- web manifest files,
- author assets,
- other site resources.
- This is the static delivery layer for browser-visible assets.
10. Documentation structure inside Vocus
- The projects/vocus/docs/internal/ tree shows the clearest internal architecture of the product documentation:
- architecture: layers, data model, auth modes, security
- api-reference: comments, threads, votes, projects, errors
- advanced: moderation, notifications, search, rate limiting, observability
- widgets: embed setup, customization, SDK, SSO integration
- developers: setup, deployment, testing, service/repository patterns
- This strongly suggests the site documents a product with both a core API and embeddable widget surface.
11. Build and deployment pipeline
- The repository uses pnpm/yarn-style Node tooling and GitHub Actions workflows under .github/workflows/.
- deploy.yml and test-deploy.yml imply CI/CD validation plus a deployment job that publishes the built static site, likely to GitHub Pages or another static host.
- The README confirms the build artifact is the build/ directory produced by Docusaurus.
12. Practical architecture summary
- Think of the repo as three layers:
- Content layer: Markdown/MDX docs, blogs, project docs
- Presentation layer: Docusaurus pages, React components, plugins, sidebars
- Delivery layer: static build output plus GitHub Actions deployment
- The key “data flow” is: authored content and UI code → Docusaurus build → static site deployment.
13. What matters most for a diagram
- The important boundaries are between:
- global site vs per-project docs,
- standard docs vs custom pages/components,
- build-time content generation vs deployed static hosting,
- core documentation experience vs feedback integration.
Main entry points: projects Projects · cryt Cryt · fortihub Fortihub · sparqchat Sparqchat
Components 18
Content
Authored documentation and blog content.
Presentation
Docusaurus site shell, React customization, and plugins.
- Docusaurus config · Global Docusaurus site behavior and navigation.
docusaurus.config.ts - Site sidebars · Top-level documentation navigation structure.
sidebars.ts - Pages · Custom site pages such as home, privacy, terms, and feedback.
src/pages - Components · Reusable React components for guides, UI utilities, and Canny integration.
src/components - Feedback plugin · Custom route plugin for the feedback flow.
src/plugins/feedback-route-plugin - Static assets · Files served directly without Docusaurus processing.
static
Project Docs
Per-project documentation spaces and their navigation.
- Projects · Multi-project documentation boundary.
projects - Cryt · Documentation space for Cryt.
projects/cryt - Fortihub · Documentation space for Fortihub.
projects/fortihub - Sparqchat · Documentation space for Sparqchat.
projects/sparqchat - Vocus · Most developed project documentation space.
projects/vocus - Vocus internals · Architecture, API, advanced topics, widgets, and developer guides.
projects/vocus/docs/internal
Delivery
Build and deployment pipeline for the static site.
- Build · Docusaurus compilation from content and UI code into a static site.
- Static site · Generated site output ready for hosting.
- Deploy workflow · GitHub Actions deployment job.
.github/workflows/deploy.yml - Test deploy · GitHub Actions validation workflow for deployment readiness.
.github/workflows/test-deploy.yml
Connections 20
- Docs → Build: content · Docs are compiled into the site build.
- Blog → Build: content · Blog content is included in the build.
- Projects → Cryt: contains · Projects portal branches into Cryt docs.
- Projects → Fortihub: contains · Projects portal branches into Fortihub docs.
- Projects → Sparqchat: contains · Projects portal branches into Sparqchat docs.
- Projects → Vocus: contains · Projects portal branches into Vocus docs.
- Vocus → Vocus internals: organizes · Vocus contains the richest internal documentation hierarchy.
- Cryt → Build: content · Project docs feed the site build.
- Fortihub → Build: content · Project docs feed the site build.
- Sparqchat → Build: content · Project docs feed the site build.
- Vocus internals → Build: content · Deep Vocus docs are compiled into the site build.
- Pages → Build: pages · Custom pages are part of the build.
- Components → Build: ui · React components customize the rendered site.
- Feedback plugin → Build: routing · Custom plugin shapes the feedback experience during build.
- Static assets → Build: assets · Static files are copied into the final site.
- Docusaurus config → Build: config · Global site configuration drives the build.
- Site sidebars → Build: navigation · Top-level navigation is resolved at build time.
- Build → Static site: output · Build produces the deployable static artifact.
- Deploy workflow → Static site: publishes · Deployment workflow publishes the built site.
- Test deploy → Deploy workflow: validates · Test workflow guards deployment readiness.