Skip to content

Commit

Permalink
Fix shared PublishingContext being called before initialization whe…
Browse files Browse the repository at this point in the history
…n error in `parseContent()`.
  • Loading branch information
JP Toro committed Jan 31, 2025
1 parent b73d396 commit cf96c4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Ignite/Publishing/PublishingContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ final class PublishingContext {
fontsDirectory = sourceDirectory.appending(path: "Fonts")
contentDirectory = sourceDirectory.appending(path: "Content")
includesDirectory = sourceDirectory.appending(path: "Includes")

try parseContent()
}

/// Creates and sets the shared instance of `PublishingContext`
Expand Down Expand Up @@ -181,6 +179,7 @@ final class PublishingContext {

/// Performs all steps required to publish a site.
func publish() async throws {
try parseContent()
clearBuildFolder()
await generateContent()
copyResources()
Expand Down

0 comments on commit cf96c4d

Please sign in to comment.