import { NavigationMenu } from "./components/navigationMenu"; import { SearchBar } from "./components/searchBar"; import { Separator } from "@/components/ui/separator"; import { UpgradeToast } from "./components/upgradeToast"; import Link from "next/link"; import { getOrgFromDomain } from "@/data/org"; import { PageNotFound } from "./components/pageNotFound"; import { Footer } from "@/app/components/footer"; import { SourcebotLogo } from "../components/sourcebotLogo"; import { RepositorySnapshot } from "./components/repositorySnapshot"; import { SyntaxReferenceGuideHint } from "./components/syntaxReferenceGuideHint"; import { env } from '@/env.mjs'; export default async function Home({ params: { domain } }: { params: { domain: string } }) { const org = await getOrgFromDomain(domain); if (!org) { return } return (
How to search
test todo (both test and todo) test or todo (either test or todo) {`"exit boot"`} (exact match) TODO case:yes (case sensitive) file:README setup (by filename) repo:torvalds/linux test (by repo) lang:typescript (by language) rev:HEAD (by branch or tag) file:{`\\.py$`} {`(files that end in ".py")`} sym:main {`(symbols named "main")`} todo -lang:c (negate filter) content:README (search content only)
) } const HowToSection = ({ title, children }: { title: string, children: React.ReactNode }) => { return (
{title} {children}
) } const Highlight = ({ children }: { children: React.ReactNode }) => { return ( {children} ) } const QueryExample = ({ children }: { children: React.ReactNode }) => { return ( {children} ) } const QueryExplanation = ({ children }: { children: React.ReactNode }) => { return ( {children} ) } const Query = ({ query, domain, children }: { query: string, domain: string, children: React.ReactNode }) => { return ( {children} ) }