Files
nyaterm/docs-site/sidebars.ts
T
KangandClaude Opus 5 049a5a4329 docs: restructure the guide around the pages the features deserve
The page layout still reflected the Tauri-era docs, where RDP and VNC were a
table row and terminal.md absorbed whatever did not have a home.

Sidebar:
- Drop sidebar_position from all 46 pages. sidebars.ts enumerates every entry
  explicitly, so the values never affected ordering, and four of them collided
  (guide had two 2s, three 5s, two 6s, two 8s) while implying an order that did
  not match the real one.
- Reorder the guide by workflow: session types, per-protocol configuration,
  workspace, terminal, monitoring, files, commands, AI, network, auth,
  security, appearance, sync, shortcuts.

New pages:
- guide/rdp.md and guide/vnc.md. RDP and VNC are two of the six session types
  and had no page of their own. Both document the real config fields, the
  validation ranges, the certificate/security policies, and the error kinds,
  and both note the helper-process requirement.
- guide/remote-monitoring.md, extracted from terminal.md, covering all five
  panels.

Deduplication:
- terminal.md drops from 345 to 253 lines. Its AI, provider, translation, and
  risk-tier sections restated ai-assistant.md and translation.md; they are now
  the terminal-specific entry points plus a link. The risk tier table moves to
  ai-assistant.md, which owns the setting that gates it.
- session-types.md keeps the comparison table and links out for RDP/VNC detail
  instead of carrying a second copy of it.
- The migration format list appeared verbatim in four pages. ssh-connection.md
  is now the single source; installation.md, quick-start.md, and faq.md link to
  it.
- installation.md drops from 112 to 63 lines: its workspace tour, settings
  checklist, and "suggested first run" were quick-start.md again.

Verified with `pnpm --dir docs-site build` (both locales) and by resolving
every cross-page anchor against the generated heading ids, since
onBrokenAnchors is set to ignore.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-22 11:27:47 +08:00

54 lines
1.2 KiB
TypeScript

import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
const sidebars: SidebarsConfig = {
docs: [
'intro',
'sponsor',
{
type: 'category',
label: '快速开始',
items: [
'getting-started/installation',
'getting-started/quick-start',
],
},
{
type: 'category',
label: '使用指南',
items: [
'guide/session-types',
'guide/ssh-connection',
'guide/rdp',
'guide/vnc',
'guide/layout-and-workspace',
'guide/terminal',
'guide/remote-monitoring',
'guide/file-transfer',
'guide/quick-commands',
'guide/ai-assistant',
'guide/tunnels-and-proxy',
'guide/otp-and-auth',
'guide/security',
'guide/themes',
'guide/translation',
'guide/sync-and-backup',
'guide/keyboard-shortcuts',
],
},
{
type: 'category',
label: '开发文档',
items: [
'development/architecture',
'development/setup',
'development/frontend',
'development/backend',
'development/contributing',
],
},
'faq',
],
};
export default sidebars;