| Markdown is the canonical page body. | Every Wiki page. The editor stores and versions raw Markdown (GFM, footnotes, Mermaid, KaTeX, callouts, [[wikilinks]]). | The structured document schema in @tuturuuu/wiki-core (W1) stays the contract for the docs-corpus importer and publication scanner. |
Page identity is its path inside the space (guides/setup, up to eight kebab-case segments). | Moves rewrite the whole subtree and leave redirects, so old links keep working. | A new page created at a redirected path takes the path back. |
Space visibility is one of workspace, restricted, authenticated or public. | Default workspace: workspace members plus invited space members can read. | restricted: invited members only (plus workspace document managers). authenticated: any signed-in account can read, and the share UI warns before you select it. public: anyone holding the share link, once anonymous share-link reading ships; until then the option is hidden and dashboard pages never read share tokens. |
Writes need an editor/admin space role or manage_documents in the workspace. | Every write API and the editor. | Managing sharing and members needs a space admin role or manage_documents. |
| Missing and unreadable spaces or pages look the same (404). | API routes and server pages. | None. Responses never reveal titles of pages the viewer cannot read. |
The Wiki ships behind the ENABLE_WIKI workspace flag. | Off by default; the migration turns it on for the root workspace. | The EduFest workshop preparation page reads the root workspace space regardless of the viewer’s own workspace flags. |
| Search ignores Vietnamese diacritics. | kich ban matches kịch bản; titles rank above body text. | Code fence contents are searchable; fence markers and link targets are not. |