Skip to content

Docs home and nav refresh v1 - single product UX #14178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 38 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0933029
home page and nav refresh
Jun 4, 2025
2e1707f
fixing linting errors
Jun 4, 2025
4e0863b
[getsentry/action-github-commit] Auto commit
getsantry[bot] Jun 4, 2025
ba933ed
resolving conflicts
Jun 4, 2025
5728fe0
[getsentry/action-github-commit] Auto commit
getsantry[bot] Jun 4, 2025
71dba25
fixing linting errors
Jun 4, 2025
e527115
Add missing trace explorer images
Jun 4, 2025
0b961ae
Add missing feature flags images
Jun 4, 2025
312b790
restoring broken images
Jun 4, 2025
e8d70e4
Add feature flags images to both locations
Jun 4, 2025
001f0dd
cleaning up product directory
Jun 4, 2025
0aa7954
Resolve conflicts by replacing logs getting started and github action…
Jun 4, 2025
02cdece
Restore logs/index.mdx and replace trace-explorer/index.mdx with vers…
Jun 4, 2025
d64999a
Move explore and releases under product/sentry and sync with master c…
Jun 4, 2025
82fbac6
fixing grandaprent parent issues, resynching with master
Jun 4, 2025
dc531fb
Resolve conflicts by using master versions of explore and releases fi…
Jun 4, 2025
d9b6ea1
resolving conflicts
Jun 4, 2025
4761678
resolving conflict
Jun 4, 2025
c65f6a2
fixing lots of bugs
Jun 9, 2025
0dbf945
fixed a few more top nav bugs
Jun 9, 2025
aa9d965
Resolve merge conflict: remove sentry-seer files to match master
Jun 9, 2025
43ff851
Resolve merge conflicts with master
Jun 10, 2025
5a23761
Trigger redeploy/build
Jun 10, 2025
20ac665
[getsentry/action-github-commit] Auto commit
getsantry[bot] Jun 10, 2025
db5550b
update home page with more color, fix the sidebar scroll, update prod…
Jun 26, 2025
2c4e7b2
current single product version of new docs home and navigation
Jun 26, 2025
3ec3fb5
fixing conflicts
Jun 27, 2025
d7d5ead
Resolve merge conflicts: use master for .mdx files, keep branch versi…
Jun 27, 2025
fd2a1cc
adding markdown icon
Jun 27, 2025
65ff1df
Merge branch 'master' into docs-home-and-nav-refresh-v1
sfanahata Jun 27, 2025
71f95df
fixing lint errors
Jun 27, 2025
cc99db0
[getsentry/action-github-commit] Auto commit
getsantry[bot] Jun 27, 2025
637da96
more polish on the banner and the product dropdown
Jun 27, 2025
be89950
resolving merge conflict + udpates to banner and products section
Jun 27, 2025
2e09b6b
[getsentry/action-github-commit] Auto commit
getsantry[bot] Jun 27, 2025
5ea3f3c
fixing dark mode bug on home page
Jun 27, 2025
9b8c097
Merge branch 'docs-home-and-nav-refresh-v1' of https://github.com/get…
Jun 27, 2025
a2fcef8
fix broken links on home page
Jun 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions app/[[...path]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {apiCategories} from 'sentry-docs/build/resolveOpenAPI';
import {ApiCategoryPage} from 'sentry-docs/components/apiCategoryPage';
import {ApiPage} from 'sentry-docs/components/apiPage';
import {DocPage} from 'sentry-docs/components/docPage';
import {Home} from 'sentry-docs/components/home';
import Home from 'sentry-docs/components/home';
import {Include} from 'sentry-docs/components/include';
import {PlatformContent} from 'sentry-docs/components/platformContent';
import {
Expand Down Expand Up @@ -75,8 +75,6 @@ export default async function Page(props: {params: Promise<{path?: string[]}>})
const pageNode = nodeForPath(rootNode, params.path ?? '');

if (!pageNode) {
// eslint-disable-next-line no-console
console.warn('no page node', params.path);
return notFound();
}

Expand Down Expand Up @@ -111,8 +109,6 @@ export default async function Page(props: {params: Promise<{path?: string[]}>})
doc = await getFileBySlugWithCache(`develop-docs/${params.path?.join('/') ?? ''}`);
} catch (e) {
if (e.code === 'ENOENT') {
// eslint-disable-next-line no-console
console.error('ENOENT', params.path);
return notFound();
}
throw e;
Expand Down Expand Up @@ -149,8 +145,6 @@ export default async function Page(props: {params: Promise<{path?: string[]}>})
doc = await getFileBySlugWithCache(`docs/${pageNode.path}`);
} catch (e) {
if (e.code === 'ENOENT') {
// eslint-disable-next-line no-console
console.error('ENOENT', pageNode.path);
return notFound();
}
throw e;
Expand Down
4 changes: 2 additions & 2 deletions app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {useEffect, useState} from 'react';
import {Button} from '@radix-ui/themes';

import {Header} from 'sentry-docs/components/header';
import Header from 'sentry-docs/components/header';
import {Search} from 'sentry-docs/components/search';

export default function NotFound() {
Expand All @@ -17,7 +17,7 @@ export default function NotFound() {
const reportUrl = `https://github.com/getsentry/sentry-docs/issues/new?template=issue-platform-404.yml&title=🔗 404 Error&url=${brokenUrl}`;
return (
<div className="tw-app">
<Header pathname="/" searchPlatforms={[]} noSearch />
<Header pathname="/" searchPlatforms={[]} noSearch platforms={[]} />
<main className="px-8 pt-28">
<h1 className="font-medium text-3xl mb-4">Page Not Found</h1>
<p className="text-lg">We couldn't find the page you were looking for :(</p>
Expand Down
9 changes: 9 additions & 0 deletions src/components/TopNav.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {extractPlatforms, getDocsRootNode} from 'sentry-docs/docTree';

import TopNavClient from './TopNavClient';

export default async function TopNav() {
const rootNode = await getDocsRootNode();
const platforms = extractPlatforms(rootNode);
return <TopNavClient platforms={platforms} />;
}
Loading