A static site generator for Swift developers
publish run
now always uses Python 3 for better compatibility with macOS Monterey.This release also includes documentation improvements by @omaralbeik and a CLI fix by @uhooi.
Component
implementations for markdown rendering (Markdown
), video playback (VideoPlayer
), and the ability to use Plot's AudioPlayer
component with Publish's Audio
models.Markdown
, if you want to refer to Ink's type with the same name, you have to use Ink.Markdown
. That's the only potentially breaking change within this release, and should hopefully not have a big impact on any Publish-based code base.Content.Body
type can now also be used directly as a Plot component..git
and .gitHub
deployment methods (by @Kilo-Loco).Website
protocol with Publish
as to not cause conflicts with the website definition itself (by @sviatoslav).excludedPaths
argument is now interpreted as a prefix, rather than using absolute string matching, which enables you to exclude entire sections/folders at once (by @bensyverson).publish
command line tool can now generate projects for building plugins, using publish new plugin
.itemPredicate
when using the generateRSSFeed
publishing step.outputFolderPath
when creating a deployment folder for it, to have the website’s output copied into a nested folder (by @baguio and @john-mueller).publish run
command now gives clearer instructions on how to stop it, by @honghaoz.publish run
command is now compatible with both Python 2 and 3, by @hisaac.publish new
command will now generate a project that better reflects its folder name, especially when numbers and underscores are used, by @natanrolnik.Output
folder are now cleaned up before each publishing process begins, by @Hejki.This release also contains documentation improvements by @Ze0nC, @alex-ross and @navanchauhan.
rawValue
within a website's SectionID
enum, that is now taken into account during the generation process (by @Goosse).SectionID
enum.titleSuffix
for items.0.3.0
of Ink.This release also includes documentation improvements by @alexito4.
publish new
command line tool, any camelCasing within the current folder’s name will now be preserved in the project’s default name (by @wacumov).publish run
command line tool (by @jlorfeo).publish run
tool will now also correctly shut down its localhost
server when it exits, and its error messaging has been improved.Path
instances, such as when specifying CSS files using the built-in head
Plot component.path
can now be overriden using the path
Markdown metadata property (by @dmonagle).This release also includes documentation improvements by @NSBrianWard, @daniloc, @antonio081014 and @labradon.
publish run
, the local web server's address is now prefixed with http://
, which enables you to click it to open your site in your web browser (by @slashmo). Also, if any error was encountered when starting that server, it's now reported to the user (by @camdeardorff).Content/yourSection/path/to/item
it will be generated at Output/yourSection/path/to/item
(by @tonisuter).sitemap.xml
by including its path in excludedPaths
(by @artrmz).plugins:
argument (by @slashmo).RSSFeedConfiguration
and PodcastFeedConfiguration
are now value types.PublishingContext.cacheFile(named:)
.Also thanks to @fbernutz, @danielmgauthier and @brettkoonce for fixing spelling errors in the documentation.
Initial release of Publish.