Skip to content

Commit

Permalink
Improve documentation landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Oct 31, 2019
1 parent d61d7d9 commit f195599
Show file tree
Hide file tree
Showing 8 changed files with 345 additions and 4 deletions.
12 changes: 12 additions & 0 deletions docs/input/_Navbar.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@{
List<Tuple<string, string>> pages = new List<Tuple<string, string>>
{
Tuple.Create("Documentation", Context.GetLink("docs")),
Tuple.Create("API", Context.GetLink("api/Cake.AzureDevOps"))
};
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>
}
}
Binary file not shown.
288 changes: 288 additions & 0 deletions docs/input/assets/css/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions docs/input/assets/css/override.less
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,21 @@ pre:hover .btn-copy {
a, a:active, a:hover, a:focus {
color: #fff;
}
}

/* For feature list */

.feature-list li {
display: block;
}

.feature-list li:before {
/*Using a Bootstrap glyphicon as the bullet point*/
content: "\e013";
font-family: 'Glyphicons Halflings';
font-size: 12px;
float: left;
margin-top: 1px;
margin-left: -25px;
color: green;
}
32 changes: 28 additions & 4 deletions docs/input/index.cshtml
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
---
Title: Cake.AzureDevOps
NoSidebar: true
NoContainer: false
NoContainer: true
NoGutter: true
---

<div class="container">
<h1>What is it?</h1>
<div class="jumbotron">
<div class="container">
<h1 class="display-4">Cake.AzureDevOps</h1>
<p>
Cake addin for working with Azure DevOps.<br/>
</p>
<a class="btn btn-primary btn-lg" href="/Cake.AzureDevOps/docs/" role="button">Learn more</a>
<a class="btn btn-primary btn-lg" href="/Cake.AzureDevOps/api/Cake.AzureDevOps/" role="button">API documentation</a>
</div>
</div>

<div class="container">
<p style="height: 35px;">
<img alt="GitHub" src="https://img.shields.io/github/license/cake-contrib/Cake.AzureDevOps">
<img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/cake-contrib/Cake.AzureDevOps">
<img alt="Nuget" src="https://img.shields.io/nuget/dt/Cake.AzureDevOps">
</p>

<p>
The Azure DevOps Addin for <a href="http://cakebuild.net/" target="_blank">Cake</a> allows you to access Azure DevOps from Cake build scripts.
</p>

<p>
The Azure DevOps Addin for <a href="http://cakebuild.net/" target="_blank">Cake</a> allows you to access Azure DevOps or Azure DevOps Server from Cake build scripts.
<h3>Features</h3>
<ul class="feature-list">
<li>Access to Azure Pipelines builds</li>
<li>Access to Azure Repos pull requests</li>
</ul>
</p>
</div>

0 comments on commit f195599

Please sign in to comment.