telerik/docs-seed

Integrate Blazor Repl in documentation

Closed this issue · 2 comments

Requirements

Based on the Blazor Repl instruction, we might be able to deliver live editing capabilities and will sync the requirements. Until then, the requirements are for integrating tabstrip and Open with Repl functionality.

To enable adding REPL to code snippets, you need to add enable_blazorRepl: true in the _config.yml file.

With 46e4a47 commit, certain snippets can be skipped from adding the REPL buttons.

To do that, add a <div class="skip-repl"></div> right before the snippet. Example:

<div class="skip-repl"></div>
````C#
var foo= 5;
````
````VB.NET
Dim foo = 5
````

some text
some other text

<div class="skip-repl"></div>
````C#
var skipRepl = true
````