Skip to content

Commit

Permalink
Quick pass of SwiftLint corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
twostraws committed Jan 16, 2025
1 parent 2546869 commit 70fd776
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions Sources/Ignite/Elements/NavigationBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public struct NavigationBar: BlockHTML {
/// This bar must always be rendered in dark mode.
case dark
}

/// The new number of columns to use.
public enum Width {
/// Viewport sets column width
Expand Down Expand Up @@ -226,5 +226,3 @@ public struct NavigationBar: BlockHTML {
.class("nav-item")
}
}


1 change: 0 additions & 1 deletion Sources/Ignite/Framework/ElementTypes/HTML.swift
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ public extension HTML {
}
}


/// Recursively flattens nested `InlineHTML` content into a single array, unwrapping any body properties.
/// - Parameter content: The content to flatten and unwrap
/// - Returns: An array of unwrapped `InlineHTML` elements
Expand Down
1 change: 0 additions & 1 deletion Sources/Ignite/Modifiers/IgnorePageGutters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public extension HTML {
}
}


public extension BlockHTML {
/// Determines whether this element should observe the site
/// width or extend from one edge of the screen to the other.
Expand Down
6 changes: 3 additions & 3 deletions Sources/Ignite/Publishing/PublishingContext-Generators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ extension PublishingContext {
color: var(--bs-body-color);
background-color: var(--bs-body-bg);
}
/* Link styles */
a {
color: var(--bs-link-color);
Expand Down Expand Up @@ -472,7 +472,7 @@ extension PublishingContext {
.border-dark {
border-color: var(--bs-dark) !important;
}
/* Paragraph margin */
p {
margin-top: 0;
Expand Down Expand Up @@ -542,7 +542,7 @@ extension PublishingContext {
.bg-dark { background-color: var(--bs-dark) !important; }
/* Button rules */
.btn-primary {
.btn-primary {
background-color: var(--bs-primary);
border-color: var(--bs-primary);
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Ignite/Publishing/PublishingContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public final class PublishingContext {
/// - Parameter content: The content to render.
func render(_ content: Content) throws {
var layout = try layout(for: content)

let values = EnvironmentValues(sourceDirectory: sourceDirectory, site: site, allContent: allContent)
layout.environment = values

Expand Down

0 comments on commit 70fd776

Please sign in to comment.