diff --git a/sdocs-main-updated.zip b/sdocs-main-updated.zip new file mode 100644 index 0000000..6dc5ea6 Binary files /dev/null and b/sdocs-main-updated.zip differ diff --git a/sway-docs-integration-notes.md b/sway-docs-integration-notes.md new file mode 100644 index 0000000..d98add0 --- /dev/null +++ b/sway-docs-integration-notes.md @@ -0,0 +1,57 @@ +# Sway `/docs` Integration Notes + +Use `sway-docs-page.tsx` as the page content for `/docs`. + +The live site is a Next app. The legal pages are wrapped by an existing shell that renders: + +- `SidebarProvider` +- `LegalBodyClass` +- `AppSidebar` +- `SidebarTrigger` +- `Separator` +- `LegalHeader` +- a centered content panel with `max-w-6xl`, `rounded-2xl`, `border-white/10`, `bg-neutral-900/65`, `p-4`, and `sm:p-6` + +Do not paste this as standalone HTML. Put the page inside that same shell. + +If the current shell is only in `app/legal/layout.tsx`, move that layout unchanged into a route group so it can wrap both legal pages and docs without changing URLs: + +```txt +app/(document-shell)/layout.tsx +app/(document-shell)/docs/page.tsx +app/(document-shell)/legal/terms/page.tsx +app/(document-shell)/legal/privacy/page.tsx +app/(document-shell)/legal/cookies/page.tsx +app/(document-shell)/legal/security/page.tsx +``` + +Then copy `sway-docs-page.tsx` to: + +```txt +app/(document-shell)/docs/page.tsx +``` + +If `LegalHeader` has hardcoded breadcrumbs, add a `/docs` entry that renders the same breadcrumb style with: + +```txt +Home > Documentation +``` + +If `AppSidebar` has hardcoded navigation, add a `Documentation` item only if Sway wants `/docs` visible in the sidebar. Keep the existing Legal Center, Quick Links, icon sizing, active state, spacing, and muted text classes unchanged. + +Expected imports used by the page: + +```tsx +import Link from "next/link"; +import { BookOpenText, Flag } from "lucide-react"; +import { Badge } from "@/components/ui/badge"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +``` + +If the repo aliases differ, update only the import paths. The JSX and classes intentionally match the legal pages observed on the live site. diff --git a/sway-docs-page.tsx b/sway-docs-page.tsx new file mode 100644 index 0000000..1ecd4fc --- /dev/null +++ b/sway-docs-page.tsx @@ -0,0 +1,327 @@ +import Link from "next/link"; +import { BookOpenText, Flag } from "lucide-react"; + +import { Badge } from "@/components/ui/badge"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; + +export const metadata = { + title: "Sway Bot Documentation", + description: + "Learn how to set up, configure, and manage Sway for your Roblox and Discord community.", +}; + +const cardClass = "border-white/10 bg-neutral-900/60 text-neutral-200"; +const descriptionClass = "text-neutral-200/55"; +const contentClass = "space-y-3 text-sm leading-6 text-neutral-200/75"; +const linkClass = "underline text-neutral-200"; + +export default function DocsPage() { + return ( +
+ Learn how to set up, configure, and manage Sway for your Roblox and + Discord community. +
++ Sway is an all-in-one management platform for Roblox and Discord + communities. It helps teams manage verification, moderation, + activity tracking, staff workflows, and session operations from one + dashboard. +
++ Sway supports Roblox and Discord account verification so staff can + understand who is joining, what access they should receive, and + whether role checks are passing correctly. +
++ Sway provides moderation tools that help staff issue warnings, track + cases, review logs, and apply community rules consistently. +
++ Sway helps teams manage promotions, infractions, rank changes, staff + oversight, and team organization from the dashboard. +
++ Sway supports session management for tracking and coordinating + community operations across platforms. +
++ Most setup work happens through the dashboard. Common configuration + areas include: +
++ For help with setup, verification, permissions, dashboard behavior, + or account linking, contact Sway through the official{" "} + + Support + {" "} + community. +
+