Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing Foundation + OrderedCollection imports #278

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/Ignite/Components/IgniteFooter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// Displays "Created in Swift with Ignite", with a link back to the Ignite project on GitHub.
/// Including this is definitely not required for your site, but it's most appreciated 🙌
public struct IgniteFooter: HTML {
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Elements/Embed.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// Embeds a custom URL, such as YouTube or Vimeo.
public struct Embed: BlockHTML, LazyLoadable {
/// Determines what kind of Spotify embed we have.
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Elements/Link.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// A hyperlink to another resource on this site or elsewhere.
public struct Link: BlockHTML, InlineHTML, NavigationItem, DropdownElement {
/// The content and behavior of this HTML.
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Elements/MetaLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// An item of metadata that links to an external resource somehow, such as
/// a stylesheet.
public struct MetaLink: HeadElement, Sendable {
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Elements/MetaTag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// An item of metadata that helps browsers and search engines understand
/// your page better.
public struct MetaTag: HeadElement, Sendable {
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Elements/Script.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// Embeds some JavaScript inside this page, either directly or by
/// referencing an external file.
public struct Script: BlockHTML, HeadElement {
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Elements/Time.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// Represents a specific period in time. It may include the datetime attribute
/// to translate dates into machine-readable format, allowing for better search
/// engine results or custom features such as reminders.
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Framework/Animations/Animatable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import OrderedCollections

/// A protocol that defines the core animation capabilities for Ignite's animation system.
public protocol Animatable {
/// The event that triggers the animation.
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Framework/Animations/Animation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import OrderedCollections

/// A type that defines a multi-step animation using keyframes.
///
/// `Animation` allows you to create complex animations by defining multiple frames,
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Framework/Animations/Transition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import OrderedCollections

/// The main animation configuration type that provides a flexible way to define CSS animations
public struct Transition: Animatable {
/// The CSS properties being animated and their values
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Framework/Site.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// Describes one site being generated by Ignite.
@MainActor
public protocol Site {
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Framework/StaticLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// One static layout in your site, where the content is entirely standalone rather
/// than being produced in conjunction with an external Markdown file.
@MainActor
Expand Down
1 change: 1 addition & 0 deletions Sources/Ignite/Publishing/SiteConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// See LICENSE for license information.
//

import Foundation
import OrderedCollections

/// Represents metadata configuration for a website
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Rendering/Markdown/MarkdownRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// A protocol defining the basic information we need to get good
/// Markdown parsing. This is implemented by the default
/// MarkdownToHTML parser included with Ignite, but users
Expand Down
1 change: 1 addition & 0 deletions Sources/Ignite/Rendering/Markdown/MarkdownToHTML.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// See LICENSE for license information.
//

import Foundation
import Markdown

/// A simple Markdown to HTML parser powered by Apple's swift-markdown.
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Rendering/Page.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// A single flattened page from any source – static or dynamic – ready to be
/// passed through a theme.
public struct Page: Sendable {
Expand Down
2 changes: 2 additions & 0 deletions Sources/Ignite/Themes/Fonts/FontSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// See LICENSE for license information.
//

import Foundation

/// A type that represents a source for a font, including its name, weight, style, and location.
///
/// Use `FontSource` to define where font files can be found and their properties. For example:
Expand Down