feat(wiki): serve a public documentation written from the panel

Pages live in SQLite and are read without a session: documentation nobody
can reach without an account is not documentation. Drafts answer 404 even
when their address is guessed, and the site never falls back to the
dashboard shell, which would send a visitor to a login screen.

The wiki ships with terms of use and a privacy policy written against the
revised Swiss LPD, describing table by table what this codebase actually
stores. Both are marked protected: they can be rewritten, not deleted, and
a deleted one comes back on the next start — a bot that processes personal
data must always be able to show its notice.

The bracketed details still have to be completed and the whole reviewed;
this is a starting point written from the schema, not legal advice.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5 committed 2026-09-23 23:20:06 +02:00
1 parent 621f3e404b
commit c76c0b96eb
6 files changed
+601 -3

No files matched your search

+3
View File
@@ -14,6 +14,7 @@ import { registerOverviewRoutes } from './overview.js';
import { registerReleaseRoutes } from './releases.js';
import { registerRepositoryRoutes } from './repositories.js';
import { registerSettingsRoutes } from './settings.js';
import { registerWikiRoutes } from './wiki.js';
const here = path.dirname(fileURLToPath(import.meta.url));
@@ -72,6 +73,8 @@ export function registerApiRoutes(router, { setupOnly = false } = {}) {
registerAuthRoutes(router);
registerConfigurationRoutes(router);
// The public documentation stays reachable even while the bot is being set up.
registerWikiRoutes(router);
// Long-lived stream the pages listen to instead of polling (M16-T12).
router.get(