Skip to content

Commit 129f0c0

Browse files
a-haritibitsandfoxes
authored andcommitted
fix onboarding lines contributing docs (#13475)
1 parent e1711f2 commit 129f0c0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/contributing/pages/components.mdx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ Render an expandable section to provide additional information to users on deman
131131
</Expandable>
132132

133133
<Expandable title="Expandable with a code block">
134-
```js
135-
const foo = 'bar';
136-
```
134+
```js const foo = 'bar'; ```
137135
</Expandable>
138136

139137
```markdown {tabTitle:Example}
@@ -380,11 +378,17 @@ Attributes:
380378

381379
If you're writing product feature specific docs, you can specify markers within code blocks that enable or disable certain parts of snippets:
382380

381+
<Alert title="warning">
382+
Do not copy the following code snippet, the `___PRODUCT_OPTION_START___` and
383+
`___PRODUCT_OPTION_END___` markers have an extra character (zero width space)
384+
as a workaround to make them show up correctly in the example.
385+
</Alert>
386+
383387
````markdown
384388
```go
385-
// ___PRODUCT_OPTION_START___ performance
389+
// _​__PRODUCT_OPTION_START___ performance
386390
// your code here
387-
// ___PRODUCT_OPTION_END___ performance
391+
// _​__PRODUCT_OPTION_END___ performance
388392
```
389393
````
390394

@@ -395,7 +399,6 @@ the syntax uses the standard comment style of the programming language you're do
395399

396400
where `feature` is the feature id (e.g. `performance`, `profiling` or `session-replay`).
397401

398-
399402
The range visibility will be controlled by the `OnboardingOptionButtons` component:
400403

401404
```jsx diff

0 commit comments

Comments
 (0)