Skip to content

Add new components and features for Mix Space#38

Merged
Innei merged 2 commits intomx-space:mainfrom
PaloMiku:main
May 7, 2026
Merged

Add new components and features for Mix Space#38
Innei merged 2 commits intomx-space:mainfrom
PaloMiku:main

Conversation

@PaloMiku
Copy link
Copy Markdown
Collaborator

@PaloMiku PaloMiku commented May 7, 2026

No description provided.

- 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:13
@safedep
Copy link
Copy Markdown

safedep Bot commented May 7, 2026

⚠️ Scan Failed: Pull Request Too Large

This pull request exceeds GitHub's diff limits and cannot be scanned.

GitHub Limits:

  • Maximum 300 files per diff
  • Maximum 1 MB total diff size

Recommendations:

  • Split this PR into smaller, focused changes
  • Review critical dependency changes manually
  • Contact your team if this is blocking your workflow
    This report is generated by SafeDep Github App

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 restructures the docs site to a new src/-based Next.js + Fumadocs setup and adds a refreshed Mix Space landing experience, along with new routes for search, OpenGraph images, and LLM-friendly content endpoints.

Changes:

  • Migrates the app/docs implementation to src/app and updates shared layout + MDX component wiring.
  • Adds new landing-page components/sections (hero, previews, features, testimonials, contributors, footer).
  • Replaces legacy redirect/sitemap/static files with generated redirects + next-sitemap and adds LLM-related routes.

Reviewed changes

