Skip to content

Commit

Permalink
Fixed default themes and recipies not found due to packages renamed t…
Browse files Browse the repository at this point in the history
…o Wyam2
  • Loading branch information
savornicesei committed Jul 17, 2021
1 parent c85c251 commit 3622703
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
54 changes: 27 additions & 27 deletions src/core/Wyam.Configuration/KnownExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,34 @@ private KnownExtension(string packageId)
PackageId = packageId;
}

public static readonly KnownExtension All = new KnownExtension("Wyam.All");
public static readonly KnownExtension All = new KnownExtension("Wyam2.All");

public static readonly KnownExtension AmazonWebServices = new KnownExtension("Wyam.AmazonWebServices");
public static readonly KnownExtension CodeAnalysis = new KnownExtension("Wyam.CodeAnalysis");
public static readonly KnownExtension Feeds = new KnownExtension("Wyam.Feeds");
public static readonly KnownExtension GitHub = new KnownExtension("Wyam.GitHub");
public static readonly KnownExtension Highlight = new KnownExtension("Wyam.Highlight");
public static readonly KnownExtension Html = new KnownExtension("Wyam.Html");
public static readonly KnownExtension Images = new KnownExtension("Wyam.Images");
public static readonly KnownExtension Json = new KnownExtension("Wyam.Json");
public static readonly KnownExtension Less = new KnownExtension("Wyam.Less");
public static readonly KnownExtension Markdown = new KnownExtension("Wyam.Markdown");
public static readonly KnownExtension Minification = new KnownExtension("Wyam.Minification");
public static readonly KnownExtension Razor = new KnownExtension("Wyam.Razor");
public static readonly KnownExtension Sass = new KnownExtension("Wyam.Sass");
public static readonly KnownExtension SearchIndex = new KnownExtension("Wyam.SearchIndex");
public static readonly KnownExtension Tables = new KnownExtension("Wyam.Tables");
public static readonly KnownExtension TextGeneration = new KnownExtension("Wyam.TextGeneration");
public static readonly KnownExtension Xmp = new KnownExtension("Wyam.Xmp");
public static readonly KnownExtension Yaml = new KnownExtension("Wyam.Yaml");
public static readonly KnownExtension YouTube = new KnownExtension("Wyam.YouTube");
public static readonly KnownExtension AmazonWebServices = new KnownExtension("Wyam2.AmazonWebServices");
public static readonly KnownExtension CodeAnalysis = new KnownExtension("Wyam2.CodeAnalysis");
public static readonly KnownExtension Feeds = new KnownExtension("Wyam2.Feeds");
public static readonly KnownExtension GitHub = new KnownExtension("Wyam2.GitHub");
public static readonly KnownExtension Highlight = new KnownExtension("Wyam2.Highlight");
public static readonly KnownExtension Html = new KnownExtension("Wyam2.Html");
public static readonly KnownExtension Images = new KnownExtension("Wyam2.Images");
public static readonly KnownExtension Json = new KnownExtension("Wyam2.Json");
public static readonly KnownExtension Less = new KnownExtension("Wyam2.Less");
public static readonly KnownExtension Markdown = new KnownExtension("Wyam2.Markdown");
public static readonly KnownExtension Minification = new KnownExtension("Wyam2.Minification");
public static readonly KnownExtension Razor = new KnownExtension("Wyam2.Razor");
public static readonly KnownExtension Sass = new KnownExtension("Wyam2.Sass");
public static readonly KnownExtension SearchIndex = new KnownExtension("Wyam2.SearchIndex");
public static readonly KnownExtension Tables = new KnownExtension("Wyam2.Tables");
public static readonly KnownExtension TextGeneration = new KnownExtension("Wyam2.TextGeneration");
public static readonly KnownExtension Xmp = new KnownExtension("Wyam2.Xmp");
public static readonly KnownExtension Yaml = new KnownExtension("Wyam2.Yaml");
public static readonly KnownExtension YouTube = new KnownExtension("Wyam2.YouTube");

