mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-26 15:57:58 +01:00
Add initial docs
This commit is contained in:
committed by
Patrik Svensson
parent
decb887b0a
commit
f1912b1d44
30
docs/src/Extensions/BootstrapperExtensions.cs
Normal file
30
docs/src/Extensions/BootstrapperExtensions.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Statiq.App;
|
||||
using Statiq.Common;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Docs
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
public static Bootstrapper ConfigureDeployment(this Bootstrapper bootstrapper, string deployBranch)
|
||||
{
|
||||
if (bootstrapper != null)
|
||||
{
|
||||
bootstrapper.AddSetting(Constants.Deployment.TargetBranch, deployBranch);
|
||||
}
|
||||
return bootstrapper;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user