From 13a41262aa71b636e060ee8e17b7af55ade2dc0c Mon Sep 17 00:00:00 2001 From: Tig Date: Wed, 18 Sep 2024 16:42:43 -0600 Subject: [PATCH] Updated docfx template --- Terminal.Gui/Drawing/AlignmentModes.cs | 28 ++++++----- docfx/templates/modern/layout/_master.tmpl | 47 ++++++++++++------- .../modern/partials/class.header.tmpl.partial | 2 +- docfx/templates/modern/public/main.css | 40 +--------------- 4 files changed, 46 insertions(+), 71 deletions(-) diff --git a/Terminal.Gui/Drawing/AlignmentModes.cs b/Terminal.Gui/Drawing/AlignmentModes.cs index 93cd5d189..9b7fa296e 100644 --- a/Terminal.Gui/Drawing/AlignmentModes.cs +++ b/Terminal.Gui/Drawing/AlignmentModes.cs @@ -21,27 +21,29 @@ public enum AlignmentModes /// /// At least one space will be added between items. Useful for justifying text where at least one space is needed. + /// + /// /// /// If the total size of the items is greater than the container size, the space between items will be ignored /// starting from the end. /// - /// + /// AddSpaceBetweenItems = 2, /// - /// When aligning via or , the item opposite to the alignment - /// (the first or last item) will be ignored. + /// When aligning via or , the item opposite to the alignment (the first or last item) will be ignored. + /// + /// /// /// If the container is smaller than the total size of the items, the end items will be clipped (their locations /// will be greater than the container size). /// - /// /// - /// - /// - /// Start: |111 2222 33333| - /// End: |111 2222 33333| - /// - /// - /// - IgnoreFirstOrLast = 4 -} + /// + /// + /// + /// Start: |111 2222 33333| + /// End: |111 2222 33333| + /// + /// + IgnoreFirstOrLast = 4, +} \ No newline at end of file diff --git a/docfx/templates/modern/layout/_master.tmpl b/docfx/templates/modern/layout/_master.tmpl index 700897908..caf1e520e 100644 --- a/docfx/templates/modern/layout/_master.tmpl +++ b/docfx/templates/modern/layout/_master.tmpl @@ -14,6 +14,7 @@ {{#_description}}{{/_description}} + {{#description}}{{/description}} @@ -36,29 +37,30 @@ + + + + + + {{#_googleAnalyticsTagId}} + + + {{/_googleAnalyticsTagId}} {{/redirect_url}} {{^redirect_url}} - - - - - {{#_googleAnalyticsTagId}} - - - {{/_googleAnalyticsTagId}} -
+ {{^_disableNavbar}} + {{/_disableNavbar}}
+ {{^_disableToc}}
@@ -94,16 +98,21 @@
+ {{/_disableToc}}
- + {{/_disableToc}} + {{^_disableBreadcrumb}} + {{/_disableBreadcrumb}}
@@ -127,9 +136,11 @@
+ {{^_disableAffix}}
+ {{/_disableAffix}}
{{#_enableSearch}} diff --git a/docfx/templates/modern/partials/class.header.tmpl.partial b/docfx/templates/modern/partials/class.header.tmpl.partial index a57d488ea..64168b215 100644 --- a/docfx/templates/modern/partials/class.header.tmpl.partial +++ b/docfx/templates/modern/partials/class.header.tmpl.partial @@ -96,7 +96,7 @@ {{/inClass}} {{#inheritedMembers.0}} -
+
{{__global.inheritedMembers}}
{{/inheritedMembers.0}} diff --git a/docfx/templates/modern/public/main.css b/docfx/templates/modern/public/main.css index 06513a8ba..aec8c0e90 100644 --- a/docfx/templates/modern/public/main.css +++ b/docfx/templates/modern/public/main.css @@ -1,39 +1 @@ -:root, [data-bs-theme=light] { - --bs-font-monospace: 'Cascadia Code', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - --bs-font-sans-serif: "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; - --bs-body-font-weight: 300; - --bs-body-font-weight: 0.9rem; - - --bs-body-color: #dee2e6; - --bs-body-bg: #152332; - - --bs-navbar-brand-font-size: 1.5em; -} - - -.toc, .navbar-brand, .nav-link { - font-family: var(--bs-font-monospace) -} - -.toc { - font-size: 13em; -} - -.toc li { - font-weight: 300; - margin: .2em 0; -} - -h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 { - font-weight: 200; -} - -.toc form.filter>i.bi { - font-size: var(--bs-body-font-size); -} - -.toc .flex-fill { - font-size: var(--bs-body-font-size); -} - -.inheritedMembers { display: none; } +.inheritedMembers { display: none; } \ No newline at end of file