- Some tweaks to the new .NET template to prefer the directory name.
- Updated Statiq Framework to version 1.0.0-beta.21.
- Breaking change: Removed the
IBootstrapper.SetDefaultTemplate()extension given more general use of templates. The "default" template should now be specified by setting a templates for the HTML media type (by default it's still Razor, so this breaking change won't really affect anyone right now). - Breaking Change: Removed the
AssetFiles,DataFiles, andContentFilessettings and replaced with a singleInputFilessetting for finding all input files. The target pipeline and content type are now determined from the media type and metadata of the document instead of via globbing patterns for each pipeline. If you previously had asset files that started with an underscore (such as a_redirectsfile), you will need to explicitly add those to theInputFilespatterns along with the default pattern:.AddSetting(WebKeys.InputFiles, new [] { "**/{!_,}*", "_redirects" }). - Added a
ClearDataContentdocument setting that clears content from data documents (for example, to support passing the data file to layouts). Set this for a single data document to clear it's content or globally with.AddSetting(WebKeys.ClearDataContent, true)to clear the content of all data files. - Made the concept of "templates" more general. They now essentially use the media type of a document (typically inferred from file extension) to determine which pipeline to
process the document in and what module to use for processing. Templates can now be defined for assets, data, and content and for the
ProcessandPostProcessphases for each. - Added a
ContentTypedocument setting to override the calculated pipeline and processing for a document (values areAsset,Data, andContent). For example, setting theContentTypeof a file named "foo.json" toAssetwill treat the file as an asset and will not process it's content as data. - Added a
MediaTypedocument setting to override the media type calculated from the file extension. - Added a
RemoveScriptExtensiondocument setting that will convert script file names like "foo.json.csx" to "foo.json" and reset their media types so the script output can be seamlessly processed by the appropriate pipeline and modules (for example, "foo.json.csx" will get processed by theDatapipeline while "foo.md.csx" will get processed by theContentpipeline). The default value istrue. - Removed the
Isolatedflag from theAssetspipeline so the set of copied assets can be retrieved from other pipelines (I.e. to generate a list of images in a directory). - Added support for script files (
.csxor.cs) to theArchivepipeline (I.e. to generate JSON APIs from a collection of documents or data). - Added a
Scriptdocument setting that will treat a file as a C# script, even if the extension is not.csor.csx. - Added a common
Inputspipeline that consolidates directory metadata, sidecar, and front matter parsing and supports evaluating scripts with a.csxor.csextension. Detailed script usage will be documented on the site, but generally if the script returns null the original input document is returned, if the script returns a string the content of the document will be changed to the return value, or if the script returns a document(s) those will be added to the appropriate pipeline. - New
Statiq.Web.Templatesproject with a Statiq Web templates for thedotnet newCLI command (#915, thanks @devlead).
- Breaking change: Updated Statiq Framework to version 1.0.0-beta.20. This version of Statiq Framework contains breaking changes which Statiq Web will inherit.
- The
Contentpipeline no longer creates any metadata-based tree structure (I.e. the metadata keyChildrenis no longer set). Instead, consider using methods fromOutputssuch asOutputs.GetChildren(doc)or the newOutputPagesproperty (see the Statiq Framework 1.0.0-beta.20 release notes for more details). - Added a new
MinimumStatiqWebVersionkey to perform a check for the minimum allowed version of Statiq Web. If this is set to something higher than the current version of Statiq Web, an error will be logged and execution will stop. Any setting that starts will this key will be considered, so it's recommended the use of this key be suffixed with a unique identifier to avoid conflicts between components (for exampleMinimumStatiqWebVersion-MySite). While not required or typically necessary for sites, it's recommended that themes set this in their theme settings file (for exampleMinimumStatiqWebVersion-CleanBlog).
- Updated Statiq Framework to version 1.0.0-beta.19. This version of Statiq Framework includes internal refactoring that provides a big performance boost.
- Added a
AssetFilessettings to configure the globbing patterns used for copying assets.
- Breaking change: Updated Statiq Framework to version 1.0.0-beta.18. This version of Statiq Framework contains breaking changes which Statiq Web will inherit.
- Breaking change: The
Contentpipeline no longer nests output documents and instead all documents are now output.IEnumerable<IDocument>.FilterDestinations("*.html")orOutputs["*.html"]can be used to get "root" documents. - Added a
MakeLinksAbsolutesetting to rewrite relative links to be absolute. - Added a
MakeLinksRootRelativesetting to rewrite relative links to be root-relative. - Suppressed archive output when there's no documents to archive.
- Added the
CacheDocumentsmodule to additional pipelines for faster rebuild times. - Added an
ArchiveKeyComparermetadata that allows specifying a specific comparer for use with archive groups (usually with script metadata). - Added ability for all pipelines to ensure every document gets a
Publishedvalue, either from an existing value or from the file name or modified date. - Added a
PublishedUsesLastModifiedDatesetting to control whether a file modified date should be used for getting published dates. - Added
settingsas a default settings file name in themes (with support for JSON, YAML, or XML formats). - Added support for sidecar files in other input directories at the same relative path (I.e. themes).
- Added support for
themesettingsandstatiqYAML (.ymland.yaml) and XML (.xml) configuration files in themes. - Fixed a bug on engine reruns (I.e. the preview command).
- Updated Statiq Framework to version 1.0.0-beta.17.
- Added
OutputPathsetting so the output path can be set from the command-line or configuration file. - Added
ExcludedPathssetting so excluded paths can be set from the command-line or configuration file. - Added
InputPathssetting so input paths can be set from the command-line or configuration file. - Updated Statiq Framework to version 1.0.0-beta.16.
- Added the new
Statiq.Web.propsfile to abuildTransitivefolder in the package so it flows transitively to consumers.
- Bug fix for unclosed
<ItemGroup>in the new props file (#909, thanks @drmathias).
- Added a
IncludeInSitemapsetting to control whether a document should be included in the sitemap (#907, thanks @drmathias). - Fixed a bug that required feed items to have URI IDs when the specification indicates they can also be arbitrary strings (#906).
- Added a props file to the Statiq.Web package to automatically set the default theme, extensions, and archetypes MSBuild props.
- Updated Statiq Framework to version 1.0.0-beta.14.
- Added a
GatherHeadingsLevelkey that can be used to adjust the headings level when gathering headings globally or per-document (#904).
- Updated Statiq Framework to version 1.0.0-beta.13.
- Added support for reading
themesettings.jsonandstatiq.jsonfrom the theme paths. - Added support for theme paths and configuring them via the bootstrapper and/or settings.
- Added redirect support.
- Added deployment support for Azure App Service.
- Added deployment support for Netlify.
- Added deployment support for GitHub Pages.
- Added
Enumeratesupport to data files.
- Added support for directory metadata for data files.
- Added support for front matter in data files.
- Added support for sidecar files as
_[filename].[json|yaml]. - Added
ProcessSidecarFilessetting to turn sidecar files off. - Added
ApplyDirectoryMetadatasetting to turn directory metadata off. - Added better xref error messages.
- Fixed a bug in the preview command that exited on failures.
- Changed preview server to listen to any hostname/IP on the specified port (this allows use from services like Gitpod).
- Renamed the root namespaces of the extension libraries brought over from Statiq Framework to match new project names.
- Added a new
Bootstrapper.AddWeb()extension to add Statiq Web functionality to an existing bootstrapper.
- Changed resource mirroring to be opt-in instead of opt-out (you now need to set
MirrorResourcestotrueto enable) (#896). - Fix to filter tree placeholder pages out of the
Sitemappipeline (#895).
- Changed the default theme input path to "theme/input" in preparation for work on dedicated theme folders (see #891).
- Added a new
RenderPostProcessTemplateskey that prevents running post-processing templates like Razor. - Added a new
ShouldOutputkey that controls outputting a particular document to disk (but doesn't remove it from the pipeline likeExcludeddoes). - Added support for directory metadata (by default as
_directory.yamlfiles). - Added new
ContentFilesandDataFilessettings to control the file globbing patterns. - Added a new
GenerateSitemapsetting andSitemappipeline to generate sitemap files by default. - Added a new
Excludedkey that indicates a document should be filtered out of the content or data pipeline. - Fixed a bug with feeds not flattening the content document tree.
- Fixed xref resolution to report all errors in a given document at once.
- Changed the xref space placeholder character to a dash to match/roundtrip automatic file name titles.
- Removed the
ChildPagesshortcode (it should really be part of the theme).
- Added support for validating links.
- Refactored xref error messages to display for all documents at once (instead of one at a time).
- Added xref support for links like "xref:xyz" where "xyz" is the value of the "Xref" metadata, the document title with spaces converted to underscores if no "Xref" value is defined, or the source file name if neither of those are available.
- Added
IExecutionContext.TryGetXrefDocument()andIExecutionContext.GetXrefDocument()extension methods to get a document by xref. - Added
IExecutionContext.TryGetXrefLink()andIExecutionContext.GetXrefLink()extension methods to get a document link by xref.
- Added support for Handlebars for files with a ".hbs" or ".handlebars" extension.
- Added ability to specify a default template via the
Bootstrapper.SetDefaultTemplate()extension. - Added a powerful capability to add, modify, and remove template modules like Markdown, Razor, etc. via the
Bootstrapper.ConfigureTemplates()extension. - Refactored metadata processing into a new common
ProcessMetadatamodule. - Added the
OptimizeFileNamemodule withOptimizeContentFileNamesandOptimizeDataFileNamessettings to control it. - Added the
SetDestinationmodule to the "Data" pipeline.
- Refactored the
ReadGitHubmodule to take configuration values. - The "Content" and "Data" pipelines now concatenate all documents from pipelines that declare themselves a dependency using
IPipeline.DependencyOf.
- Added a new DeployGitHubPages module.
- Moved the preview and serve commands into Statiq.Web from Statiq.App.
- Moved Statiq.GitHub into Statiq Web as Statiq.Web.GitHub from Statiq Framework.
- Moved Statiq.Netifly into Statiq Web as Statiq.Web.Netlify from Statiq Framework.
- Moved Statiq.Azure into Statiq Web as Statiq.Web.Azure from Statiq Framework.
- Moved Statiq.Aws into Statiq Web as Statiq.Web.Aws from Statiq Framework.
- Moved Statiq.Hosting into Statiq Web as Statiq.Web.Hosting from Statiq Framework.
- Moved HTML-based shortcodes from Statiq.Core.
- Fixed a bug with
ArchiveKeywhen using a string-based key. - Added support for setting archive document source.
- Added the
GatherHeadingsmodule. - Added a
ChildPagesshortcode. - Added shortcode support.
- Added
CreateTree/FlattenTreeto the Content pipeline. - Added support for ordering documents in the Content pipeline using the "Index" metadata value.
- Added a new Feeds pipeline that creates RSS and Atom feeds based on a definition file.
- Added a new Data pipeline that reads YAML and JSON files.
- Added excerpt generation (in the "Excerpt" metadata key) to the Content pipeline.
- Added an Archives pipeline that can create archive indexes, groups, and pages.
- Initial version with Content, Assets, Less, and Sass pipelines.