Skip to content

Commit

Permalink
Clean up website.
Browse files Browse the repository at this point in the history
  • Loading branch information
axel22 committed May 5, 2019
1 parent c4afb84 commit b287d12
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ author: TODO

We are proud to announce the release of the version 1.0 of the Renaissance benchmark suite.

TODO: Add content to the initial post.
TODO: Add content to the initial post. Must be moved to _posts.

4 changes: 2 additions & 2 deletions website/_layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
</li>
<li class="topdivider topelement"></li>
<li class="topelement topbutton">
<a href="/docs#contributing"><i class="fa fa-keyboard-o icon"></i>Contribute</a>
<a href="/docs#contribution-guide"><i class="fa fa-keyboard-o icon"></i>Contribute</a>
</li>
<li class="topdivider topelement"></li>
<li class="topelement topbutton">
<a href="https://gitter.im/{{ site.githubOrg }}/{{ site.githubRepo }}"><i class="fa fa-comment icon"></i>Discuss</a>
<a href="https://github.com/{{ site.githubOrg }}/{{ site.githubRepo }}/issues"><i class="fa fa-comment icon"></i>Discuss</a>
</li>
<li class="topdivider topelement"></li>
<!-- <li class="topelement topzero"><a></a></li> -->
Expand Down
18 changes: 18 additions & 0 deletions website/_layouts/mainrenaissance.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,24 @@
<br/>
<br/>

<div class="container_16">
<div class="grid_16">
<hr class="fancy-line">
<div class="fancy-title">
<span><a href="" class="faint-link">BENCHMARKS</a></span>
</div>
</div>
</div>

<br/>
<br/>

<!-- summary of latest benchmark results -->

<br/>
<br/>
<br/>

<div class="container_16">
<div class="grid_16">
<hr class="fancy-line">
Expand Down
8 changes: 4 additions & 4 deletions website/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Thank you for your interest in using the Renaissance Benchmark Suite!
On this page, we provide basic usage instructions, and other useful information.

- [Getting Started with Renaissance](#getting-started)
- [Contributing to Renaissance](#contributing)
- [Contributing to Renaissance](#contribution-guide)
- [Licensing Information](#licensing)


Expand All @@ -24,11 +24,11 @@ The Renaissance Benchmark Suite comes with an informative guide
on how to run Renaissance benchmarks, how to add new benchmarks, run policies and plugins,
and a technical overview of the internal design of the suite.

<div id="contribution-holder">
<div id="readme-holder">
</div>
<script>
loadRemoteContent(
"contribution-holder",
"readme-holder",
"https://api.github.com/repos/{{ site.githubOrg }}/{{ site.githubRepo }}/contents/README.md",
"{{ page.logoname }}",
"markdown"
Expand All @@ -41,7 +41,7 @@ https://github.com/{{ site.githubOrg }}/{{ site.githubRepo }}/blob/master/README
).


# <a name="contributing"></a> Contributing to Renaissance
# <a name="contribution-guide"></a> Contributing to Renaissance

One of the aims of the Renaissance suite is to continually evolve,
and maintain a collection of relevant and interesting benchmarks
Expand Down
4 changes: 3 additions & 1 deletion website/resources/js/prettify/prettify3.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pre.prettyprint {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
box-shadow: 0px 2px 2px #ccc;
box-shadow: 0px 1px 2px #ccc;
}

pre code {
Expand Down Expand Up @@ -52,6 +52,8 @@ li.L1,li.L3,li.L5,li.L7,li.L9 { }
.prettyprint ol.linenums > li {
list-style-type: decimal;
background: #efefef;
color: #ccc;
font-size: 12px;
}

@media print {
Expand Down
10 changes: 8 additions & 2 deletions website/resources/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ function loadRemoteContent(elementId, url, logoname, kind) {
contentText = contentText.replace(/\t/g, ' ').replace(/ /g, '&nbsp; ').replace(/ /g, ' &nbsp;').replace(/\r\n|\n|\r/g, '<br />');
element.appendChild(icon);
element.appendChild(title);
element.innerHTML = element.innerHTML + '<br/>' + contentText;
element.innerHTML = element.innerHTML + "<br/>" + contentText;
} else if (kind == "markdown") {
var contentMarkdown = window.atob(data.content);
var renderedMarkdown = marked(contentMarkdown);
element.innerHTML = element.innerHTML + '<br/>' + renderedMarkdown;
element.innerHTML = element.innerHTML + " " + renderedMarkdown;
$(function() {
$("pre").addClass("prettyprint linenums");
$(".language-scala > pre").addClass("lang-scala");
$(".language-java > pre").addClass("lang-java");
prettyPrint();
});
}
});
}
Expand Down

0 comments on commit b287d12

Please sign in to comment.