Skip to content

Move GitHub link from homepage buttons to fumadocs icon#255

Merged
xuyushun441-sys merged 2 commits intomainfrom
copilot/optimize-github-link-position
Jan 29, 2026
Merged

Move GitHub link from homepage buttons to fumadocs icon#255
xuyushun441-sys merged 2 commits intomainfrom
copilot/optimize-github-link-position

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 29, 2026

Consolidates GitHub repository links from multiple homepage CTAs into a single icon in the navigation using fumadocs' native githubUrl property.

Changes

  • Layout config: Added githubUrl property to fumadocs baseOptions(), removed text link from links array
  • Homepage: Removed GitHub buttons from hero section and CTA section
// apps/site/lib/layout.shared.tsx
export function baseOptions(): BaseLayoutProps {
  return {
    githubUrl: 'https://github.com/objectstack-ai/objectui',  // Auto-renders as icon
    links: [
      { text: 'Documentation', url: '/docs' },
      { text: 'Storybook', url: 'https://storybook.objectui.org' },
      // GitHub link removed - now handled by githubUrl
    ],
  };
}

Screenshots

Homepage - GitHub icon in navigation (buttons removed)
Homepage

Docs - GitHub icon in fumadocs sidebar
Docs

Original prompt

优化官网GitHub链接的位置,去掉官网首页的链接,在fumadocs layout中显示为图标即可


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
objectui Ready Ready Preview, Comment Jan 29, 2026 1:14am
objectui-components Ready Ready Preview, Comment Jan 29, 2026 1:14am
objectui-crm-app Error Error Jan 29, 2026 1:14am

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub link display on homepage Move GitHub link from homepage buttons to fumadocs icon Jan 29, 2026
Copilot AI requested a review from hotlong January 29, 2026 00:50
@xuyushun441-sys xuyushun441-sys marked this pull request as ready for review January 29, 2026 01:31
@xuyushun441-sys xuyushun441-sys merged commit 96cafce into main Jan 29, 2026
3 of 4 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