Files
cma-management/backend/app/api
Hermes CI Fix ede0524c22
ci/woodpecker/push/main Pipeline failed
feat(docs-center): CMAKnowledge reads md single source via new /api/cma/docs
New router app/api/doc_center.py: GET /api/cma/docs (list, ?with_content) and GET /api/cma/docs/{slug}; runtime disk read, role-gated (ceo/finance/business/it), no existing API semantics changed.

Content dir /srv/hermes/shared/cma-content (docs/*.md + categories.json). Placed outside the repo on purpose: the deploy tree equals the committed tree (deploy.sh checkout -f + clean -fdx), so in-repo content would be reset on every deploy and content edits would fail the deploy-tree dirty check.

CMAKnowledge.vue: 20 hardcoded items migrated to md, page now fetches at runtime and renders md with the existing marked dep (no new deps); table borders restored via :deep() since scoped styles never reach v-html content.

Tests: backend/tests/test_doc_center_20260924.py (20 cases). Full suite 1448 passed (baseline 1428 + 20).
2026-09-24 01:07:29 +08:00
..
2026-05-28 17:32:22 +08:00
2026-07-22 18:22:48 +08:00
2026-05-28 17:32:22 +08:00
2026-05-28 17:32:22 +08:00