Skip to content

Commit

Permalink
doc: fix readme's example code
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrenskers committed Mar 6, 2021
1 parent 4241299 commit c6e111f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Example/Sources/Example/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func itemProcessor(item: Item<ArticleMetadata>) {
).makeOutputPath(itemWriteMode: .moveToSubfolder)
}

try Saga(input: "content", siteMetadata: siteMetadata)
try Saga(input: "content", output: "deploy", siteMetadata: siteMetadata)
// All markdown files within the "articles" subfolder will be parsed to html,
// using ArticleMetadata as the Page's metadata type.
// Furthermore we are only interested in public articles.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let siteMetadata = SiteMetadata(
name: "Example website"
)

try Saga(input: "content", output: "deploy", templates: "templates", siteMetadata: siteMetadata)
try Saga(input: "content", output: "deploy", siteMetadata: siteMetadata)
// All markdown files within the "articles" subfolder will be parsed to html,
// using ArticleMetadata as the Item's metadata type.
.register(
Expand Down
4 changes: 2 additions & 2 deletions Sources/Saga/Writer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public extension Writer {
return itemsPerYear
}

return Self.partitionedWriter(renderer, output: output, paginate: paginate, paginatedOutput: paginatedOutput, partitioner: partitioner)
return partitionedWriter(renderer, output: output, paginate: paginate, paginatedOutput: paginatedOutput, partitioner: partitioner)
}

/// A convenience version of partitionedWriter that splits Items based on tags.
Expand All @@ -117,7 +117,7 @@ public extension Writer {
return itemsPerTag
}

return Self.partitionedWriter(renderer, output: output, paginate: paginate, paginatedOutput: paginatedOutput, partitioner: partitioner)
return partitionedWriter(renderer, output: output, paginate: paginate, paginatedOutput: paginatedOutput, partitioner: partitioner)
}
}

Expand Down

0 comments on commit c6e111f

Please sign in to comment.