Skip to content

Fix/pr38 issues#39

Merged
PaloMiku merged 4 commits intomx-space:mainfrom
PaloMiku:fix/pr38-issues
May 7, 2026
Merged

Fix/pr38 issues#39
PaloMiku merged 4 commits intomx-space:mainfrom
PaloMiku:fix/pr38-issues

Conversation

@PaloMiku
Copy link
Copy Markdown
Collaborator

@PaloMiku PaloMiku commented May 7, 2026

No description provided.

PaloMiku added 3 commits May 7, 2026 15:12
- Introduced Footer component for branding and copyright information.
- Added LandingHero component with a hero section and call-to-action buttons.
- Implemented MDX components integration for enhanced documentation support.
- Created PreviewImages component for showcasing screenshots with auto-rotation.
- Developed Provider component for context management with search functionality.
- Added Search component for improved documentation search capabilities.
- Implemented Testimonials component to display user feedback.
- Created ThemeCard component for showcasing themes with badges.
- Added ToGithub components for linking to GitHub repositories.
- Developed TypeTable component for displaying type information in a structured format.
- Introduced Collapsible component for expandable content sections.
- Added utility functions for class name merging and layout options.
- Removed unused global CSS and Tailwind configuration files.
- Updated TypeScript configuration for improved module resolution and type checking.
- Cleaned up utility functions and removed deprecated code.
Copilot AI review requested due to automatic review settings May 7, 2026 07:38
@safedep
Copy link
Copy Markdown

safedep Bot commented May 7, 2026

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

View complete scan results →

This report is generated by SafeDep Github App

@PaloMiku PaloMiku marked this pull request as draft May 7, 2026 07:38
Signed-off-by: PaloMiku <palomiku@outlook.com>
@PaloMiku PaloMiku marked this pull request as ready for review May 7, 2026 07:40
@PaloMiku PaloMiku merged commit cd76370 into mx-space:main May 7, 2026
3 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the docs site by migrating to a new src/-based Next.js + Fumadocs setup, adding static-export friendly LLM endpoints, refreshed landing/home UI components, and replacing legacy sitemap/redirect mechanisms with build-time generation.

Changes:

  • Migrate the app structure into src/ with updated Fumadocs source/layout wiring and MDX component registration.
  • Add build-time sitemap + redirect generation and new LLM text/OG routes intended for static export output.
  • Refresh homepage/docs UI components (hero, features, testimonials, contributors, search dialog) and update documentation content organization.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
