4 Commits
  • chore(docs): bump dependencies and adapt to fumadocs-core 16.15.11
    Updates the docs site's dependencies, including the Fumadocs packages,
    Next 16.3.5, React 19.3 and three majors: mermaid 12, vitest 5 and
    pnpm 12. Two code changes follow from the bump:
    
    - fumadocs-core 16.15.11 makes `llms().index()` return a Promise, so
      the llms.txt route now awaits it; tsc rejected the old synchronous
      call
    - lucide-react 1.46 renamed the BookMarked icon to BookBookmark. The
      old name is still exported, but lucideIconsPlugin looks names up in
      lucide's `icons` map, which only has the new one, so the Reference
      section lost its sidebar icon in all four locales. The build only
      printed a warning.
    
    minimumReleaseAgeExclude gains entries for the newly installed
    versions.
    
    Checked with typecheck, lint, vitest (106 tests) and a full build: no
    plugin warnings, and each locale's rendered /docs page contains the
    book-bookmark icon.
  • chore(docs): update dependencies and adapt to zbsearch 4
    fumadocs-core 16.14.5 switched its search engine from Orama to zbsearch 4,
    so the panel docs follow it up to the same major.
    
    zbsearch 4 still rejects locale codes as tokenizer languages ("en" throws,
    only "english" is accepted), so the custom search dialog that forces an
    English index stays necessary — verified by loading the built static index
    for all four locales and searching it through fumadocs' own client.
    
    Around that:
    - use `staticClient`, as `oramaStaticClient` is now a deprecated alias
    - drop @orama/orama, which nothing depends on or imports any more
    - correct the two comments that still described Orama and pointed at its
      docs and tokenizer package, one of them suggesting a language zbsearch
      does not have
    - restore the corepack integrity hash on `packageManager`, which CI reads
      through pnpm/action-setup
    - prune minimumReleaseAgeExclude entries for versions no longer installed
    
    The API reference MDX changes are serialization-only: fumadocs-openapi
    11.2.4 emits plain scalars where it used folded ones. Parsed frontmatter
    and page bodies are unchanged.
  • fix(docs): restore theme switch without runtime warnings
    Move html/body shell and global css to root app layout to avoid hydration/script warnings from nested document nodes. Disable provider theme injection and add a custom script-free theme switch in shared layout slots.
    
    Also migrate docs search static client initializer to ZBSearch (initDB), add zbsearch dependency, and align docs lint tooling with ESLint 9 compatibility so npm run lint passes.
  • docs: vendor the documentation site into the monorepo
    Fold the standalone 3x-ui-docs project (Next.js 16 + Fumadocs, deployed to
    docs.sanaei.dev) into docs/ so the panel and its documentation share a single
    source of truth, the way sing-box keeps its docs in-tree. The old repo becomes
    redundant and can be retired.
    
    - Import the full site under docs/ (app, components, content, lib, public,
      scripts, config). The self-contained pnpm project sits alongside the existing
      engineering notes with no filename collisions.
    - Re-point "Edit on GitHub" links from MHSanaei/3x-ui-docs to this repo's
      docs/content/docs path (docs/lib/shared.ts, docs/app/.../page.tsx).
    - Add docs-ci.yml and docs-deploy.yml under .github/workflows/, scoped to
      docs/** and run with working-directory: docs, since GitHub only runs
      workflows from the repo-root .github/. deploy-static.yml's GitHub Pages
      publish (CNAME docs.sanaei.dev) carries over unchanged.
    
    Follow-up (outside this commit): attach the docs.sanaei.dev custom domain to
    this repository's Pages (or set the Vercel project's root directory to docs),
    confirm the site is live from the monorepo, then delete MHSanaei/3x-ui-docs.