Files
spectre.console/docs/src/Extensions/BootstrapperExtensions.cs
2023-11-28 00:14:54 +01:00

21 lines
605 B
C#

using Statiq.App;
using Statiq.Common;
using Statiq.Web;
namespace Docs.Extensions
{
public static class BootstrapperExtensions
{
public static Bootstrapper ConfigureSite(this Bootstrapper bootstrapper, string owner, string repo, string branch)
{
if (bootstrapper != null)
{
bootstrapper.AddSetting(Constants.Site.Owner, owner);
bootstrapper.AddSetting(Constants.Site.Repository, repo);
bootstrapper.AddSetting(Constants.Site.Branch, branch);
}
return bootstrapper;
}
}
}