diff --git a/docs/index.mdx b/docs/index.mdx index a7047c15f..9dc069ba8 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -2,64 +2,49 @@ seoPriority: 1.0 --- -Sourcegraph is a Code Intelligence platform that deeply understands your code, no matter how large or where it's hosted, to power modern developer experiences. +# Documentation -- **Code Search:** Search through all of your repositories across all branches and all code hosts -- **Deep Search:** Ask natural language questions and get detailed answers from our AI agent -- **Code Intelligence:** Navigate code, find references, see code owners, trace history, and more -- **Fix and Refactor:** Roll out and track large-scale changes and migrations across repos at once -- **AI Assistant:** Use Cody, our AI code assistant to read, write, and understand your entire codebase faster +Guides for searching, understanding, and changing your codebase. -## Quickstart +New to Sourcegraph? [Get started →](/getting-started) or [take a tour](/getting-started/tour). + -## Main Features - -Some of the main Sourcegraph features include: +## More to explore -| **Feature** | **Description** | -| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| **Deep Search** | Natural language code search with a dedicated AI agent that explores your codebase | -| **Cody** | Cody is and AI coding assistant that writes, fixes, and maintains your code | -| **Code Navigation** | Jump-to-definition, find references, and other IDE-like code browsing features on any branch, commit, or PR/code review | -| **Code Insights** | Reveal high-level information about your codebase at its current state and over time, to track migrations, version usage, vulnerability remediation, ownership, and more | -| **Batch Changes** | Make large-scale code changes across many repositories and codehosts | -| **Integrations** | With code hosts, code review tools, editors, web browsers, etc. | +[Batch Changes](/batch-changes) · [Code Insights](/code-insights) · [Integrations](/integration) · [Cody](/cody) -## What's New +--- -Stay in sync and get the latest news on Sourcegraph products, technologies, and culture. [Read the blog →](https://sourcegraph.com/blog) +See what's new in Sourcegraph in the [changelog →](https://sourcegraph.com/changelog). diff --git a/src/app/page.tsx b/src/app/page.tsx index 01a78b0fe..e2640ff36 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,8 @@ import MdxComponents from '@/components/MdxComponents'; import {Prose} from '@/components/Prose'; import {allPosts} from 'contentlayer/generated'; import {getMDXComponent} from 'next-contentlayer2/hooks'; +import {ArrowRight} from 'lucide-react'; +import Link from 'next/link'; import {notFound} from 'next/navigation'; export const generateMetadata = () => { @@ -17,6 +19,37 @@ export const generateMetadata = () => { }; }; +// Keep the landing-page cards compact without changing cards in the guides. +function HomeQuickLink({ + title, + description, + href +}: { + title: string; + description: string; + href: string; +}) { + return ( + +
+

+ {title} +

+
+

+ {description} +

+ + ); +} + const PostLayout = () => { const post = allPosts.find(post => post._raw.flattenedPath === ''); if (!post) return notFound(); @@ -24,10 +57,30 @@ const PostLayout = () => { return ( <> -
+
- - + + ( +
+ {children} +
+ ), + QuickLink: HomeQuickLink + }} + />
diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index ee035ba5a..319fa8ac9 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,6 +1,5 @@ 'use client'; -import {Hero} from '@/components/Hero'; import {Logo} from '@/components/Logo'; import {MobileNavigation} from '@/components/MobileNavigation'; import {Navigation} from '@/components/Navigation'; @@ -102,14 +101,10 @@ function Header() { } export function Layout({children}: {children: React.ReactNode}) { - let pathname = usePathname(); - let isHomePage = pathname === '/'; return (
- {isHomePage && } -