utils/get-contributors.ts Removed legacy GitHub contributors fetch utility.
utils/cn.ts Removed legacy cn helper (clsx + twMerge).
tsconfig.json Updated TS config (paths, JSX mode, includes).
tailwind.config.js Removed Tailwind config (moving toward Tailwind v4 CSS-first usage).
styles/globals.css Removed legacy global CSS file.
src/lib/source.ts New Fumadocs source loader + helpers for OG/LLM routes.
src/lib/shared.ts New shared constants (routes, Git config, app name).
src/lib/layout.shared.tsx New shared Fumadocs layout base options (nav + GitHub URL).
src/lib/cn.ts New cn export based on tailwind-merge.
src/components/ui/collapsible.tsx New Radix Collapsible wrapper component.
src/components/type-table.tsx New custom TypeTable UI (currently appears unused).
src/components/to-github.tsx New GitHub repo link card component(s) for MDX usage.
src/components/theme-card.tsx New theme showcase card component.
src/components/testimonials.tsx New testimonials section for homepage.
src/components/search.tsx New Orama-powered search dialog integration.
src/components/provider.tsx New RootProvider wrapper wiring up SearchDialog.
src/components/preview-images.tsx New rotating preview images section for homepage.
src/components/mdx.tsx Central MDX components registration (adds ToGithub/EnvVariableConfig, etc.).
src/components/landing-hero.tsx New landing hero section for homepage.
src/components/footer.tsx New footer component for homepage layout.
src/components/features.tsx New features grid section for homepage.
src/components/env-variable-config.tsx New env var configurator/copy UI for docs pages.
src/components/contributors.tsx New contributors section (build-time GitHub API aggregation).
src/app/og/docs/[...slug]/route.tsx New OG image route for docs pages.
src/app/llms.txt/route.ts New llms.txt index route (generated from Fumadocs source).
src/app/llms.mdx/docs/[[...slug]]/route.ts New per-page Markdown route for LLM consumption.
src/app/llms-full.txt/route.ts New full aggregated LLM text route.
src/app/layout.tsx New root layout + site metadata + global provider wiring.
src/app/global.css New global CSS imports (Tailwind + Fumadocs presets).
src/app/docs/layout.tsx New docs layout using DocsLayout + tab icon mapping.
src/app/docs/[[...slug]]/page.tsx New docs page renderer with MDX components + view/copy actions.
src/app/api/search/route.ts New static search API route from Fumadocs source.
src/app/(home)/page.tsx New homepage composition + JSON-LD.
src/app/(home)/layout.tsx New home layout using Fumadocs HomeLayout + Footer.
source.config.ts Updated Fumadocs collections/schema config + MDX remark plugin.
scripts/generate-sitemap.ts Removed custom sitemap generator script.
scripts/generate-redirects.mjs Added build-time redirect HTML generator for static hosting.
scripts/check-pangu.mjs Added CJK spacing checker script.
redirects.config.mjs Added centralized redirects map used by Next + redirect generator.
public/site.webmanifest Removed legacy web manifest.
public/robots.txt Updated allowed paths for new LLM routes.
public/llm.txt Removed legacy llm.txt static content file.
public/docs/usage/xlog.html Removed legacy static redirect page.
public/docs/usage/update.html Removed legacy static redirect page.
public/docs/usage/serverless.html Removed legacy static redirect page.
public/docs/usage/security.html Removed legacy static redirect page.
public/docs/usage/search.html Removed legacy static redirect page.
public/docs/usage/obsidian.html Removed legacy static redirect page.
public/docs/usage/oauth.html Removed legacy static redirect page.
public/docs/usage/index.html Removed legacy static redirect page.
public/docs/usage/backup.html Removed legacy static redirect page.
public/docs/usage.html Removed legacy static redirect page.
public/docs/document/index.html Removed legacy static redirect page.
public/docs/document.html Removed legacy static redirect page.
public/docs/development/index.html Removed legacy static redirect page.
public/docs/development/frontend.html Removed legacy static redirect page.
public/docs/development/admin.html Removed legacy static redirect page.
public/docs/development.html Removed legacy static redirect page.
public/docs/core/index.html Removed legacy static redirect page.
public/docs/core/features.html Removed legacy static redirect page.
public/docs/core/extra.html Removed legacy static redirect page.
public/docs/core/docker.html Removed legacy static redirect page.
public/docs/core/community.html Removed legacy static redirect page.
public/docs/core/bash.html Removed legacy static redirect page.
public/docs/core/advanced.html Removed legacy static redirect page.
public/docs/core.html Removed legacy static redirect page.
public/agent-skills/mix-space-expert.md Removed legacy agent-skill document.
public/agent-skills/mix-space-development.md Removed legacy agent-skill document.
postcss.config.mjs Updated PostCSS config to ESM export; removed autoprefixer.
pnpm-workspace.yaml Removed workspace build allowlist file.
package.json Updated scripts/deps (Next/Fumadocs upgrades, sitemap/redirect tooling, lint/pangu).
next.config.mjs Updated Next config for static export + redirects map; simplified images config.
next-sitemap.config.js Added next-sitemap configuration for out/ output.
lib/source.ts Removed legacy source loader (moved to src/lib/source.ts).
hooks/use-copy.ts Removed legacy clipboard helper hook.
global.d.ts Removed legacy CSS module declaration.
eslint.config.mjs Added flat ESLint config with Next core-web-vitals preset and ignores.
contexts/toast-context.tsx Removed legacy toast context/provider.
content/docs/use/serverless.mdx Updated MDX imports/usage for new components structure.
content/docs/use/meta.json Removed icon field from section meta.
content/docs/themes/yun.mdx Updated MDX usage (remove old component import).
content/docs/themes/yohaku/index.mdx Expanded/rewrote theme docs content; updated ToGithub usage/callouts.
content/docs/themes/yohaku/config.mdx Removed icon field from frontmatter.
content/docs/themes/shiro/pro.mdx Removed icon field from frontmatter.
content/docs/themes/shiro/meta.json Added index page to Shiro theme section meta.
content/docs/themes/shiro/index.mdx Added new Shiro theme overview page.
content/docs/themes/shiro/extra.mdx Updated ToGithub usage; refactored some content/snippets.
content/docs/themes/shiro/deploy.mdx Updated imports/embedded components usage; removed old video usage.
content/docs/themes/shiro/config.mdx Removed icon field from frontmatter.
content/docs/themes/meta.json Updated section icon + added index page to theme section.
content/docs/themes/kami.mdx Updated ToGithub usage and code fence language.
content/docs/themes/index.mdx Replaced old theme showcase with new ThemeCard-based overview.
content/docs/reference/meta.json Removed icon field from section meta.
content/docs/migrate/meta.json Removed icon field from section meta.
content/docs/meta.json Reordered/updated top-level docs sections (added guide, removed develop).
content/docs/index.mdx Updated docs homepage content/title/description.
content/docs/guide/meta.json Added new “guide” section meta.
content/docs/guide/index.mdx Added new “quick start” guide page.
content/docs/getting-started/meta.json Removed icon field from section meta.
content/docs/develop/meta.json Removed legacy “develop” section meta.
content/docs/develop/index.mdx Removed legacy development guide page.
content/docs/develop/frontend.mdx Removed legacy frontend development page.
content/docs/develop/contribute.mdx Removed legacy contribution guide page.
content/docs/develop/backend.mdx Removed legacy backend development page.
content/docs/develop/admin.mdx Removed legacy admin deployment page.
content/docs/deploy/ssl.mdx Removed icon field from frontmatter.
content/docs/deploy/source.mdx Removed icon field from frontmatter.
content/docs/deploy/reverse-proxy.mdx Removed icon field from frontmatter; removed Vane section.
content/docs/deploy/one-script.mdx Removed one-script deployment page.
content/docs/deploy/meta.json Updated deploy section meta (but still lists removed pages).
content/docs/deploy/index.mdx Updated deploy overview page (removed one-script card row).
content/docs/deploy/external-services.mdx Removed icon field from frontmatter.
content/docs/deploy/docker.mdx Major rewrite of Docker deploy doc (EnvVariableConfig + TypeTable usage).
content/docs/deploy/community.mdx Removed icon field from frontmatter; minor content spacing tweaks.
content/docs/deploy/agent.mdx Updated AI agent deployment guide formatting/content.
content/docs/configure/meta.json Updated configure section meta (but still lists removed pages).
content/docs/configure/index.mdx Updated configure overview content (removed Algolia references).
content/docs/configure/algolia.mdx Removed Algolia search configuration page.
components/ui/toast.tsx Removed legacy toast UI component.
cli.json Added Fumadocs CLI config/aliases.
app/layout.tsx Removed legacy (non-src/) app root layout.
app/layout.config.tsx Removed legacy layout configuration.
app/global.css Removed legacy global CSS.
app/docs/layout.tsx Removed legacy docs layout.
app/docs/[[...slug]]/page.tsx Removed legacy docs page renderer.
app/components/Video/index.tsx Removed legacy video component.
app/components/ui/button.tsx Removed legacy button variants file.
app/components/ToGithub/index.tsx Removed legacy ToGithub component.
app/components/ThemeShowcase.tsx Removed legacy theme showcase component.
app/components/search.tsx Removed legacy search dialog wrapper.
app/components/provider.tsx Removed legacy provider wrapper.
app/components/home/Powered.tsx Removed legacy homepage powered-by section.
app/components/home/Highlight.tsx Removed legacy homepage highlight section.
app/components/home/Hero.tsx Removed legacy homepage hero.
app/components/home/FeedbackItem.tsx Removed legacy feedback item component.
app/components/home/feedbackData.ts Removed legacy feedback data.
app/components/home/Feedback.tsx Removed legacy feedback section.
app/components/home/Contributing.tsx Removed legacy contributing section.
app/components/features/index.tsx Removed legacy features component.
app/components/features/index.module.css Removed legacy features CSS module.
app/components/EnvVariableConfig.tsx Removed legacy env variable config component.
app/components/contributor-count.tsx Removed legacy contributor counter component.
app/components/Configurator.tsx Removed legacy configurator component.
app/components/code-block.tsx Removed legacy code block wrapper.
app/api/search/route.ts Removed legacy search route (non-src/).
app/(home)/page.tsx Removed legacy homepage page.
app/(home)/page.module.css Removed legacy homepage CSS module.
app/(home)/layout.tsx Removed legacy homepage layout.
app/(home)/icons.tsx Removed legacy icons bundle.
.github/workflows/deploy.yml Updated CI build steps (removed custom sitemap generation step).
Comments suppressed due to low confidence (1)

