Skip to content

Commit fc5b8d9

Browse files
VelinovAngelnikolay-nenkov
authored andcommitted
Fix some REPL to codeblocks
1 parent b8372bd commit fc5b8d9

20 files changed

+38
-38
lines changed

components/grid/grouping/aggregates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ To enable aggregates:
195195

196196
<div class="skip-repl"></div>
197197

198-
```CS
198+
````CS
199199
private async Task OnGridRead(GridReadEventArgs args)
200200
{
201201
DataSourceResult result = AllGridData.ToDataSourceResult(args.Request);
@@ -204,7 +204,7 @@ private async Task OnGridRead(GridReadEventArgs args)
204204
args.Total = result.Total;
205205
args.AggregateResults = result.AggregateResults;
206206
}
207-
```
207+
````
208208

209209

210210
## See Also

components/grid/manual-operations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ When using [aggregates]({%slug grid-aggregates%}) with `OnRead`, the Grid expect
294294

295295
<div class="skip-repl"></div>
296296

297-
```CS
297+
````CS
298298
private async Task OnGridRead(GridReadEventArgs args)
299299
{
300300
DataSourceResult result = AllGridData.ToDataSourceResult(args.Request);
@@ -303,7 +303,7 @@ private async Task OnGridRead(GridReadEventArgs args)
303303
args.Total = result.Total;
304304
args.AggregateResults = result.AggregateResults;
305305
}
306-
```
306+
````
307307

308308

309309
## Get Information From the DataSourceRequest

components/rangeslider/decimals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ position: 7
1212

1313
The RangeSlider uses this property to determine how many decimals to take and set to the value when calculating the differences between the min and max, and the steps. You can see an [example of wrong setup and the issue it can cause](#decimals-and-rounding-errors) below. Here is a simple example of the mathematical operation and how you can see unexpected floating numbers that could, at least to an extent, be avoided if you use high-precision number types such as decimal:
1414

15-
````C#
15+
````C#.skip-repl
1616
Math equation: 0.6 / 0.2
1717
Output: 2.9999999999999996
1818

components/slider/decimals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ position: 7
1212

1313
The Slider uses this property to determine how many decimals to take and set to the value when calculating the differences between the min and max, and the steps. You can see an [example of wrong setup and the issue it can cause](#decimals-and-rounding-errors) below. Here is a simple example of the mathematical operation and how you can see unexpected floating numbers that could, at least to an extent, be avoided if you use high-precision number types such as decimal:
1414

15-
````C#
15+
````C#.skip-repl
1616
Math equation: 0.6 / 0.2
1717
Output: 2.9999999999999996
1818

components/window/position.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ The `Centered` parameter determines if the Window displays centered in the viewp
2525

2626
A centered Window applies the following CSS styles, which maintain the centered position even if the viewport size changes:
2727

28-
```CSS
28+
````CSS.skip-repl
2929
.k-centered {
3030
top: 50%;
3131
left: 50%;
3232
transform: translate(-50%, -50%);
3333
}
34-
```
34+
````
3535

3636
If the `Top` or `Left` parameters are set and not empty, they take precedence over `Centered`. To center the Window dynamically through its `Centered` parameter, bind the `Top` and `Left` parameters too, so you can reset them to `string.Empty` or `null`.
3737

deployment/ci-cd-build-server.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ A way to pass them along is to mark them as environment variables. You can find
6969

7070
>caption Example of setting GitHub Secrets into Environment Variables for Telerik Login
7171
72-
````YAML
72+
````YAML.skip-repl
7373
jobs:
7474
build:
7575
runs-on: windows-latest
@@ -86,7 +86,7 @@ Finally, you need a `NuGet.Config` file that lists the Telerik server in the `pa
8686

8787
>caption Example of Using Environment Variables in NuGet.config
8888
89-
````XML
89+
````XML.skip-repl
9090
<packageSources>
9191
<clear />
9292
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
@@ -114,7 +114,7 @@ When building or restoring Blazor apps in Docker, the crucial steps are:
114114

115115
The following code is the build portion of a sample `Dockerfile` that builds a .NET 8 Blazor Web App with two projects. The `dotnet restore` command is executed from the `src` folder of the Docker image (where the `NuGet.Config` is copied), so that the `NuGet.Config` file can be used to restore all projects in the solution.
116116

117-
````SH
117+
````SH.skip-repl
118118
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
119119
WORKDIR /src
120120

globalization/localization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Register your custom Telerik localization service in `Program.cs` after `builder
119119
120120
<div class="skip-repl"></div>
121121

122-
```CS
122+
````CS
123123
using Telerik.Blazor.Services;
124124
using ServerLocalizationResx.Services;
125125

@@ -128,7 +128,7 @@ builder.Services.AddTelerikBlazor();
128128

129129
// Register the custom Telerik localization service
130130
builder.Services.AddSingleton(typeof(ITelerikStringLocalizer), typeof(SampleResxLocalizer));
131-
```
131+
````
132132

133133
### Step 5: Inject Your Localization Service
134134

knowledge-base/common-css-isolation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ I want to leverage CSS isolation in my projects but am finding that it doesn't w
3131

3232
2. Add a CSS rule to the scoped styles, such as a font size change.
3333

34-
````CSS
34+
````CSS.skip-repl
3535
.my-component-button-class {
3636
font-size: 20px !important;
3737
}
@@ -90,7 +90,7 @@ There are two ways to go around this:
9090

9191
>caption Sample CSS selector that uses `::deep` to cascade for nested components
9292
93-
````CSS
93+
````CSS.skip-repl
9494
.my-component-button-class,
9595
::deep .my-component-button-class {
9696
font-size: 20px !important;

knowledge-base/common-null-value-parameter-format.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ I am getting an error when I am using a Telerik Blazor component in an applicati
2929

3030
The exact error message can vary. Here are just a few examples:
3131

32-
````C#
32+
````C#.skip-repl
3333
Unhandled exception rendering component: Value cannot be null. (Parameter 'format')
3434
````
3535

36-
````C#
36+
````C#.skip-repl
3737
System.ArgumentNullException: Value cannot be null. (Parameter 'format')
3838
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
3939
at System.String.Format(String format, Object arg0, Object arg1)
4040
at Telerik.Blazor.Components.TelerikWizard.get_PagerMessage()
4141
````
4242

43-
````C#
43+
````C#.skip-repl
4444
System.ArgumentNullException: Value cannot be null. (Parameter 'format')
4545
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
4646
at Telerik.Blazor.Components.Common.Filters.FilterMenu.TelerikFilterMenu.get_FilterMenuSettingsLabel()

knowledge-base/common-package-telerik-pivot-not-compatible-with-netframework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This knowledge base article deals with the following issues:
3232

3333
## Error Message
3434

35-
````C#
35+
````C#.skip-repl
3636
The nuget command failed with exit code and error
3737
3838
NU1202: Package Telerik.Pivot.Core 0.1.1 is not compatible with net80 (.NETFramework,Version=v8.0). Package Telerik.Pivot.Core 0.1.1 supports: netstandard2.1 (.NETStandard,Version=v2.1)

0 commit comments

Comments
 (0)