Skip to content

Commit

Permalink
add basic syntax highlighting using highlightjs
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Jun 13, 2024
1 parent 7bfec50 commit 4eeaef2
Show file tree
Hide file tree
Showing 6 changed files with 3,149 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/PackageRegistryService/PackageRegistryService.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

<ItemGroup>
<Folder Include="Migrations\" />
<Folder Include="wwwroot\css\" />
<Folder Include="wwwroot\js\" />
<None Include="StagingArea\**" />
</ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/PackageRegistryService/Pages/Components/Layout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public static string Render(string activeNavbarItem, string title, string conten
<meta name=""viewport"" content=""width=device-width, initial-scale=1"">
<meta name=""color-scheme"" content=""light dark"" />
<link rel=""stylesheet"" href=""/css/pico.cyan.min.css"" />
<link rel=""stylesheet"" href=""/css/highlightjs.atom-one-dark.min.css"" />
<script src=""/js/highlight.min.js""></script>
<script>hljs.highlightAll();</script>
<title>{title}</title>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions src/PackageRegistryService/Pages/Components/Package.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int downloads
<h4>Install with <a href=""https://github.com/nfdi4plants/arc-validate"">arc-validate</a></h4>
<pre><code> arc-validate package install {packageName} --package-version {packageVersion}</code></pre>
<h4>Include in a <a href=""https://doi.org/10.1111/tpj.16474"">PLANTDataHUB CQC pipeline</a></h4>
<pre><code>validation_packages:
<pre><code class=""language-yaml"">validation_packages:
- name: {packageName}
version: {packageVersion}</code></pre>
</section>
Expand All @@ -53,7 +53,7 @@ int downloads
<hr />
<details>
<summary role=""button"" class=""primary"">Browse code (v{packageVersion})</summary>
<pre><code>{System.Security.SecurityElement.Escape(packageContent)}</code></pre>
<pre><code class=""language-fsharp"">{System.Security.SecurityElement.Escape(packageContent)}</code></pre>
</details>
<hr />
<details>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,553 changes: 2,551 additions & 2 deletions src/PackageRegistryService/wwwroot/css/pico.cyan.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 4eeaef2

Please sign in to comment.