Copilot reviewed 147 out of 166 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
utils/get-contributors.ts Removed legacy contributors fetch util
utils/cn.ts Removed legacy cn helper
tsconfig.json Updated TS config + path aliases
tailwind.config.js Removed Tailwind config (v4-style setup)
styles/globals.css Removed legacy global stylesheet placeholder
src/lib/source.ts Added Fumadocs source loader + helpers
src/lib/shared.ts Added shared constants + GitHub config
src/lib/layout.shared.tsx Added shared layout options for Fumadocs layouts
src/lib/cn.ts Added new cn export
src/components/ui/collapsible.tsx Added Radix collapsible wrapper
src/components/type-table.tsx Added custom type table component
src/components/to-github.tsx Added GitHub repo link card component
src/components/theme-card.tsx Added theme showcase card component
src/components/testimonials.tsx Added testimonials section
src/components/search.tsx Added custom search dialog (Orama)
src/components/provider.tsx Added RootProvider wiring (search integration)
src/components/preview-images.tsx Added rotating preview images section
src/components/mdx.tsx Added MDX component mapping (custom components)
src/components/landing-hero.tsx Added new landing hero section
src/components/footer.tsx Added new footer component
src/components/features.tsx Added features grid section
src/components/env-variable-config.tsx Added env var generator/copy UI
src/components/contributors.tsx Added contributor avatars section (GitHub API)
src/app/og/docs/[...slug]/route.tsx Added docs OpenGraph image route
src/app/llms.txt/route.ts Added llms index route
src/app/llms.mdx/docs/[[...slug]]/route.ts Added per-page LLM markdown route
src/app/llms-full.txt/route.ts Added full LLM corpus route
src/app/layout.tsx Added new root layout + metadata
src/app/global.css Added new global CSS imports/settings
src/app/docs/layout.tsx Added docs layout using new source + tabs
src/app/docs/[[...slug]]/page.tsx Added docs page renderer + metadata
src/app/api/search/route.ts Added search API route from source
src/app/(home)/page.tsx Added new homepage composition
src/app/(home)/layout.tsx Added home layout wrapper + footer
source.config.ts Updated Fumadocs MDX/source config + schemas/plugins
scripts/generate-sitemap.ts Removed custom sitemap generator
scripts/generate-redirects.mjs Added static redirect page generator
scripts/check-pangu.mjs Added spacing checker script
redirects.config.mjs Added centralized redirects map
public/site.webmanifest Removed legacy webmanifest
public/robots.txt Updated robots formatting/allow-list
public/llm.txt Removed legacy LLM text file
public/docs/usage/xlog.html Removed legacy static redirect HTML
public/docs/usage/update.html Removed legacy static redirect HTML
public/docs/usage/serverless.html Removed legacy static redirect HTML
public/docs/usage/security.html Removed legacy static redirect HTML
public/docs/usage/search.html Removed legacy static redirect HTML
public/docs/usage/obsidian.html Removed legacy static redirect HTML
public/docs/usage/oauth.html Removed legacy static redirect HTML
public/docs/usage/index.html Removed legacy static redirect HTML
public/docs/usage/backup.html Removed legacy static redirect HTML
public/docs/usage.html Removed legacy static redirect HTML
public/docs/document/index.html Removed legacy static redirect HTML
public/docs/document.html Removed legacy static redirect HTML
public/docs/development/index.html Removed legacy static redirect HTML
public/docs/development/frontend.html Removed legacy static redirect HTML
public/docs/development/admin.html Removed legacy static redirect HTML
public/docs/development.html Removed legacy static redirect HTML
public/docs/core/index.html Removed legacy static redirect HTML
public/docs/core/features.html Removed legacy static redirect HTML
public/docs/core/extra.html Removed legacy static redirect HTML
public/docs/core/docker.html Removed legacy static redirect HTML
public/docs/core/community.html Removed legacy static redirect HTML
public/docs/core/bash.html Removed legacy static redirect HTML
public/docs/core/advanced.html Removed legacy static redirect HTML
public/docs/core.html Removed legacy static redirect HTML
public/agent-skills/mix-space-expert.md Removed legacy agent-skill doc
public/agent-skills/mix-space-development.md Removed legacy agent-skill doc
postcss.config.mjs Switched PostCSS config format/plugins
pnpm-workspace.yaml Removed workspace build allowlist
package.json Updated scripts/deps for new build pipeline
next.config.mjs Simplified config + redirects from map
next-sitemap.config.js Added sitemap config
lib/source.ts Removed legacy source loader
hooks/use-copy.ts Removed legacy clipboard hook
global.d.ts Removed legacy CSS module declaration
eslint.config.mjs Added ESLint flat config
contexts/toast-context.tsx Removed legacy toast provider
content/docs/use/serverless.mdx Updated MDX imports/usage
content/docs/use/meta.json Updated meta for “use” section
content/docs/themes/yun.mdx Updated theme doc to new components usage
content/docs/themes/yohaku/index.mdx Updated Yohaku doc content/structure
content/docs/themes/yohaku/config.mdx Updated frontmatter (icon removal)
content/docs/themes/shiro/pro.mdx Updated frontmatter (icon removal)
content/docs/themes/shiro/meta.json Added Shiro index to pages list
content/docs/themes/shiro/index.mdx Added new Shiro overview page
content/docs/themes/shiro/extra.mdx Updated Shiro extra page + GitHub link grouping
content/docs/themes/shiro/deploy.mdx Updated deploy page + removed legacy components
content/docs/themes/shiro/config.mdx Updated frontmatter (icon removal)
content/docs/themes/meta.json Updated themes section meta
content/docs/themes/kami.mdx Updated code fences/imports
content/docs/themes/index.mdx Replaced theme list with ThemeCard layout
content/docs/reference/meta.json Updated frontmatter (icon removal)
content/docs/migrate/meta.json Updated frontmatter (icon removal)
content/docs/meta.json Updated top-level docs sections list
content/docs/index.mdx Updated docs homepage content
content/docs/guide/meta.json Added new “guide” section meta
content/docs/guide/index.mdx Added new guide landing page
content/docs/getting-started/meta.json Updated frontmatter (icon removal)
content/docs/develop/meta.json Removed develop section meta
content/docs/develop/index.mdx Removed develop section page
content/docs/develop/frontend.mdx Removed develop section page
content/docs/develop/contribute.mdx Removed develop section page
content/docs/develop/backend.mdx Removed develop section page
content/docs/develop/admin.mdx Removed develop section page
content/docs/deploy/ssl.mdx Updated frontmatter (icon removal)
content/docs/deploy/source.mdx Updated frontmatter (icon removal)
content/docs/deploy/reverse-proxy.mdx Updated reverse proxy doc (removed Vane section)
content/docs/deploy/one-script.mdx Removed one-script deploy doc
content/docs/deploy/meta.json Updated frontmatter (icon removal)
content/docs/deploy/index.mdx Updated deploy overview (removed one-script)
content/docs/deploy/external-services.mdx Updated frontmatter (icon removal)
content/docs/deploy/docker.mdx Major rewrite + new env tooling content
content/docs/deploy/community.mdx Minor copy edits
content/docs/deploy/agent.mdx Updated structure + LLM endpoints section
content/docs/configure/meta.json Updated frontmatter (icon removal)
content/docs/configure/index.mdx Updated configure overview (removed Algolia)
content/docs/configure/algolia.mdx Removed Algolia configuration doc
components/ui/toast.tsx Removed legacy toast UI component
cli.json Added Fumadocs CLI config
app/layout.tsx Removed legacy root layout (non-src)
app/layout.config.tsx Removed legacy layout config
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
app/components/ToGithub/index.tsx Removed legacy GitHub card component
app/components/ThemeShowcase.tsx Removed legacy theme showcase component
app/components/search.tsx Removed legacy search wrapper
app/components/provider.tsx Removed legacy provider implementation
app/components/home/Powered.tsx Removed legacy home section
app/components/home/Highlight.tsx Removed legacy home section
app/components/home/Hero.tsx Removed legacy home hero
app/components/home/FeedbackItem.tsx Removed legacy feedback 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
app/components/EnvVariableConfig.tsx Removed legacy env config component
app/components/contributor-count.tsx Removed legacy contributor counter
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
app/(home)/page.tsx Removed legacy home page
app/(home)/page.module.css Removed legacy home CSS module
app/(home)/layout.tsx Removed legacy home layout
app/(home)/icons.tsx Removed legacy icons file
.github/workflows/deploy.yml Removed standalone sitemap generation step

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

