Skip to content

Commit

Permalink
add razor syntax highlighting on source code
Browse files Browse the repository at this point in the history
  • Loading branch information
iJungleboy committed Dec 9, 2024
1 parent fd1a83d commit 1c1c50f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docs-src/pages/dev/themes/oqtane-theme-code-explained.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Important things to know:
1. Blazor components such as `<NavMenu />` or `<Login />`


```html
```razor
@namespace Oqtane.Theme.Arsha
@inherits ThemeBase
@inject NavigationManager NavigationManager
Expand Down Expand Up @@ -194,7 +194,7 @@ Here's what you should know:
1. The `@code` block can contain C# code that is executed when the component is rendered
1. The HTML parts with the same possibilities as the theme above.

```html
```razor
@namespace Oqtane.Theme.Arsha
@inherits ContainerBase
@inject ISettingService SettingService
Expand Down Expand Up @@ -246,7 +246,7 @@ Here's an example of the [NavMenu.razor](https://github.com/oqtane/Oqtane.Theme.

It doesn't do much, but check if the menu should show, and then calls the `NavMenuItems` component.

```html
```razor
@namespace Oqtane.Theme.Arsha
@inherits MenuBase
Expand All @@ -261,7 +261,7 @@ It doesn't do much, but check if the menu should show, and then calls the `NavMe
The [NavMenuItems.razor](https://github.com/oqtane/Oqtane.Theme.Arsha/blob/main/Client/Components/NavMenuItems.razor)
is way more complex, as it recursively calls itself to render the menu items.

```html
```razor
@namespace Oqtane.Theme.Arsha
@inherits MenuItemsBase
Expand Down
1 change: 0 additions & 1 deletion docs-src/pages/guides/installation/maui-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public static class MauiConstants
// specify if you wish to allow users to override the url via appsettings.json in the AppDataDirectory
public static bool UseAppSettings = true;
}

```

For local development you may set this as shown in the image below by commenting/uncommenting lines.
Expand Down
8 changes: 4 additions & 4 deletions docs/dev/themes/oqtane-theme-code-explained.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h2 id="the-theme-file">The Theme File</h2>
</ol>
</li>
</ol>
<pre><code class="lang-html">@namespace Oqtane.Theme.Arsha
<pre><code class="lang-razor">@namespace Oqtane.Theme.Arsha
@inherits ThemeBase
@inject NavigationManager NavigationManager
@inject ISettingService SettingService
Expand Down Expand Up @@ -274,7 +274,7 @@ <h2 id="the-container-file">The Container File</h2>
<li>The <code>@code</code> block can contain C# code that is executed when the component is rendered</li>
<li>The HTML parts with the same possibilities as the theme above.</li>
</ol>
<pre><code class="lang-html">@namespace Oqtane.Theme.Arsha
<pre><code class="lang-razor">@namespace Oqtane.Theme.Arsha
@inherits ContainerBase
@inject ISettingService SettingService

Expand Down Expand Up @@ -321,7 +321,7 @@ <h2 id="blazor-components">Blazor Components</h2>
<p>In addition to the required minimum files, you can also include other Blazor components.
Here's an example of the <a href="https://github.com/oqtane/Oqtane.Theme.Arsha/blob/main/Client/Components/NavMenu.razor">NavMenu.razor</a>.</p>
<p>It doesn't do much, but check if the menu should show, and then calls the <code>NavMenuItems</code> component.</p>
<pre><code class="lang-html">@namespace Oqtane.Theme.Arsha
<pre><code class="lang-razor">@namespace Oqtane.Theme.Arsha

@inherits MenuBase

Expand All @@ -333,7 +333,7 @@ <h2 id="blazor-components">Blazor Components</h2>
</code></pre>
<p>The <a href="https://github.com/oqtane/Oqtane.Theme.Arsha/blob/main/Client/Components/NavMenuItems.razor">NavMenuItems.razor</a>
is way more complex, as it recursively calls itself to render the menu items.</p>
<pre><code class="lang-html">@namespace Oqtane.Theme.Arsha
<pre><code class="lang-razor">@namespace Oqtane.Theme.Arsha
@inherits MenuItemsBase

&lt;ul&gt;
Expand Down
1 change: 0 additions & 1 deletion docs/guides/installation/maui-setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ <h3 id="3-edit-the-mauiconstantscs-file-option-1">3. Edit the <code>MauiConstant
// specify if you wish to allow users to override the url via appsettings.json in the AppDataDirectory
public static bool UseAppSettings = true;
}

</code></pre>
<p>For local development you may set this as shown in the image below by commenting/uncommenting lines.</p>
<p><img src="../../pages/guides/installation/assets/maui-set-local-development-url.png" alt="Maui Constants"></p>
Expand Down
20 changes: 20 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4253,6 +4253,26 @@
},
"version": ""
},
{
"type": "Resource",
"source_relative_path": "node_modules/@gerrit0/mini-shiki/static/mini-shiki-dependency-tree.svg",
"output": {
"resource": {
"relative_path": "node_modules/@gerrit0/mini-shiki/static/mini-shiki-dependency-tree.svg"
}
},
"version": ""
},
{
"type": "Resource",
"source_relative_path": "node_modules/@gerrit0/mini-shiki/static/shiki-dependency-tree.svg",
"output": {
"resource": {
"relative_path": "node_modules/@gerrit0/mini-shiki/static/shiki-dependency-tree.svg"
}
},
"version": ""
},
{
"type": "Conceptual",
"source_relative_path": "pages/api/index.md",
Expand Down
3 changes: 2 additions & 1 deletion docs/public/main.js

Large diffs are not rendered by default.

0 comments on commit 1c1c50f

Please sign in to comment.