Skip to content

Commit

Permalink
Merge branch 'master' into docs/self-hosted/errors-only-product-link
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuarli committed Aug 23, 2024
2 parents f1d424e + 96e0273 commit ff97e01
Show file tree
Hide file tree
Showing 471 changed files with 7,762 additions and 7,410 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@

NEXT_PUBLIC_ALGOLIA_APP_ID=OOK48W9UCL
NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=ca98597f559459c216891b75989832f8

DATABASE_URL=postgresql://postgres:postgres@localhost:5432/changelog
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=secret
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

# Requiring review from security team for Content-Security-Policy changes
/vercel.json @getsentry/security
**/vercel.json @getsentry/security

# owners-api is tagged here but anyone can just approve the SHA Bump PRs
/src/build/resolveOpenAPI.ts @getsentry/owners-api
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/algolia-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ jobs:
name: Update Algolia index
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: getsentry/action-setup-volta@c52be2ea13cfdc084edb806e81958c13e445941e # v1.2.0
- uses: actions/checkout@v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
id: setup-node
with:
node-version-file: 'package.json'
- uses: dorny/paths-filter@v3
id: filter
with:
Expand All @@ -33,10 +36,6 @@ jobs:
- run: yarn install --frozen-lockfile
if: steps.cache.outputs.cache-hit != 'true'

# Remove the changelog directory to avoid a build error due to missing `DATABASE_URL`
# and save some build time.
- run: rm -r app/changelog

# bun seems to be the most straightforward way to run a TypeScript script
# without introducing another dependency like ts-node or tsx for everyone else

Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/lint-404s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ jobs:
index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: getsentry/action-setup-volta@c52be2ea13cfdc084edb806e81958c13e445941e # v1.2.0
- uses: actions/checkout@v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
id: setup-node
with:
node-version-file: 'package.json'
- uses: dorny/paths-filter@v3
id: filter
with:
Expand All @@ -35,10 +38,6 @@ jobs:
- run: yarn install --frozen-lockfile
if: steps.cache.outputs.cache-hit != 'true'

# Remove the changelog directory to avoid a build error due to missing `DATABASE_URL`
# and save some build time.
- run: rm -r app/changelog

- run: yarn build
if: steps.filter.outputs.docs == 'true'

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ jobs:
pull-requests: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: getsentry/action-setup-volta@c52be2ea13cfdc084edb806e81958c13e445941e # v1.2.0

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
id: setup-node
with:
node-version-file: 'package.json'

- name: Install github-label-sync
run: yarn global add github-label-sync@2.2.0
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
app_id: ${{ vars.SENTRY_INTERNAL_APP_ID }}
private_key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }}

- uses: getsentry/action-setup-volta@c52be2ea13cfdc084edb806e81958c13e445941e # v1.2.0
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
id: setup-node
with:
node-version-file: 'package.json'

- uses: actions/cache@v4
id: cache
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ public/page-data
tsconfig.tsbuildinfo

public/mdx-images/*

# yalc
.yalc
yalc.lock
6 changes: 4 additions & 2 deletions app/[[...path]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs';
import {getDevDocsFrontMatter, getDocsFrontMatter, getFileBySlug} from 'sentry-docs/mdx';
import {mdxComponents} from 'sentry-docs/mdxComponents';
import {setServerContext} from 'sentry-docs/serverContext';
import {capitilize} from 'sentry-docs/utils';
import {formatGuideOrPlatformTitle} from 'sentry-docs/utils';

export async function generateStaticParams() {
const docs = await (isDeveloperDocs ? getDevDocsFrontMatter() : getDocsFrontMatter());
Expand Down Expand Up @@ -141,7 +141,9 @@ export async function generateMetadata({params}: MetadataProps): Promise<Metadat
const guideOrPlatform = getCurrentPlatformOrGuide(rootNode, params.path);
title =
pageNode.frontmatter.title +
(guideOrPlatform ? ` | Sentry for ${capitilize(guideOrPlatform.name)}` : '');
(guideOrPlatform
? ` | Sentry for ${formatGuideOrPlatformTitle(guideOrPlatform.name)}`
: '');
description = pageNode.frontmatter.description ?? '';
}
}
Expand Down
21 changes: 0 additions & 21 deletions app/api/auth/[...nextauth]/route.ts

This file was deleted.

96 changes: 0 additions & 96 deletions app/changelog/%5Fadmin/[id]/edit/page.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions app/changelog/%5Fadmin/confirm.tsx

This file was deleted.

65 changes: 0 additions & 65 deletions app/changelog/%5Fadmin/create/page.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions app/changelog/%5Fadmin/layout.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions app/changelog/%5Fadmin/loading.tsx

This file was deleted.

Loading

0 comments on commit ff97e01

Please sign in to comment.