Skip to content

Commit 6b3847e

Browse files
authored
Merge pull request #521 from scolsen/master
Adds new Performance Hints page to Performance Guide.
2 parents b9e4e0e + fe785f6 commit 6b3847e

File tree

6 files changed

+6435
-0
lines changed

6 files changed

+6435
-0
lines changed

_includes/side-nav-fast.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
<li><h5 class="doc-side-nav-title">
33
<a href="{{ site.baseurl }}/fast/">Performance Guide</a></h5>
44
</li>
5+
<li>
6+
<h6 class="doc-side-nav-list-item">
7+
<a href="{{ site.baseurl }}/fast/hints.html">Performance Hints</a>
8+
</h6>
9+
</li>
510
<li><h6 class="doc-side-nav-title">Fast Tips</h6></li>
611
{% assign sorted_posts = site.posts | sort: 'order' %}
712

_layouts/base.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
<!-- Site style using SASS, generated by from style.scss -->
2121
<link rel="stylesheet" href="{{ site.baseurl }}/css/style.css">
22+
{% if page.customcss %}
23+
<link rel="stylesheet" href="{{ site.baseurl }}/css/{{page.customcss}}.css">
24+
{% endif %}
2225

2326
<!-- Slick styling -->
2427
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css"/>

_layouts/perf_hints.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default
3+
---
4+
5+
{% assign current = page.url | downcase | split: '/' %}
6+
<div class="container">
7+
<div class="row">
8+
<div class="col-md-11 nofloat center-block ">
9+
<div class="col-sm-1"></div>
10+
<div class="col-sm-9 {{ page.type }}">
11+
{{ content }}
12+
</div>
13+
<div id="toc" class="toc col-sm-2"></div>
14+
</div>
15+
</div>
16+
</div>
17+

css/perf_hints.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* Reset some styling needed elsewhere */
2+
body {
3+
margin-right: 0rem !important;
4+
}
5+
6+
summary {
7+
display: list-item;
8+
background: #fafafa;
9+
border-bottom: .0625rem #ccc dashed;
10+
border-top: .0625rem #ccc dashed;
11+
outline: none;
12+
padding: .5625rem 0;
13+
padding-left: 0.5rem;
14+
}
15+
16+
.doc-side-nav {
17+
display: none;
18+
}
19+
20+
.markdown ul, .markdown ol {
21+
list-style-position: outside;
22+
}
23+
24+
/* Hide external link icon */
25+
a.external::after {
26+
display: none;
27+
}
28+

0 commit comments

Comments
 (0)