Skip to content

Commit

Permalink
Docs: rename "Main assertions" to "Main Methods" and match casing of …
Browse files Browse the repository at this point in the history
…other pages

Closes #1408.
  • Loading branch information
trentmwillis authored and Krinkle committed Oct 7, 2019
1 parent 1f14912 commit acf157c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/QUnit/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: page
title: Main assertions
title: Main Methods
category: main
categories:
- topics
Expand Down
10 changes: 5 additions & 5 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

<section class="sidebar">
<h2>Main methods:</h2>
<h2>Main Methods</h2>
<ul class="sidebar-list">
{% assign methods = site.pages | where:'categories', 'main' %}
{% for page in methods %}
Expand All @@ -13,7 +13,7 @@ <h2>Main methods:</h2>
{% endfor %}
</ul>

<h2>Assertions:</h2>
<h2>Assertions</h2>
<ul class="sidebar-list">
{% assign assertions = site.pages | where:'categories', 'assert' %}
{% for page in assertions %}
Expand All @@ -23,7 +23,7 @@ <h2>Assertions:</h2>
{% endfor %}
</ul>

<h2>Config:</h2>
<h2>Configuration Tools</h2>

<ul class="sidebar-list">
{% assign config = site.pages | where:'categories', 'config' %}
Expand All @@ -34,7 +34,7 @@ <h2>Config:</h2>
{% endfor %}
</ul>

<h2>Callbacks:</h2>
<h2>Callback Handlers</h2>

<ul class="sidebar-list">
{% assign callbacks = site.pages | where:'categories', 'callbacks' %}
Expand All @@ -45,7 +45,7 @@ <h2>Callbacks:</h2>
{% endfor %}
</ul>

<h2>Async control:</h2>
<h2>Async Control</h2>

<ul class="sidebar-list">
{% assign async = site.pages | where:'categories', 'async' %}
Expand Down
31 changes: 26 additions & 5 deletions docs/_layouts/wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,35 @@ <h1 class="logo"><a class="logo-link" href="/">QUnit API Docs</a></h1>
</div>
<nav role="navigation" class="site-nav">
<ul class="site-nav-list">
{% assign topics = site.pages | where:'categories', 'topics' %}
{% for topic in topics %}
<li class="site-nav-list-item">
<a class="site-nav-list-link" href="{{ topic.url }}">
{{ topic.title }}
<a class="site-nav-list-link" href="/QUnit/">
Main Methods
</a>
</li>

<li class="site-nav-list-item">
<a class="site-nav-list-link" href="/assert/">
Assertions
</a>
</li>

<li class="site-nav-list-item">
<a class="site-nav-list-link" href="/config/">
Configuration Tools
</a>
</li>

<li class="site-nav-list-item">
<a class="site-nav-list-link" href="/callbacks/">
Callback Handlers
</a>
</li>

<li class="site-nav-list-item">
<a class="site-nav-list-link" href="/async">
Async Control
</a>
</li>
{% endfor %}
</ul>
</nav>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/callbacks/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: page
title: Callback handlers
title: Callback Handlers
category: callbacks
categories:
- topics
Expand Down
2 changes: 1 addition & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: page
title: Configuration tools
title: Configuration Tools
category: config
categories:
- topics
Expand Down

0 comments on commit acf157c

Please sign in to comment.