diff --git a/LICENSING.md b/LICENSING.md index 6f7fb32..e5ac48d 100644 --- a/LICENSING.md +++ b/LICENSING.md @@ -72,6 +72,8 @@ The website MIT grant does not replace any dependency's license. | --- | --- | | `Redot-Documentation/wwwroot/lib/bootstrap/` (Bootstrap 5.3.3) | MIT, Copyright (c) 2011-2024 The Bootstrap Authors; [full text](Redot-Documentation/wwwroot/lib/bootstrap/LICENSE.txt) | | `Redot-Documentation/wwwroot/lib/prism/` (Prism) | MIT, Copyright (c) 2012 Lea Verou; [full text](Redot-Documentation/wwwroot/lib/prism/LICENSE.txt) | +| `Redot-Documentation/wwwroot/fonts/geist/` (Geist) | SIL OFL 1.1, Copyright 2024 The Geist Project Authors; [full text](Redot-Documentation/wwwroot/fonts/geist/OFL.txt) | +| `Redot-Documentation/wwwroot/fonts/jetbrains-mono/` (JetBrains Mono) | SIL OFL 1.1, Copyright 2020 The JetBrains Mono Project Authors; [full text](Redot-Documentation/wwwroot/fonts/jetbrains-mono/OFL.txt) | | `Redot-Documentation/wwwroot/Icons/Font-Awesome/` | Font Awesome Free: icons CC BY 4.0, fonts SIL OFL 1.1, code MIT, as applicable; [original notice](Redot-Documentation/wwwroot/Icons/Font-Awesome/LICENSE.txt) | | MudBlazor 9.9.0 | MIT; [full notice](Redot-Documentation/wwwroot/licenses/MUDBLAZOR-MIT.txt) | | Markdig 0.41.3 | BSD-2-Clause, Copyright (c) 2018-2019 Alexandre Mutel; [full text](Redot-Documentation/wwwroot/licenses/MARKDIG-BSD-2-CLAUSE.txt), retrieved from the package's source revision `7ff8db9016593b71f9ae17d9b2b053fbd54e9cdf` | diff --git a/Redot-Documentation-Tests/ClassDocumentationComponentTests.cs b/Redot-Documentation-Tests/ClassDocumentationComponentTests.cs index de29268..74c3fc7 100644 --- a/Redot-Documentation-Tests/ClassDocumentationComponentTests.cs +++ b/Redot-Documentation-Tests/ClassDocumentationComponentTests.cs @@ -134,6 +134,33 @@ public async Task Home_LinksToExistingStableDocumentation() Assert.Empty(renderer.Errors); } + [Theory] + [InlineData("/en/26.1/Tutorials/example")] + [InlineData("/en/26.1/Classes")] + public async Task MainLayout_RegistersDockedDrawerWhenNavigatingFromHome(string destination) + { + await using var services = CreateServices(); + var navigation = services.GetRequiredService(); + navigation.NavigateTo("/"); + await using var renderer = new TestRenderer(services); + int id = await renderer.Dispatcher.InvokeAsync(() => renderer.RenderAsync(typeof(MainLayout), ParameterView.Empty)); + + for (int visit = 0; visit < 2; visit++) + { + await renderer.Dispatcher.InvokeAsync(() => navigation.NavigateTo(destination)); + Assert.Empty(renderer.Errors); + string[] classes = await renderer.Dispatcher.InvokeAsync(() => renderer.CssClasses(id).ToArray()); + Assert.True(classes.Contains("mud-drawer-open-responsive-md-left"), + $"Visit {visit}: {string.Join(' ', classes.Where(css => css.StartsWith("mud-drawer")))}"); + + await renderer.Dispatcher.InvokeAsync(() => navigation.NavigateTo("/")); + Assert.DoesNotContain("mud-drawer-open-responsive-md-left", + await renderer.Dispatcher.InvokeAsync(() => renderer.CssClasses(id).ToArray())); + } + + Assert.Empty(renderer.Errors); + } + [Fact] public async Task ClassSearch_FiltersResultsThroughMudInput() { @@ -161,6 +188,42 @@ await renderer.Dispatcher.InvokeAsync(async () => Assert.Empty(renderer.Errors); } + [Fact] + public async Task ClassPage_RendersNavigationForSectionsAndOverloadedMembers() + { + await using var services = CreateServices(); + var catalog = services.GetRequiredService(); + var manager = services.GetRequiredService(); + var navigation = services.GetRequiredService(); + navigation.NavigateTo("/en/26.1/Classes/Node?source=search"); + var node = new ClassDocumentationEntry + { + Name = "Node", + Methods = + [ + new ClassDocumentationCallable { Name = "add_child" }, + new ClassDocumentationCallable { Name = "add_child" } + ] + }; + catalog.Publish(new ClassDocumentationSnapshot(manager.LatestStableVersion, "1234567890abcdef", + DateTimeOffset.UtcNow, new Dictionary { ["Node"] = node })); + + await using var renderer = new TestRenderer(services); + int id = await renderer.Dispatcher.InvokeAsync(() => renderer.RenderAsync(typeof(ClassDocViewer), + ParameterView.FromDictionary(new Dictionary + { ["VersionSlug"] = "26.1", ["ClassName"] = "Node" }))); + + string rendered = await renderer.Dispatcher.InvokeAsync(() => renderer.Text(id)); + string[] hrefs = await renderer.Dispatcher.InvokeAsync(() => renderer.Hrefs(id).ToArray()); + Assert.Contains("desktop-toc", await renderer.Dispatcher.InvokeAsync(() => renderer.CssClasses(id).ToArray())); + Assert.Contains("mobile-toc", await renderer.Dispatcher.InvokeAsync(() => renderer.CssClasses(id).ToArray())); + Assert.Contains("

", rendered); + Assert.Contains("/en/26.1/Classes/Node?source=search#methods", hrefs); + Assert.Contains("/en/26.1/Classes/Node?source=search#method-add-child", hrefs); + Assert.Contains("/en/26.1/Classes/Node?source=search#method-add-child-2", hrefs); + Assert.Empty(renderer.Errors); + } + [Theory] [InlineData(null)] [InlineData("Node")] @@ -411,11 +474,19 @@ protected override void NavigateToCore(string uri, bool forceLoad) } } - private sealed class TestJsRuntime : IJSRuntime + private sealed class TestJsRuntime : IJSRuntime, IJSObjectReference { - public ValueTask InvokeAsync(string identifier, object?[]? args) => ValueTask.FromResult(default(TValue)!); + public ValueTask InvokeAsync(string identifier, object?[]? args) + { + object? result = typeof(TValue) == typeof(IJSObjectReference) ? this + : typeof(TValue) == typeof(MudBlazor.Breakpoint) ? MudBlazor.Breakpoint.Lg + : typeof(TValue) == typeof(BrowserWindowSize) ? new BrowserWindowSize { Width = 1280, Height = 900 } + : default(TValue); + return ValueTask.FromResult((TValue)result!); + } public ValueTask InvokeAsync(string identifier, CancellationToken cancellationToken, object?[]? args) => InvokeAsync(identifier, args); + public ValueTask DisposeAsync() => ValueTask.CompletedTask; } private sealed class TestEnvironment(string root) : IWebHostEnvironment diff --git a/Redot-Documentation-Tests/ClassDocumentationRendererTests.cs b/Redot-Documentation-Tests/ClassDocumentationRendererTests.cs index 769cb3d..6dc95b6 100644 --- a/Redot-Documentation-Tests/ClassDocumentationRendererTests.cs +++ b/Redot-Documentation-Tests/ClassDocumentationRendererTests.cs @@ -1,5 +1,7 @@ using System.Text.RegularExpressions; +using HtmlAgilityPack; using Redot_Documentation.ClassDocumentation; +using Redot_Documentation.Components.Layout; using Redot_Documentation.Versioning; namespace Redot_Documentation_Tests; @@ -39,7 +41,60 @@ public void RenderPage_RendersSignaturesStatusesAndStableAnchors() Assert.Contains("id=\"method-add-child\"", html); Assert.Contains("href=\"/en/latest/Classes/Object\"", html); Assert.Contains("class-status-experimental", html); - Assert.Contains("Node child", html); + Assert.Contains("Node child", html); + } + + [Fact] + public void RenderPage_HighlightsSignaturesAndCollectsMatchingMemberHeadings() + { + var renderer = new ClassDocumentationRenderer(); + ClassDocumentationSnapshot snapshot = CreateSnapshot(); + ClassDocumentationEntry node = snapshot.Classes["Node"] with + { + Description = "A useful class.", + Members = [new ClassDocumentationMember { Name = "enabled", Type = "bool", Default = "true" }], + Methods = + [ + new ClassDocumentationCallable + { + Name = "add_child", ReturnType = "void", Qualifiers = "virtual const", + Parameters = [new ClassDocumentationParameter("child", "Node", "Node(1, 2)", null, false)] + }, + new ClassDocumentationCallable + { + Name = "add_child", ReturnType = "void", + Parameters = [new ClassDocumentationParameter("unsafe", "String", "\" - \ No newline at end of file + diff --git a/Redot-Documentation/Components/Layout/MainLayout.razor b/Redot-Documentation/Components/Layout/MainLayout.razor index feb8791..4b51833 100644 --- a/Redot-Documentation/Components/Layout/MainLayout.razor +++ b/Redot-Documentation/Components/Layout/MainLayout.razor @@ -32,7 +32,8 @@ @if (HasNavigation) { - + @* Recreate the drawer when its variant changes so MudLayout updates its content offset. *@ + } diff --git a/Redot-Documentation/Components/Layout/RedotTheme.cs b/Redot-Documentation/Components/Layout/RedotTheme.cs index fe25e6a..b3ac0b2 100644 --- a/Redot-Documentation/Components/Layout/RedotTheme.cs +++ b/Redot-Documentation/Components/Layout/RedotTheme.cs @@ -25,7 +25,7 @@ public static class RedotTheme LayoutProperties = new LayoutProperties { DefaultBorderRadius = "10px", DrawerWidthLeft = "300px" }, Typography = new Typography { - Default = new DefaultTypography { FontFamily = ["Helvetica Neue", "Helvetica", "Arial", "sans-serif"] } + Default = new DefaultTypography { FontFamily = ["Geist", "Helvetica Neue", "Helvetica", "Arial", "sans-serif"] } } }; } diff --git a/Redot-Documentation/Components/Pages/ClassDocViewer.razor b/Redot-Documentation/Components/Pages/ClassDocViewer.razor index ec8ebcf..4a92d79 100644 --- a/Redot-Documentation/Components/Pages/ClassDocViewer.razor +++ b/Redot-Documentation/Components/Pages/ClassDocViewer.razor @@ -2,9 +2,11 @@ @page "/en/{VersionSlug}/Classes/{ClassName}" @layout MainLayout @using Redot_Documentation.ClassDocumentation +@using Redot_Documentation.Components.Layout @implements IDisposable @inject ClassDocumentationCatalog Catalog @inject ClassDocumentationRenderer Renderer +@inject NavigationManager Navigation @inject IJSRuntime JS @PageTitleText @@ -26,9 +28,21 @@ else if (!string.IsNullOrWhiteSpace(ClassName)) } else { -
- @((MarkupString)Renderer.RenderPage(_classDocumentation, _snapshot)) - +
+
+ @if (_tableOfContents.Count > 0) + { + + + + } + @((MarkupString)_renderedHtml) + +
+ @if (_tableOfContents.Count > 0) + { +
+ }
} } @@ -83,6 +97,8 @@ else private ClassDocumentationSnapshot? _snapshot; private ClassDocumentationEntry? _classDocumentation; + private string _renderedHtml = string.Empty; + private readonly List _tableOfContents = []; private string _searchText = string.Empty; private bool _disposed; @@ -107,11 +123,18 @@ else private void LoadSnapshot() { _classDocumentation = null; + _renderedHtml = string.Empty; + _tableOfContents.Clear(); Catalog.TryGetSnapshot(VersionSlug, out _snapshot); if (_snapshot is not null && !string.IsNullOrWhiteSpace(ClassName)) _snapshot.TryGetClass(ClassName, out _classDocumentation); + if (_classDocumentation is not null && _snapshot is not null) + _renderedHtml = Renderer.RenderPage(_classDocumentation, _snapshot, _tableOfContents); } + private string BuildTableOfContentsHref(string id) + => $"{ClassDocumentationRenderer.ClassPath(VersionSlug, _classDocumentation!.Name)}{new Uri(Navigation.Uri).Query}#{Uri.EscapeDataString(id)}"; + private void OnCatalogChanged(string versionSlug) { _ = InvokeAsync(() => diff --git a/Redot-Documentation/Components/Pages/Licenses.razor b/Redot-Documentation/Components/Pages/Licenses.razor index 236f9ab..a746287 100644 --- a/Redot-Documentation/Components/Pages/Licenses.razor +++ b/Redot-Documentation/Components/Pages/Licenses.razor @@ -56,6 +56,8 @@
  • MudBlazor: MIT license and copyright notice.
  • Bootstrap: Copyright © 2011-2024 The Bootstrap Authors, MIT license.
  • Prism: Copyright © 2012 Lea Verou, MIT license.
  • +
  • Geist: Copyright © 2024 The Geist Project Authors, SIL Open Font License 1.1.
  • +
  • JetBrains Mono: Copyright © 2020 The JetBrains Mono Project Authors, SIL Open Font License 1.1.
  • Font Awesome Free by Fonticons, Inc.: icons under CC BY 4.0; fonts under SIL OFL 1.1; code under MIT, as applicable. Original license notice.
  • Markdig: Copyright © 2018-2019 Alexandre Mutel, BSD-2-Clause license.
  • .NET and ASP.NET Core: MIT license, .NET third-party notices, and ASP.NET Core third-party notices.
  • diff --git a/Redot-Documentation/wwwroot/app.css b/Redot-Documentation/wwwroot/app.css index add858e..b3757b7 100644 --- a/Redot-Documentation/wwwroot/app.css +++ b/Redot-Documentation/wwwroot/app.css @@ -1,7 +1,37 @@ -:root { color-scheme: dark; --app-bg: #09090b; --app-bg-dark: #070708; --app-panel: #17171b; --app-text: #f5f5f5; --app-link-color: #ff704b; --redot-brand: #ff3b0a; --redot-muted: #b0b0b8; --redot-border: #2a2a30; } +@font-face { + font-family: 'Geist'; + src: url('/fonts/geist/Geist-Variable.woff2') format('woff2'); + font-style: normal; + font-weight: 100 900; + font-display: swap; +} +@font-face { + font-family: 'Geist'; + src: url('/fonts/geist/Geist-VariableItalic.woff2') format('woff2'); + font-style: italic; + font-weight: 100 900; + font-display: swap; +} +@font-face { + font-family: 'JetBrains Mono'; + src: url('/fonts/jetbrains-mono/JetBrainsMono-Variable.woff2') format('woff2'); + font-style: normal; + font-weight: 100 800; + font-display: swap; +} +@font-face { + font-family: 'JetBrains Mono'; + src: url('/fonts/jetbrains-mono/JetBrainsMono-VariableItalic.woff2') format('woff2'); + font-style: italic; + font-weight: 100 800; + font-display: swap; +} +:root { color-scheme: dark; --app-font-family: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif; --app-monospace-font-family: 'JetBrains Mono', Consolas, 'Cascadia Code', Menlo, monospace; --app-bg: #09090b; --app-bg-dark: #070708; --app-panel: #17171b; --app-text: #f5f5f5; --app-link-color: #ff704b; --redot-brand: #ff3b0a; --redot-muted: #b0b0b8; --redot-border: #2a2a30; } * { box-sizing: border-box; } html { scroll-padding-top: 90px; } -body { margin: 0; background: var(--app-bg); color: var(--app-text); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; } +body { margin: 0; background: var(--app-bg); color: var(--app-text); font-family: var(--app-font-family); } +code, pre, kbd, samp, +code[class*='language-'], pre[class*='language-'] { font-family: var(--app-monospace-font-family); } a { color: var(--app-link-color); text-underline-offset: .2em; } a:hover { color: #ff967c; } :focus-visible { outline: 2px solid #ff967c; outline-offset: 4px; } @@ -35,9 +65,10 @@ button, a { -webkit-tap-highlight-color: transparent; } .article-container { padding: 36px clamp(20px, 3vw, 54px) 56px; width: 100%; flex: 1; min-width: 0; } .landing-container { flex: 1; min-width: 0; } .landing-container > .doc-viewer-content { padding: 48px 24px; } -.doc-viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(24px, 4vw, 64px); max-width: 1260px; margin-inline: auto; align-items: start; } -.doc-viewer-layout:not(:has(.doc-viewer-toc)) { grid-template-columns: minmax(0, 1fr); } +.doc-viewer-layout { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(28px, 3vw, 56px); align-items: start; } +.doc-viewer-layout:not(:has(.desktop-toc)) { grid-template-columns: minmax(0, 1fr); } .doc-viewer-content { min-width: 0; width: 100%; max-width: 80ch; margin-inline: auto; font-size: 1rem; line-height: 1.75; overflow-wrap: break-word; } +.doc-viewer-layout > .doc-viewer-content { max-width: none; margin-inline: 0; } .doc-viewer-content h1 { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.15; font-weight: 750; letter-spacing: -.035em; margin: .2rem 0 1.75rem; } .doc-viewer-content h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; margin: 2.5rem 0 1rem; } .doc-viewer-content h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.4; margin: 2rem 0 .75rem; } @@ -50,7 +81,7 @@ button, a { -webkit-tap-highlight-color: transparent; } .doc-viewer-content a:not(.mud-button-root) { text-decoration: underline; } .doc-viewer-content img, .doc-viewer-content video { max-width: 100%; height: auto; border-radius: 6px; } .doc-viewer-content pre { max-width: 100%; overflow: auto; padding: 20px; margin: 1.25rem 0; border: 1px solid var(--redot-border); border-radius: 10px; background: #121216; font-size: .85rem; line-height: 1.7; } -.doc-viewer-content code { font-family: Consolas, 'Cascadia Code', Menlo, monospace; font-size: .9em; } +.doc-viewer-content code { font-family: var(--app-monospace-font-family); font-size: .9em; } .doc-viewer-content :not(pre) > code { color: #ffc2b2; background: #ffffff08; padding: .12em .3em; border-radius: 4px; overflow-wrap: anywhere; } .doc-viewer-content pre code { background: none; padding: 0; } .doc-viewer-content table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; } @@ -64,7 +95,7 @@ button, a { -webkit-tap-highlight-color: transparent; } .doc-viewer-toc li { margin: 0 0 12px; line-height: 1.5; } .doc-viewer-toc .toc-level-2 { padding-left: 10px; } .doc-viewer-toc .toc-level-3 { padding-left: 20px; } -.doc-viewer-toc a { color: var(--redot-muted); text-decoration: none; } +.doc-viewer-toc a { color: var(--redot-muted); text-decoration: none; overflow-wrap: anywhere; } .doc-viewer-toc a:hover { color: #ff967c; } .mobile-toc { display: none; } .doc-tabs { margin: 1.5rem 0; border: 1px solid var(--redot-border); border-radius: 10px; overflow: hidden; background: #121216; } @@ -133,7 +164,7 @@ button, a { -webkit-tap-highlight-color: transparent; } .lookup-preview img { display: block; width: 100%; } .lookup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; } .lookup-actions .mud-button { font-size: .75rem; padding: 10px 14px; } -.class-doc-viewer, .class-index { max-width: 1000px; } +.class-index { max-width: 1000px; } .class-search-field { max-width: 36rem; margin: 20px 0 32px; } @media (max-width: 1250px) { .doc-viewer-layout { grid-template-columns: minmax(0,1fr); } .desktop-toc { display: none; } .mobile-toc { display: block; margin-bottom: 24px; } .mobile-toc .doc-viewer-toc { position: static; max-height: 320px; border: 0; padding: 0; } } @media (max-width: 959px) { .header-links { gap: 12px; } .hero-preview { transform: none; } .topic-band { grid-template-columns: 1fr; gap: 20px; } .article-container { padding: 24px 20px 40px; } .footer-inner nav { margin-left: 0; } } @@ -167,22 +198,35 @@ button, a { -webkit-tap-highlight-color: transparent; } .class-api-list { display: grid; + grid-template-columns: minmax(0, 1fr); gap: 1rem; } .class-api-item { + min-width: 0; background: var(--app-panel); border: 1px solid #333; border-radius: 6px; padding: 0 1rem 0.75rem; } -.class-api-item h3 { - font-size: 1rem; - margin: 1rem 0; +.doc-viewer-content .class-api-item h3 { + font-size: 1.25rem; + font-weight: 700; + line-height: 1.45; + margin: 1.1rem 0 .9rem; overflow-wrap: anywhere; } +.doc-viewer-content .class-api-item h3 > code { + color: inherit; + background: none; + padding: 0; + font-size: inherit; + font-weight: inherit; + line-height: inherit; +} + .class-status { border-left: 4px solid #d19a40; margin: 0.75rem 0; @@ -254,7 +298,6 @@ button, a { -webkit-tap-highlight-color: transparent; } margin-top: 0.35rem; } -.doc-viewer-layout:not(:has(.desktop-toc)) { grid-template-columns: minmax(0,1fr); } .desktop-toc { position: sticky; top: 96px; } .doc-viewer-content .class-index-list { padding: 0; list-style: none; } .class-reference-kicker { margin-bottom: 1rem; } diff --git a/Redot-Documentation/wwwroot/fonts/README.md b/Redot-Documentation/wwwroot/fonts/README.md new file mode 100644 index 0000000..7d0c429 --- /dev/null +++ b/Redot-Documentation/wwwroot/fonts/README.md @@ -0,0 +1,25 @@ +# Bundled webfonts + +The site serves these unmodified variable WOFF2 fonts locally, with normal and +italic faces. Each font's original SIL Open Font License 1.1 notice is bundled +alongside its font files and linked from `/licenses`. + +## Geist + +- Source: +- Revision: `10dc7658f13c38a474cde201bb09a4617267545b` +- Upstream files: `fonts/Geist/webfonts/Geist[wght].woff2` and + `fonts/Geist/webfonts/Geist-Italic[wght].woff2` +- Local filenames: `geist/Geist-Variable.woff2` and + `geist/Geist-VariableItalic.woff2` +- License: upstream `OFL.txt`, copied to `geist/OFL.txt` + +## JetBrains Mono + +- Source: +- Revision: `19371302b95d218af43299bce79ddbddd0bc364d` +- Upstream files: `fonts/webfonts/JetBrainsMono[wght].woff2` and + `fonts/webfonts/JetBrainsMono-Italic[wght].woff2` +- Local filenames: `jetbrains-mono/JetBrainsMono-Variable.woff2` and + `jetbrains-mono/JetBrainsMono-VariableItalic.woff2` +- License: upstream `OFL.txt`, copied to `jetbrains-mono/OFL.txt` diff --git a/Redot-Documentation/wwwroot/fonts/geist/Geist-Variable.woff2 b/Redot-Documentation/wwwroot/fonts/geist/Geist-Variable.woff2 new file mode 100644 index 0000000..71dab8b Binary files /dev/null and b/Redot-Documentation/wwwroot/fonts/geist/Geist-Variable.woff2 differ diff --git a/Redot-Documentation/wwwroot/fonts/geist/Geist-VariableItalic.woff2 b/Redot-Documentation/wwwroot/fonts/geist/Geist-VariableItalic.woff2 new file mode 100644 index 0000000..987f7f1 Binary files /dev/null and b/Redot-Documentation/wwwroot/fonts/geist/Geist-VariableItalic.woff2 differ diff --git a/Redot-Documentation/wwwroot/fonts/geist/OFL.txt b/Redot-Documentation/wwwroot/fonts/geist/OFL.txt new file mode 100644 index 0000000..04e95fc --- /dev/null +++ b/Redot-Documentation/wwwroot/fonts/geist/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/Redot-Documentation/wwwroot/fonts/jetbrains-mono/JetBrainsMono-Variable.woff2 b/Redot-Documentation/wwwroot/fonts/jetbrains-mono/JetBrainsMono-Variable.woff2 new file mode 100644 index 0000000..856547f Binary files /dev/null and b/Redot-Documentation/wwwroot/fonts/jetbrains-mono/JetBrainsMono-Variable.woff2 differ diff --git a/Redot-Documentation/wwwroot/fonts/jetbrains-mono/JetBrainsMono-VariableItalic.woff2 b/Redot-Documentation/wwwroot/fonts/jetbrains-mono/JetBrainsMono-VariableItalic.woff2 new file mode 100644 index 0000000..5e8a82e Binary files /dev/null and b/Redot-Documentation/wwwroot/fonts/jetbrains-mono/JetBrainsMono-VariableItalic.woff2 differ diff --git a/Redot-Documentation/wwwroot/fonts/jetbrains-mono/OFL.txt b/Redot-Documentation/wwwroot/fonts/jetbrains-mono/OFL.txt new file mode 100644 index 0000000..5ceee00 --- /dev/null +++ b/Redot-Documentation/wwwroot/fonts/jetbrains-mono/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE.