Skip to content
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

Test 404 linter trigger #10821

Closed
wants to merge 89 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
fe02454
fix redirect (#10734)
a-hariti Jul 16, 2024
bffbd87
feat(js): Add docs for creating a child span (#10729)
mydea Jul 16, 2024
da642b7
fix: Update 404 links for develop-docs (#10736)
chargome Jul 16, 2024
4452584
fix: replay product links (#10743)
bruno-garcia Jul 16, 2024
c1b2c68
fix: replay mobile remove beta title (#10744)
bruno-garcia Jul 16, 2024
43bf645
Bump API schema to 64741e0b (#10748)
getsentry-release Jul 16, 2024
902b86f
Bump API schema to 22988e38 (#10751)
getsentry-release Jul 16, 2024
d400f4d
remove spans + correct to payg (#10746)
isabellaenriquez Jul 16, 2024
80d2c9e
Bump API schema to eaffd936 (#10754)
getsentry-release Jul 16, 2024
f366de4
Update options.mdx (#10741)
klemmchr Jul 16, 2024
42a0e03
fix: Handle product 404 links (#10742)
chargome Jul 16, 2024
a192738
fix: Only show otel migration docs for node based sdks (#10752)
AbhiPrasad Jul 16, 2024
712448e
Bump API schema to 03389d18 (#10756)
getsentry-release Jul 16, 2024
446f095
fix(Apple): Show Apple profiling pages only on supported platforms (#…
kahest Jul 16, 2024
d425f8e
feat(Mobile): adds ANR/App Hangs to RN+Flutter Features (#10709)
kahest Jul 16, 2024
d4ca1c9
docs(flutter): Document Flutter desktop limitations (#10490)
denrase Jul 16, 2024
cfa7a98
fix(apple): change link from react native manual setup to ios manual …
buenaflor Jul 16, 2024
160f1ba
feat(flutter): update slow and frozen frames and frames delay (#10507)
buenaflor Jul 16, 2024
6bcc824
fix: Use /orgredirect/ instead of linking to sentry org (#10753)
ryan953 Jul 16, 2024
3215b18
feat(python): Improve integrations page (#10575)
sentrivana Jul 17, 2024
25fa49b
feat(js): Improve `tracesSampler` docs for JS (#10759)
mydea Jul 17, 2024
f7ffd94
Add missing line to Kotlin Multiplatform Docs (#10645)
nathcakes Jul 17, 2024
bbb0ece
Add screenshots for Session Replay mobile product docs (#10760)
romtsn Jul 17, 2024
d663d77
docs(python): Document how to migrate custom `Hub` usage
szokeasaurusrex Jun 27, 2024
d535ade
docs(python): Document how to migrate Hub clones (#10531)
szokeasaurusrex Jul 12, 2024
9e1c50d
feat(macos): Add NSApplicationCrashOnExceptions to usage (#10713)
kahest Jul 17, 2024
a5a65df
Update index.mdx (#10767)
matejminar Jul 17, 2024
b237d05
fix some develop 404s (#10763)
stephanie-anderson Jul 17, 2024
0d4a770
Bump API schema to c0c54c41 (#10766)
getsentry-release Jul 17, 2024
8ee1cc7
Updating casing for Session Replay docs (#10758)
drguthals Jul 17, 2024
16d2e3f
docs(replay): Replay Issue types & hydration errors (#10686)
ryan953 Jul 17, 2024
446bf25
update behind the code marketing banner (#10769)
lizokm Jul 17, 2024
899bea9
docs(replay): Fix typos and more in Replay Hydration Error docs (#10770)
ryan953 Jul 17, 2024
d889679
Fix URL to Spring Boot git integration (#10764)
liamjones Jul 17, 2024
7c5fbd2
fix(user-docs): Update 404 links (#10757)
chargome Jul 18, 2024
d929920
fix(javascript): Add entry to migration guide about forcing a samplin…
Lms24 Jul 18, 2024
78c2dfe
fix(dynamic-sampling): Update docs on the sampling algorithm (#10773)
iambriccardo Jul 18, 2024
551cea6
ref(stats): Introduce discard outcome & reason descriptions (#10585)
priscilawebdev Jul 18, 2024
dbe12dd
docs(nestjs): Update verify snippet for nestjs (#10774)
nicohrubec Jul 18, 2024
34523fa
fix: 404 links in develop-docs (#10768)
supervacuus Jul 18, 2024
f9781cf
Bump API schema to f9e8b502 (#10775)
getsentry-release Jul 18, 2024
775ad4b
Fix language for code example in Micro Frontends doc (#10762)
teners Jul 18, 2024
90b44da
fix(develop-docs): Fix remaining 404s (#10772)
chargome Jul 19, 2024
892b245
feat: Add direct links and images on home page (#10778)
JLuse Jul 19, 2024
c4f75ef
getsentry/relay@28a0b5f0da2d07675ba372b1675b2f5a2c4ce668
Dav1dde Jul 19, 2024
54bf110
fix: Handle edge case for algolia updates (#10780)
chargome Jul 19, 2024
e42e276
ci: trigger index re-creation (#10783)
chargome Jul 19, 2024
83b37b2
getsentry/relay@4e666e1db0b71c8c0d54510135b61d464ea0bcad
Dav1dde Jul 19, 2024
99e118f
feat(new-trace): Adding support for python performance setup checklis…
Abdkhan14 Jul 19, 2024
22bebef
Bump API schema to 858dd243 (#10786)
getsentry-release Jul 19, 2024
c6c458a
Bump API schema to 53974437 (#10788)
getsentry-release Jul 19, 2024
69a47de
Bump API schema to 1bf80004 (#10789)
getsentry-release Jul 19, 2024
eec8899
feat(node): Add documentation for `request` param in `httpIntegration…
Lms24 Jul 22, 2024
7a8cea9
feat(redis): Add redis and integration options (#10793)
s1gr1d Jul 22, 2024
636bf57
ref(angular): Improve Nx CLI docs (#10632)
meeroslav Jul 22, 2024
f1fdb68
getsentry/relay@ebf3351bcddb0e69c80cf6470edbd44abb0cf964
iambriccardo Jul 22, 2024
37f1205
deleting threads (#10787)
iamrajjoshi Jul 22, 2024
874d6b1
Update legacy-pricing.mdx (#10795)
lizokm Jul 22, 2024
4905fd9
Bump API schema to 42af3752 (#10797)
getsentry-release Jul 22, 2024
9bebf2d
update docs to include is in (#10796)
nhsiehgit Jul 22, 2024
e27b421
Fix typo. (#10799)
alimony Jul 22, 2024
f13e2f6
ref(aws-lambda): Restructure and improve AWS Lambda SDK documentation…
Lms24 Jul 23, 2024
a715187
fix: Remove unsupported definition list syntax (#10739)
chargome Jul 23, 2024
e311ea8
feat(node): Add docs for skipping instrumentation (#10803)
mydea Jul 23, 2024
b3332de
feat: Automatic preview cleanups (#10785)
chargome Jul 23, 2024
5d92326
Bump API schema to 33ec1910 (#10807)
getsentry-release Jul 23, 2024
7232eda
docs(new-trace): Adding python perf onboaring docs to _index.json (#1…
Abdkhan14 Jul 23, 2024
1f40a8f
fix(RN): typo in RN snippet (#10809)
kahest Jul 23, 2024
a1ed83a
Update SDK docs (#10720)
stephanie-anderson Jul 23, 2024
7c3b707
ci: bump dependency review action (#10812)
mdtro Jul 23, 2024
97672e3
Fixed direct links styling on medium screen sized (#10800)
JLuse Jul 23, 2024
7cc1f4e
Docs for errors only self hosted (#10811)
hubertdeng123 Jul 23, 2024
05ba44d
fix(replay): integrations pluralized (#10813)
bruno-garcia Jul 24, 2024
12dd357
feat(python): Add disabled_integrations config option (#10808)
sentrivana Jul 24, 2024
2dc857d
fix: Exclude code snippets with injects from formatting (#10806)
chargome Jul 24, 2024
36ac13b
docs(js-integrations): Add snippet for dynamic loading (#10804)
s1gr1d Jul 24, 2024
e86b3e0
ref(node): Show CJS and ESM import versions in dedicated SDK import c…
Lms24 Jul 24, 2024
892f59f
docs change
a-hariti Jul 24, 2024
23ef078
another Change
a-hariti Jul 24, 2024
aa4c323
Remove community supported nest sdk (#10823)
nicohrubec Jul 24, 2024
22dadd1
ref(changelog): Duplicate changelog into workspace package (#10818)
lforst Jul 24, 2024
f41616d
docs(new-trace): Updating performance onboarding checklist content. …
Abdkhan14 Jul 24, 2024
52bd0b4
remove dependency review for global workflow (#10832)
mdtro Jul 24, 2024
71a4453
docs(nestjs): Update nestjs sdk docs with new setup (#10784)
nicohrubec Jul 24, 2024
fb04830
Bump API schema to 7c3bbffc (#10834)
getsentry-release Jul 24, 2024
ce6d620
Bump API schema to 0c6eb6d9 (#10835)
getsentry-release Jul 24, 2024
a7f0a5b
ci(changelog): Fix Vercel deployment (#10825)
lforst Jul 25, 2024
4e5cd81
feat(changelog): Remove `/changelog` basepath (#10842)
lforst Jul 25, 2024
5c76a0b
Merge branch 'master' into test-404-linter-2
a-hariti Jul 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.babelrc.js
apps/changelog
14 changes: 4 additions & 10 deletions .github/workflows/algolia-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,11 @@ jobs:
# and save some build time.
- run: rm -r app/changelog

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

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

# 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

# build docs index
- run: bun ./scripts/algolia.ts
- name: Build index for user docs
run: yarn build && bun ./scripts/algolia.ts
if: steps.filter.outputs.docs == 'true'
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
Expand All @@ -56,8 +50,8 @@ jobs:
NEXT_PUBLIC_ALGOLIA_APP_ID: ${{ secrets.NEXT_PUBLIC_ALGOLIA_APP_ID }}
NEXT_PUBLIC_ALGOLIA_SEARCH_KEY: ${{ secrets.NEXT_PUBLIC_ALGOLIA_SEARCH_KEY }}

# build dev docs index
- run: bun ./scripts/algolia.ts
- name: Build index for developer docs
run: yarn build:developer-docs && bun ./scripts/algolia.ts
if: steps.filter.outputs.dev-docs == 'true'
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/cleanup-preview-deployments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Delete Stale Vercel Preview Deployments

on:
# Run the workflow daily at 2:00 AM UTC
schedule:
- cron: '0 2 * * *'
# Allows manual triggering of the workflow
workflow_dispatch:

jobs:
delete-stale-deployments:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Run cleanup script for user docs
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_USER_DOCS }}
VERCEL_API_TOKEN: ${{ secrets.VERCEL_API_TOKEN }}
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
run: bun scripts/preview-deployment-cleanup.ts

- name: Run cleanup script for developer docs
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_DEVELOP_DOCS }}
VERCEL_API_TOKEN: ${{ secrets.VERCEL_API_TOKEN }}
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
run: bun scripts/preview-deployment-cleanup.ts
19 changes: 0 additions & 19 deletions .github/workflows/dependency-review.yml

This file was deleted.

2 changes: 2 additions & 0 deletions app/changelog/feed.xml/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ export async function GET() {
allChangelogs.map(changelog => {
return feed.item({
title: changelog.title,
// @ts-expect-error TODO(lforst): This is broken for some reason
description: changelog.summary,
url: `https://sentry.io/changelog/${changelog.slug}`,
categories:
changelog.categories.map(category => {
return category.name;
}) || [],
// @ts-expect-error TODO(lforst): This is broken for some reason
date: changelog.publishedAt,
});
});
Expand Down
5 changes: 3 additions & 2 deletions app/platform-redirect/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {notFound, redirect} from 'next/navigation';
import {redirect} from 'next/navigation';

import {DocPage} from 'sentry-docs/components/docPage';
import {PlatformIcon} from 'sentry-docs/components/platformIcon';
Expand Down Expand Up @@ -27,7 +27,8 @@ export default async function Page({
});

if (platformList.length === 0) {
return notFound();
// try to redirect the user to the page directly, might result in 404
return redirect(next);
}

const requestedPlatform = Array.isArray(platform) ? platform[0] : platform;
Expand Down
8 changes: 8 additions & 0 deletions apps/changelog/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# rename this file to .env and supply the values listed below
# also make sure they are available to the build tool (e.g. Vercel/Netlify)
# warning: variables prefixed with NEXT_PUBLIC_ will be made available to client-side code
# be careful not to expose sensitive data

DATABASE_URL=postgresql://postgres:postgres@localhost:5432/changelog
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=secret
41 changes: 41 additions & 0 deletions apps/changelog/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# dotenv environment variables file
.env
.env.development
36 changes: 36 additions & 0 deletions apps/changelog/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
16 changes: 16 additions & 0 deletions apps/changelog/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.7'
services:
postgres:
container_name: changelog_postgres
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data/
volumes:
postgres_data:
11 changes: 11 additions & 0 deletions apps/changelog/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {withSentryConfig} from '@sentry/nextjs';

const nextConfig = {
trailingSlash: true,
eslint: {
ignoreDuringBuilds: true,
},
transpilePackages: ['next-mdx-remote'],
};

export default withSentryConfig(nextConfig);
58 changes: 58 additions & 0 deletions apps/changelog/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"name": "sentry-changelog",
"version": "1.0.0",
"description": "The Sentry changelog application",
"main": "index.js",
"repository": "https://github.com/getsentry/sentry-docs",
"author": "getsentry",
"license": "FSL-1.1-Apache-2.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "prisma generate && next build",
"start": "next start",
"lint": "next lint",
"migrate:dev": "dotenv -e .env.development -- yarn prisma migrate reset"
},
"dependencies": {
"rehype-prism-plus": "^1.6.3",
"rehype-slug": "^6.0.0",
"@auth/prisma-adapter": "^1.2.0",
"nextjs-toploader": "^1.6.6",
"prism-sentry": "^1.0.2",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/themes": "^2.0.3",
"@sentry/nextjs": "^8.8.0",
"@google-cloud/storage": "^7.7.0",
"@prisma/client": "^5.8.1",
"next": "^14.2.5",
"next-auth": "^4.24.5",
"next-mdx-remote": "^4.4.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-select": "^5.7.3",
"sass": "^1.69.5",
"react-textarea-autosize": "^8.5.3",
"rss": "^1.2.2",
"textarea-markdown-editor": "^1.0.4"
},
"devDependencies": {
"autoprefixer": "^10.4.17",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18.3.0",
"prisma": "^5.8.1",
"@types/rss": "^0.0.32",
"eslint": "^8",
"eslint-config-next": "^14.2.5",
"postcss": "^8.4.33",
"@tailwindcss/forms": "^0.5.7",
"tailwindcss": "^3.4.1",
"@tailwindcss/typography": "^0.5.10",
"typescript": "^5"
},
"volta": {
"extends": "../../package.json"
}
}
11 changes: 11 additions & 0 deletions apps/changelog/postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
tailwindcss: {},
autoprefixer: {},
},
};

export default config;
Loading