Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,11 @@ module.exports = withSentryConfig(nextConfig, {
applicationKey: 'sentry-docs',
},
});

process.on('warning', warning => {
if (warning.code === 'DEP0040') {
// Ignore punnycode deprecation warning, we don't control its usage
return;
}
console.warn(warning); // Log other warnings
});
5 changes: 3 additions & 2 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import {Fragment} from 'react';
import {HamburgerMenuIcon} from '@radix-ui/react-icons';
import Image from 'next/image';
import Link from 'next/link';

import SentryLogoSVG from 'sentry-docs/logos/sentry-logo-dark.svg';

Expand Down Expand Up @@ -44,7 +45,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
</label>
</button>
)}
<a
<Link
href="/"
title="Sentry error monitoring"
className="flex flex-shrink-0 items-center lg:w-[calc(var(--sidebar-width,300px)-2rem)] text-2xl font-medium text-[var(--foreground)]"
Expand All @@ -58,7 +59,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
/>
</div>
Docs
</a>
</Link>
{!noSearch && (
<div className="hidden md:flex justify-center lg:justify-start w-full px-6">
<Search path={pathname} searchPlatforms={searchPlatforms} showChatBot />
Expand Down
12 changes: 6 additions & 6 deletions tailwind.config.js → tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
const defaultTheme = require('tailwindcss/defaultTheme');
import defaultTheme from 'tailwindcss/defaultTheme';

import Typography from '@tailwindcss/typography';
import Forms from '@tailwindcss/forms';
import {
isolateInsideOfContainer,
scopedPreflightStyles,
} from 'tailwindcss-scoped-preflight';

/** @type {import('tailwindcss').Config} */
module.exports = {
export default {
darkMode: ['selector', '.dark'],
content: ['./app/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
Expand Down Expand Up @@ -60,10 +62,8 @@ module.exports = {
},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms')({
strategy: 'class',
}),
Typography,
Forms({strategy: 'class'}),
scopedPreflightStyles({
// pretty minimalistic example. Same options as in the previous example are available
isolationStrategy: isolateInsideOfContainer('.tw-app'),
Expand Down
Loading