public static readonly KnownExtension BlogTemplateTheme = new KnownExtension("Wyam.Blog.BlogTemplate");
public static readonly KnownExtension CleanBlogTheme = new KnownExtension("Wyam.Blog.CleanBlog");
public static readonly KnownExtension PhantomTheme = new KnownExtension("Wyam.Blog.Phantom");
public static readonly KnownExtension SolidStateTheme = new KnownExtension("Wyam.Blog.SolidState");
public static readonly KnownExtension StellarTheme = new KnownExtension("Wyam.Blog.Stellar");
public static readonly KnownExtension TrophyTheme = new KnownExtension("Wyam.Blog.Trophy");
public static readonly KnownExtension SamsonTheme = new KnownExtension("Wyam.Docs.Samson");
public static readonly KnownExtension BlogTemplateTheme = new KnownExtension("Wyam2.Blog.BlogTemplate");
public static readonly KnownExtension CleanBlogTheme = new KnownExtension("Wyam2.Blog.CleanBlog");
public static readonly KnownExtension PhantomTheme = new KnownExtension("Wyam2.Blog.Phantom");
public static readonly KnownExtension SolidStateTheme = new KnownExtension("Wyam2.Blog.SolidState");
public static readonly KnownExtension StellarTheme = new KnownExtension("Wyam2.Blog.Stellar");
public static readonly KnownExtension TrophyTheme = new KnownExtension("Wyam2.Blog.Trophy");
public static readonly KnownExtension SamsonTheme = new KnownExtension("Wyam2.Docs.Samson");
}
}
4 changes: 2 additions & 2 deletions src/core/Wyam.Configuration/KnownRecipe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/// </summary>
public partial class KnownRecipe : ClassEnum<KnownRecipe>
{
public static readonly KnownRecipe Blog = new KnownRecipe("Wyam.Blog", nameof(KnownTheme.CleanBlog));
public static readonly KnownRecipe Docs = new KnownRecipe("Wyam.Docs", nameof(KnownTheme.Samson));
public static readonly KnownRecipe Blog = new KnownRecipe("Wyam2.Blog", nameof(KnownTheme.CleanBlog));
public static readonly KnownRecipe Docs = new KnownRecipe("Wyam2.Docs", nameof(KnownTheme.Samson));

/// <summary>
/// Gets the package that the recipe class is in. If the recipe is in the
Expand Down
14 changes: 7 additions & 7 deletions src/core/Wyam.Configuration/KnownTheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ private KnownTheme(string recipe, string inputPath, string packageId)
PackageId = packageId;
}

public static readonly KnownTheme BlogTemplate = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam.Blog.BlogTemplate");
public static readonly KnownTheme CleanBlog = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam.Blog.CleanBlog");
public static readonly KnownTheme Phantom = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam.Blog.Phantom");
public static readonly KnownTheme SolidState = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam.Blog.SolidState");
public static readonly KnownTheme Stellar = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam.Blog.Stellar");
public static readonly KnownTheme Trophy = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam.Blog.Trophy");
public static readonly KnownTheme Samson = new KnownTheme(nameof(KnownRecipe.Docs), null, "Wyam.Docs.Samson");
public static readonly KnownTheme BlogTemplate = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam2.Blog.BlogTemplate");
public static readonly KnownTheme CleanBlog = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam2.Blog.CleanBlog");
public static readonly KnownTheme Phantom = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam2.Blog.Phantom");
public static readonly KnownTheme SolidState = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam2.Blog.SolidState");
public static readonly KnownTheme Stellar = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam2.Blog.Stellar");
public static readonly KnownTheme Trophy = new KnownTheme(nameof(KnownRecipe.Blog), null, "Wyam2.Blog.Trophy");
public static readonly KnownTheme Samson = new KnownTheme(nameof(KnownRecipe.Docs), null, "Wyam2.Docs.Samson");
}
}

0 comments on commit 3622703

Please sign in to comment.