src/components/type-table.tsx:12

  • This TypeTable implementation (and the Radix Collapsible wrapper it depends on) doesn’t appear to be used anywhere in the repo right now (MDX pages import fumadocs-ui/components/type-table, and getMDXComponents doesn’t register this component). Consider either wiring it up (e.g. export it via getMDXComponents and use it in MDX) or removing it to avoid carrying unused UI code.
'use client';

import { ChevronDown } from 'lucide-react';
import Link from 'fumadocs-core/link';
import { cva } from 'class-variance-authority';
import { cn } from '../lib/cn';
import { type ComponentProps, type ReactNode, useEffect, useState } from 'react';
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from './ui/collapsible';

export interface ParameterNode {
  name: string;
  description: ReactNode;

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread next-sitemap.config.js
@@ -6,4 +6,4 @@ const config = {
exclude: ['/api/*', '/og/*', '/llms.txt', '/llms-full.txt', '/llms.mdx/*', '/__next.*'],
Comment on lines 26 to 46
async function fetchContributors(): Promise<{
humans: Contributor[];
bots: Contributor[];
}> {
const all: Record<string, Contributor> = {};

for (const repo of repos) {
let page = 1;
while (true) {
try {
const headers: Record<string, string> = { 'User-Agent': 'mx-docs' };
if (process.env.GITHUB_TOKEN) {
headers.Authorization = `Bearer ${process.env.GITHUB_TOKEN}`;
}
const res = await fetch(
`https://api.github.com/repos/${repo}/contributors?per_page=100&page=${page}`,
{
headers: { 'User-Agent': 'mx-docs' },
headers,
next: { revalidate: 86400 },
},
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants