Skip to content

Commit

Permalink
Merge branch 'release/5.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Dec 17, 2024
2 parents 64e0afb + e057ec3 commit e6064dd
Show file tree
Hide file tree
Showing 220 changed files with 26,094 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install:
# .NET 5 required for Codecov.Tool
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.404 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 9.0.100 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 9.0.101 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
- ps: dotnet --info

Expand Down
20 changes: 20 additions & 0 deletions docs/input/_AddinsLayout.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@{
Layout = "/_Master.cshtml";

ViewData[Keys.Title] = "Addins - " + Model.String(Keys.GroupKey);
}

@section Infobar {
}

@section Sidebar {
@Html.Partial("_AddinsSidebar")
}

<section class="content-header">
<h1>@Model.String(Keys.GroupKey)</h1>
</section>
<section class="content">
@Html.Partial("_AddinsList", Model.DocumentList(Keys.GroupDocuments))
@RenderBody()
</section>
57 changes: 57 additions & 0 deletions docs/input/_AddinsList.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
@model IEnumerable<IDocument>

<p>
This page contains core and third party addins for Cake Issues.
If you want to file an issue for any addin listed here, contact the author of the addin.
</p>
<p>
See <a href="../dsl">Reference</a> for a list of aliases provided by these addins.
</p>
<p>
If you're an addin author and want your addin listed here, follow the instructions <a href="https://github.com/cake-contrib/Cake.Issues.Website/blob/develop/README.md#addins">here</a>.
</p>

@foreach(IDocument addin in Model)
{
string description = @addin.String("Description");
string author = @addin.String("Author");
string nuget = @addin.String("NuGet");
string repositoryOwner = @addin.String("repositoryOwner");
string repositoryName = @addin.String("repositoryName");
string documentationLink = @addin.String("documentationLink");

<a id="@(nuget)"></a>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-puzzle-piece"></i> @addin.String("Name")</h3>
</div>
<div class="panel-body">
@if(!string.IsNullOrEmpty(description))
{
<p>@description</p>
}
<dl class="dl-horizontal">
@if(!string.IsNullOrEmpty(author))
{
<dt>Author</dt>
<dd>@author</dd>
}
@if(!string.IsNullOrEmpty(nuget))
{
<dt>NuGet</dt>
<dd><a href="https://www.nuget.org/packages/@(nuget)">@nuget</a></dd>
}
@if(!string.IsNullOrEmpty(repositoryOwner) && !string.IsNullOrEmpty(repositoryName))
{
<dt>Repository</dt>
<dd><a href="https://github.com/@(repositoryOwner)/@(repositoryName)">@(repositoryOwner)/@(repositoryName)</a></dd>
}
@if(!string.IsNullOrEmpty(documentationLink))
{
<dt>Documentation</dt>
<dd><a href="@Context.GetLink(documentationLink)">Documentation</a></dd>
}
</dl>
</div>
</div>
}
6 changes: 6 additions & 0 deletions docs/input/_AddinsSidebar.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<li class="header">Categories</li>
@foreach(IDocument group in Documents.FromPipeline("AddinCategories"))
{
string selectedClass = group.String(Keys.GroupKey) == Model.String(Keys.GroupKey) ? "selected" : null;
<li class="@selectedClass"><a href="@Context.GetLink(group)">@group.String(Keys.GroupKey)</a></li>
}
21 changes: 21 additions & 0 deletions docs/input/_BlogPost.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@{
Layout = "/_BlogLayout.cshtml";
}

@Html.Partial("_BlogPostDetails")

@RenderBody()

<hr />

@{
string sharingLink = Uri.EscapeDataString(Context.GetLink(Model));
string sharingTitle = Uri.EscapeDataString(Model.String(Keys.Title));
}
<ul class="share-buttons">
<li><a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fcakeissues.net@(sharingLink)&t=@(sharingTitle)" title="Share on Facebook" target="_blank"><img alt="Share on Facebook" src="/assets/images/facebook.svg"></a></li>
<li><a href="https://twitter.com/intent/tweet?source=https%3A%2F%2Fcakeissues.net@(sharingLink)&text=@(sharingTitle):%20https%3A%2F%2Fcakeissues.net@(sharingLink)&via=cakeissuesnet" target="_blank" title="Tweet"><img alt="Tweet" src="/assets/images/twitter.svg"></a></li>
<li><a href="http://www.reddit.com/submit?url=https%3A%2F%2Fcakeissues.net@(sharingLink)&title=@(sharingTitle)" target="_blank" title="Submit to Reddit"><img alt="Submit to Reddit" src="/assets/images/reddit.svg"></a></li>
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fcakeissues.net@(sharingLink)&title=@(sharingTitle)&summary=&source=https%3A%2F%2Fcakeissues.net@(sharingLink)" target="_blank" title="Share on LinkedIn"><img alt="Share on LinkedIn" src="/assets/images/linkedin.svg"></a></li>
<li><a href="mailto:?subject=@(sharingTitle)&body=:%20https%3A%2F%2Fcakeissues.net@(sharingLink)" target="_blank" title="Send email"><img alt="Send email" src="/assets/images/envelope.svg"></a></li>
</ul>
66 changes: 66 additions & 0 deletions docs/input/_Bottom.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<div class="github-button">
<a href="https://github.com/search?q=topic%3Acake-issues&type=Repositories" target="_blank"><i class="fa fa-github"></i> GitHub</a>
</div>
<script>
((window.gitter = {}).chat = {}).options = {
room: 'cake-contrib/Lobby'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript">
docsearch({
apiKey: '24e9e5844c59a6c2b72084ed6effc891',
indexName: 'cakeissues',
inputSelector: '#search-query',
debug: false
});
</script>

<script type="text/javascript" src="@Context.GetLink("/assets/js/anchor.min.js")"></script>
<script type="text/javascript" src="@Context.GetLink("/assets/js/clipboard.min.js")"></script>
<script type="text/javascript">
anchors.options.placement = 'left';
anchors.add('#content h1:not(.no-anchor), #content h2:not(.no-anchor), #content h3:not(.no-anchor), #content h4:not(.no-anchor)');
var snippets = document.querySelectorAll("pre > code");
[].forEach.call(snippets, function(snippet) {
snippet.insertAdjacentHTML("beforebegin", "<button class='btn-copy' data-clipboard-snippet><img class='clippy' width=13 src='@Context.GetLink("/assets/images/clippy.svg")' alt='Copy to clipboard'></button>");
});
var clipboardSnippets = new Clipboard('[data-clipboard-snippet]', {
target: function(trigger) {
return trigger.nextElementSibling;
}
});
clipboardSnippets.on('success', function(e) {
e.clearSelection();
showTooltip(e.trigger, "Copied!");
});
clipboardSnippets.on('error', function(e) {
showTooltip(e.trigger, fallbackMessage(e.action));
});
var btns = document.querySelectorAll('.btn-copy');
for (var i = 0; i < btns.length; i++) {
btns[i].addEventListener('mouseleave', function(e) {
e.currentTarget.setAttribute('class', 'btn-copy');
e.currentTarget.removeAttribute('aria-label');
});
}
function showTooltip(elem, msg) {
elem.setAttribute('class', 'btn-copy tooltipped tooltipped-s');
elem.setAttribute('aria-label', msg);
}
function fallbackMessage(action) {
var actionMsg = '';
var actionKey = (action === 'cut' ? 'X' : 'C');
if (/iPhone|iPad/i.test(navigator.userAgent)) {
actionMsg = 'No support :(';
} else if (/Mac/i.test(navigator.userAgent)) {
actionMsg = 'Press ⌘-' + actionKey + ' to ' + action;
} else {
actionMsg = 'Press Ctrl-' + actionKey + ' to ' + action;
}
return actionMsg;
}
</script>
5 changes: 5 additions & 0 deletions docs/input/_Footer.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<p class="text-muted">
Copyright &copy; <a href="http://bbtsoftware.ch" target="_blank">BBT Software AG</a> and <a href="https://github.com/cake-contrib/Cake.Issues/graphs/contributors" target="_blank">contributors</a>.
<br/>
Website generated by <a href="http://wyam.io" target="_blank">Wyam</a>
</p>
1 change: 1 addition & 0 deletions docs/input/_Head.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
19 changes: 19 additions & 0 deletions docs/input/_Navbar.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<div class="navbar-right navbar-form">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off" autofocus>
</div>

@{
List<Tuple<string, string>> pages = new List<Tuple<string, string>>
{
Tuple.Create("News", Context.GetLink("news")),
Tuple.Create("Documentation", Context.GetLink("docs")),
Tuple.Create("Reference", Context.GetLink("dsl")),
Tuple.Create("Addins", Context.GetLink("addins")),
Tuple.Create("API", Context.GetLink("api/Cake.Issues"))
};
foreach(Tuple<string, string> p in pages)
{
string active = Context.GetLink(Document).StartsWith(p.Item2) ? "active" : null;
<li class="@active"><a href="@p.Item2">@Html.Raw(p.Item1)</a></li>
}
}
12 changes: 12 additions & 0 deletions docs/input/addins/index.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
Title: Addins
NoSidebar: false
---
@section Infobar {
}

@section Sidebar {
@Html.Partial("_AddinsSidebar")
}

@Html.Partial("_AddinsList", Documents["Addins"])
Binary file not shown.
Loading

0 comments on commit e6064dd

Please sign in to comment.