Comment thread next-sitemap.config.js
Comment on lines +1 to +9
/** @type {import('next-sitemap').IConfig} */
const config = {
siteUrl: 'https://mx-space.js.org',
generateRobotsTxt: false,
outDir: 'out',
exclude: ['/api/*', '/og/*', '/llms.txt', '/llms-full.txt', '/llms.mdx/*', '/__next.*'],
};

export default config;
Comment on lines +23 to +27
export function generateStaticParams() {
return source.getPages().map((page) => ({
lang: page.locale,
slug: getPageImage(page).segments,
}));
Comment on lines +96 to +101
const id = parentId ? `${parentId}-${name}` : undefined;
const [open, setOpen] = useState(() => {
if (!id || typeof window === 'undefined') return false;
return window.location.hash === `#${id}`;
});

Comment on lines +32 to +42
for (const repo of repos) {
let page = 1;
while (true) {
try {
const res = await fetch(
`https://api.github.com/repos/${repo}/contributors?per_page=100&page=${page}`,
{
headers: { 'User-Agent': 'mx-docs' },
next: { revalidate: 86400 },
},
);
Comment on lines +41 to +45
<svg viewBox="0 0 24 24" fill="currentColor" className="size-5">
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
Github
</a>
Comment on lines +15 to +21
const [animate, setAnimate] = useState(false);
const mounted = useRef(false);

useEffect(() => {
mounted.current = true;
setAnimate(true);
}, []);
Comment on lines +50 to +54
<ThemeCard
name="Yun"
description="A light & fast & lovely mx web style.。"
author="Innei"
image="/screenshot/Yun.png"
Comment thread public/robots.txt
Comment on lines 7 to +10
User-agent: *
Allow: /llm.txt
Allow: /llm-full.txt
Allow: /agent-skills/
Allow: /agent-skills/ No newline at end of file
Comment thread content/docs/meta.json
Comment on lines 5 to 13
"pages": [
"getting-started",
"deploy",
"configure",
"themes",
"use",
"migrate",
"develop",
"reference"
]
Comment on lines +1 to +9
'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, useState } from 'react';
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from './ui/collapsible';

@Innei Innei merged commit 0da2e65 into mx-space:main May 7, 2026
2 of 3 checks passed
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.

3 participants