moex-vibe/docs/superpowers/specs/2026-06-13-docusaurus-docs-design.md
Sergey Krylov aac5b2f873
All checks were successful
CI / lint (pull_request) Successful in 1m32s
CI / test (pull_request) Successful in 1m23s
CI / build (pull_request) Successful in 1m27s
CI / lint (push) Successful in 1m16s
CI / test (push) Successful in 1m23s
CI / build (push) Successful in 1m32s
docs: add Docusaurus documentation site as npm workspace
- Create apps/docs/ with Docusaurus 3.7.0
- Add documentation: architecture, backend, frontend, infrastructure, development, ADR
- Include 5 Mermaid diagrams (system architecture, request flow, modules, caching, deployment)
- Configure as npm workspace with dev:docs/build:docs scripts
- Copy existing ADR documents from docs/architecture/adr/
2026-06-13 21:37:10 +03:00

48 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Docusaurus Documentation — Design Spec
**Date:** 2026-06-13
## Purpose
Создать Docusaurus-сайт для onboard'инга новых разработчиков за 15 минут и документирования архитектуры MoexVibe.
## Location
`apps/docs/` — npm workspace в монорепозитории (по аналогии с `apps/backend`, `apps/frontend`).
## Content Sources (только из кода, без вымысла)
- `package.json` корневой + воркспейсов → scripts, deps
- `AGENTS.md` → env vars, architecture description, commands table
- `apps/backend/src/**` → модули, контроллеры, сервисы, DTO, конфиг
- `apps/frontend/src/**` → компоненты, хуки, клиент, типы
- `docker/Dockerfile.*`, `docker/nginx.conf` → инфраструктура
- `docker-compose.yml` → сервисы, порты
- `.gitea/workflows/ci.yml` → CI pipeline
- `docs/architecture/adr/*` → копия существующих ADR
- `.prettierrc`, `tsconfig.base.json` → конфиги
## Pages
| Раздел | Страницы |
|---|---|
| Overview | intro, getting-started, architecture |
| Backend | overview, modules, api, configuration, caching, moex-client |
| Frontend | overview, routes, components, hooks, api-client, styling |
| Infrastructure | docker, ci |
| Development | commands, testing, codegen, conventions |
| ADR | index + 7 ADR-документов (копия) |
## Mermaid Diagrams
1. **architecture**`graph TD` (Browser → SPA → Backend → Cache → MOEX)
2. **architecture**`sequenceDiagram` (cache hit/miss flow)
3. **backend/modules**`graph TD` (module dependency graph)
4. **backend/caching**`flowchart LR` (getOrFetch lifecycle)
5. **infrastructure/docker**`graph TD` (deployment)
## Root Changes
- Добавить `apps/docs` в `workspaces[]` корневого `package.json`
- Добавить скрипты `dev:docs` и `build:docs`