Skip to content

Commit fa2ff0e

Browse files
docs: Add {mdExpandTabs} where code snippet tabs differ (#17909)
## DESCRIBE YOUR PR ⚠️ Needs this for CI to not fail anymore: #17941 By default, only the first code snippet is included in the generated `.md`. This PR adds `{mdExpandTabs}` to snippets, where each tab is relevant for the LLM context. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent 7796c1f commit fa2ff0e

124 files changed

Lines changed: 179 additions & 179 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/platforms/android/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Sentry captures data by using an SDK within your application's runtime. These ar
5252

5353
We recommend installing the SDK through our [Sentry Wizard](https://github.com/getsentry/sentry-wizard) by running one of the following commands inside your project directory:
5454

55-
```bash {tabTitle:brew}
55+
```bash {tabTitle:brew} {mdExpandTabs}
5656
brew install getsentry/tools/sentry-wizard && sentry-wizard -i android
5757
```
5858

docs/platforms/android/integrations/spotlight/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you need Spotlight in all build types, use `implementation` instead of `debug
2323

2424
## Configure
2525

26-
```xml {tabTitle:XML}
26+
```xml {tabTitle:XML} {mdExpandTabs}
2727
<application>
2828
<!-- Enable Spotlight -->
2929
<meta-data android:name="io.sentry.spotlight.enable" android:value="true" />

docs/platforms/android/session-replay/configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If you've configured `networkDetailAllowUrls` but don't see request/response bod
5656

5757
</Alert>
5858
Any URL matching the given pattern(s) will then be captured with additional details:
59-
```kotlin {tabTitle:Kotlin}
59+
```kotlin {tabTitle:Kotlin} {mdExpandTabs}
6060
SentryAndroid.init(this) { options ->
6161
options.sessionReplay.networkDetailAllowUrls = listOf("https://example.com")
6262
}

docs/platforms/android/troubleshooting/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434
The Sentry Android SDK may trigger ANRs or StrictMode violations due to minimal file I/O operations required for event processing and context collection.
3535
Since version `6.1.1` of the Sentry SDK for Android you can reduce violations by disabling additional context collection:
3636

37-
```xml {tabTitle:AndroidManifest.xml}
37+
```xml {tabTitle:AndroidManifest.xml} {mdExpandTabs}
3838
<application>
3939
<meta-data android:name="io.sentry.additional-context" android:value="false" />
4040
</application>

docs/platforms/dart/guides/flutter/enriching-events/viewhierarchy/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If you want to capture view hierarchies regardless of the debounce, you can igno
3232

3333
</Alert>
3434

35-
```dart {tabTitle: Respect debounce} {2-9}
35+
```dart {tabTitle: Respect debounce} {mdExpandTabs} {2-9}
3636
await SentryFlutter.init((options) {
3737
options.beforeCaptureViewHierarchy = (event, hint, shouldDebounce) async {
3838
// If debounce is active, skip capturing

docs/platforms/dart/guides/flutter/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Sentry captures data by using an SDK within your application's runtime. These ar
4343

4444
We recommend installing the SDK through our [Sentry Wizard](https://github.com/getsentry/sentry-wizard) by running one of the following commands inside your project directory:
4545

46-
```bash {tabTitle:brew}
46+
```bash {tabTitle:brew} {mdExpandTabs}
4747
brew install getsentry/tools/sentry-wizard && sentry-wizard -i flutter
4848
```
4949

docs/platforms/dotnet/guides/aspnetcore/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The simplest way to initialize Sentry in ASP.NET Core is by using the `UseSentry
3838

3939
When configuring the SDK via the frameworks configuration system, it's possible to add the SDK by simply calling `UseSentry` without providing any further information. The SDK provides this as extension methods to support ASP.NET Core `2.X`, `3.X`, and `5.X` and later:
4040

41-
```csharp {tabTitle:WebApplication}
41+
```csharp {tabTitle:WebApplication} {mdExpandTabs}
4242
var builder = WebApplication.CreateBuilder(args);
4343
builder.WebHost.UseSentry(); // Initialize Sentry
4444
```
@@ -95,7 +95,7 @@ Setting `TracesSampleRate` to `1.0` in this example configures Sentry to capture
9595

9696
It's also possible to bind properties to the SDK via environment variables, like:
9797

98-
```shell {tabTitle:Windows}
98+
```shell {tabTitle:Windows} {mdExpandTabs}
9999
set Sentry__Debug=true
100100
```
101101

docs/platforms/godot/configuration/stack-traces.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Ensure you have a compatible C++ compiler. On Windows, for instance, you can use
2020

2121
Here are a few ways to install the **SCons** build tool:
2222

23-
```PowerShell {tabTitle:Windows}
23+
```PowerShell {tabTitle:Windows} {mdExpandTabs}
2424
# If you have `scoop` installed:
2525
scoop install scons
2626
```
@@ -73,7 +73,7 @@ For Android compilation, Godot requires the Swappy frame pacing library. Downloa
7373

7474
To compile the Godot export templates with debug symbols, run the following commands:
7575

76-
```bash {tabTitle:Windows/Linux}
76+
```bash {tabTitle:Windows/Linux} {mdExpandTabs}
7777
scons target=template_release production=yes debug_symbols=yes separate_debug_symbols=yes
7878
```
7979

@@ -169,7 +169,7 @@ In order to get readable stack traces in Sentry, you also need to upload your de
169169

170170
<Expandable title="Installing Sentry CLI">
171171

172-
```PowerShell {tabTitle:Windows}
172+
```PowerShell {tabTitle:Windows} {mdExpandTabs}
173173
# On Windows, if you have `scoop` installed:
174174
scoop install sentry-cli
175175
```
@@ -219,7 +219,7 @@ For iOS projects, you must export your project to a directory first, then run th
219219

220220
You can also create the source bundles separately from the upload step by running:
221221

222-
```PowerShell {tabTitle:Windows}
222+
```PowerShell {tabTitle:Windows} {mdExpandTabs}
223223
sentry-cli debug-files bundle-sources bin\godot.windows.template_release.x86_64.pdb
224224
sentry-cli debug-files bundle-sources bin\godot.windows.template_release.x86_64.console.pdb
225225
```

docs/platforms/java/common/async/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Sentry's SDK for Java stores the scope and the context in a thread-local variabl
1414

1515
To propagate Sentry scope to Spring MVC methods returning a `Callable` or a `StreamingResponseBody`, a `ThreadPoolTaskExecutor` decorated with `SentryTaskDecorator` must be set on the `AsyncSupportConfigurer` through an implementation of `WebMvcConfigurer`:
1616

17-
```java {tabTitle:Java (Spring 5)}
17+
```java {tabTitle:Java (Spring 5)} {mdExpandTabs}
1818
import org.springframework.context.annotation.Configuration;
1919
import org.springframework.core.task.AsyncTaskExecutor;
2020
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
@@ -168,7 +168,7 @@ class AsyncWebMvcConfiguration : WebMvcConfigurer {
168168

169169
Alternatively, if there is a single bean of type `TaskDecorator` in the context, instead of custom `WebMvcConfigurer`, it is enough to create a `SentryTaskDecorator` bean.
170170

171-
```java {tabTitle:Java (Spring 5)}
171+
```java {tabTitle:Java (Spring 5)} {mdExpandTabs}
172172
import org.springframework.context.annotation.Bean;
173173
import org.springframework.context.annotation.Configuration;
174174

@@ -264,7 +264,7 @@ class SentryConfig {
264264

265265
To propagate Sentry scope to Spring `@Async` annotated methods, a custom `AsyncConfigurerSupport` must be configured to return a `ThreadPoolTaskExecutor` decorated with `SentryTaskDecorator`:
266266

267-
```java {tabTitle:Java (Spring 5)}
267+
```java {tabTitle:Java (Spring 5)} {mdExpandTabs}
268268
import org.springframework.context.annotation.Configuration;
269269
import org.springframework.scheduling.annotation.AsyncConfigurerSupport;
270270
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

docs/platforms/java/common/integrations/graphql.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you're using version 22 of `graphql-java`, please refer to <PlatformLink to="
2424

2525
To install use:
2626

27-
```groovy {tabTitle:Gradle Plugin}
27+
```groovy {tabTitle:Gradle Plugin} {mdExpandTabs}
2828
plugins {
2929
id "io.sentry.jvm.gradle" version "{{@inject packages.version('sentry.java.android.gradle-plugin', '3.12.0') }}"
3030
}

0 commit comments

Comments
 (0)