diff --git a/platform-includes/llm-rules-logs/javascript.nextjs.mdx b/platform-includes/llm-rules-logs/javascript.nextjs.mdx index 335b551fdc95e..541cac7f1d7be 100644 --- a/platform-includes/llm-rules-logs/javascript.nextjs.mdx +++ b/platform-includes/llm-rules-logs/javascript.nextjs.mdx @@ -1,4 +1,4 @@ - + When created as a rules file this should be placed alongside other editor specific rule files. For example, if you are using Cursor, place this file in the `.cursorrules` directory. diff --git a/platform-includes/llm-rules-logs/javascript.node.mdx b/platform-includes/llm-rules-logs/javascript.node.mdx index 8ffec8ada0cee..87bf2b2bdbb2c 100644 --- a/platform-includes/llm-rules-logs/javascript.node.mdx +++ b/platform-includes/llm-rules-logs/javascript.node.mdx @@ -1,4 +1,4 @@ - + When created as a rules file this should be placed alongside other editor specific rule files. For example, if you are using Cursor, place this file in the `.cursorrules` directory. diff --git a/platform-includes/llm-rules-logs/javascript.react.mdx b/platform-includes/llm-rules-logs/javascript.react.mdx index fd3f2a014b3ef..8e74806e70f0c 100644 --- a/platform-includes/llm-rules-logs/javascript.react.mdx +++ b/platform-includes/llm-rules-logs/javascript.react.mdx @@ -1,4 +1,4 @@ - + When created as a rules file this should be placed alongside other editor specific rule files. For example, if you are using Cursor, place this file in the `.cursorrules` directory. diff --git a/platform-includes/llm-rules-platform/_default.mdx b/platform-includes/llm-rules-platform/_default.mdx index 3c8101b39b329..30aecb702dedf 100644 --- a/platform-includes/llm-rules-platform/_default.mdx +++ b/platform-includes/llm-rules-platform/_default.mdx @@ -1,4 +1,4 @@ - + Sentry provides a set of rules you can use to help your LLM use Sentry correctly. Copy this file and add it to your projects rules configuration. When created as a rules file this should be placed alongside other editor specific rule files. For example, if you are using Cursor, place this file in the `.cursorrules` directory. diff --git a/platform-includes/llm-rules-platform/javascript.nextjs.mdx b/platform-includes/llm-rules-platform/javascript.nextjs.mdx index e35b90e99f9f1..1caf400252669 100644 --- a/platform-includes/llm-rules-platform/javascript.nextjs.mdx +++ b/platform-includes/llm-rules-platform/javascript.nextjs.mdx @@ -1,4 +1,4 @@ - + Sentry provides a set of rules you can use to help your LLM use Sentry correctly. Copy this file and add it to your projects rules configuration. When created as a rules file this should be placed alongside other editor specific rule files. For example, if you are using Cursor, place this file in the `.cursorrules` directory. diff --git a/platform-includes/llm-rules-platform/javascript.node.mdx b/platform-includes/llm-rules-platform/javascript.node.mdx index 6fcee9a13fada..7e9091691bf50 100644 --- a/platform-includes/llm-rules-platform/javascript.node.mdx +++ b/platform-includes/llm-rules-platform/javascript.node.mdx @@ -1,4 +1,4 @@ - + Sentry provides a set of rules you can use to help your LLM use Sentry correctly. Copy this file and add it to your projects rules configuration. When created as a rules file this should be placed alongside other editor specific rule files. For example, if you are using Cursor, place this file in the `.cursorrules` directory. diff --git a/platform-includes/llm-rules-platform/javascript.react.mdx b/platform-includes/llm-rules-platform/javascript.react.mdx index 0563337e727b2..c4a25b644b6b6 100644 --- a/platform-includes/llm-rules-platform/javascript.react.mdx +++ b/platform-includes/llm-rules-platform/javascript.react.mdx @@ -1,4 +1,4 @@ - + Sentry provides a set of rules you can use to help your LLM use Sentry correctly. Copy this file and add it to your projects rules configuration. When created as a rules file this should be placed alongside other editor specific rule files. For example, if you are using Cursor, place this file in the `.cursorrules` directory. diff --git a/src/components/docPage/index.tsx b/src/components/docPage/index.tsx index 5eabf0cebb79a..03a72a6a7024f 100644 --- a/src/components/docPage/index.tsx +++ b/src/components/docPage/index.tsx @@ -89,6 +89,7 @@ export function DocPage({ rel="nofollow" className="float-right" href={`/${pathname}.md`} + data-mdast="ignore" title="Markdown version of this page" > diff --git a/src/components/expandable/index.tsx b/src/components/expandable/index.tsx index 0e9fa1b06941d..66364b877aed9 100644 --- a/src/components/expandable/index.tsx +++ b/src/components/expandable/index.tsx @@ -6,7 +6,7 @@ import * as Sentry from '@sentry/nextjs'; import {usePlausibleEvent} from 'sentry-docs/hooks/usePlausibleEvent'; -// explicitly not usig CSS modules here +// explicitly not using CSS modules here // because there's some prerendered content that depends on these exact class names import '../callout/styles.scss'; import styles from './style.module.scss'; @@ -17,6 +17,8 @@ type Props = { copy?: boolean; /** If defined, the expandable will be grouped with other expandables that have the same group. */ group?: string; + // If true, the expandable will not be rendered in the markdown version of the page + hideFromMd?: boolean; level?: 'info' | 'warning' | 'success'; permalink?: boolean; }; @@ -35,6 +37,7 @@ export function Expandable({ permalink, group, copy, + hideFromMd = false, }: Props) { const id = permalink ? slugify(title) : undefined; @@ -155,6 +158,7 @@ export function Expandable({ open={isExpanded} onToggle={toggleIsExpanded} id={id} + {...(hideFromMd ? {'data-mdast': 'ignore'} : {})} >