mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-10-25 15:19:23 +00:00
21 lines
605 B
C#
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;
|
|
}
|
|
}
|
|
}
|