Skip to content

Commit fdb24b3

Browse files
committed
fix: switch from using site.baseurl to site.github.url
1 parent 26c6fa4 commit fdb24b3

File tree

16 files changed

+55
-55
lines changed

16 files changed

+55
-55
lines changed

_guides/helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# Building a Helper
1515

16-
> This tutorial assumes that you are familiar with the plugin [core concepts]({{site.baseurl}}/guide/plugins/).
16+
> This tutorial assumes that you are familiar with the plugin [core concepts]({{site.github.url}}/guide/plugins/).
1717
> If you have not yet read that article, it is recommended that you do so before continuing.
1818
1919
Providing chainable helper assertions is the most common use of the plugin utilities

_guides/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ Include the chai browser build in your testing suite.
4242

4343
This will provide `chai` as a global object, or `define` it if you are using AMD.
4444

45-
The latest tagged version will be available for hot-linking at [http://chaijs.com/chai.js]({{site.baseurl}}/chai.js).
45+
The latest tagged version will be available for hot-linking at [http://chaijs.com/chai.js]({{site.github.url}}/chai.js).
4646
If you prefer to host yourself, use the `chai.js` file from the root of the github project.
4747
We recommend that you always use a version tag as your starting point, so the
4848
[tag download list](https://github.com/chaijs/chai/tags) is the best place to start.
4949

5050
Currently supports all modern browsers: IE 9+, Chrome 7+, FireFox 4+, Safari 5+. Please note
5151
that the `should` style is currently not compatible with IE9.
5252

53-
If you want to know if your browser is compatible, run the [online test suite]({{site.baseurl}}/api/test/).
53+
If you want to know if your browser is compatible, run the [online test suite]({{site.github.url}}/api/test/).
5454

5555
### Other Platforms
5656

_guides/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ within a single assertion and reused throughout your tests.
1616

1717
This tutorial will show you how to access Chai's plugin API, use flags to transfer data through
1818
the language chain, and write your first assertion (and thorough error messages). Once you have
19-
finished here, [Building a Helper]({{site.baseurl}}/guide/helpers) will show you how to compose properties and
19+
finished here, [Building a Helper]({{site.github.url}}/guide/helpers) will show you how to compose properties and
2020
methods for use on the Chai language chain.
2121

2222
## Accessing Utilities

_includes/banner.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h2>
2727
<div class="command dsp-left">
2828
$ npm install chai
2929
</div>
30-
<a href="{{site.baseurl}}/guide/installation/#node" class="button dsp-right">
30+
<a href="{{site.github.url}}/guide/installation/#node" class="button dsp-right">
3131
View Node Guide
3232
</a>
3333
</div>
@@ -48,7 +48,7 @@ <h2>
4848
<a href="http://chaijs.com/chai.js" class="button-alt dsp-left">
4949
Download chai.js
5050
</a>
51-
<a href="{{site.baseurl}}/guide/installation/#browser" class="button dsp-right">
51+
<a href="{{site.github.url}}/guide/installation/#browser" class="button dsp-right">
5252
View Browser Guide
5353
</a>
5454
</div>
@@ -82,7 +82,7 @@ <h2>
8282
Fork on GitHub
8383
</a>
8484
&nbsp;|&nbsp;
85-
<a href="{{ site.baseurl }}/releases" target="_blank">
85+
<a href="{{ site.github.url }}/releases" target="_blank">
8686
Releases
8787
</a>
8888
&nbsp;|&nbsp;
@@ -99,15 +99,15 @@ <h2>
9999
</div>
100100
</div>
101101
<div class="callouts">
102-
<div id="guide" class="call"><a href="{{site.baseurl}}/guide"><span class="icon"></span>
102+
<div id="guide" class="call"><a href="{{site.github.url}}/guide"><span class="icon"></span>
103103
<big>Getting Started</big><small>Learn how install and use Chai through a series of guided walkthroughs.</small></a>
104104
<div class="bg"></div>
105105
</div>
106-
<div id="api" class="call"><a href="{{site.baseurl}}/api"><span class="icon"></span>
106+
<div id="api" class="call"><a href="{{site.github.url}}/api"><span class="icon"></span>
107107
<big>API Documentation</big><small>Explore the BDD &amp; TDD language specifications for all available assertions.</small></a>
108108
<div class="bg"></div>
109109
</div>
110-
<div id="plugins" class="call"><a href="{{site.baseurl}}/plugins"><span class="icon"></span>
110+
<div id="plugins" class="call"><a href="{{site.github.url}}/plugins"><span class="icon"></span>
111111
<big>Plugin Directory</big><small>Extend Chai's with additional assertions and vendor integration.</small></a>
112112
<div class="bg"></div>
113113
</div>

_includes/footer.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
<section id="footer">
33
<div class="branding">
44
<h3 class="fancy">
5-
<a href="{{site.baseurl}}/">Chai Assertion Library</a>
5+
<a href="{{site.github.url}}/">Chai Assertion Library</a>
66
</h3>
77
</div>
88
<div class="list">
99
<ul>
10-
<li><a href="{{site.baseurl}}/guide/installation/">Installation</a></li>
11-
<li><a href="{{site.baseurl}}/guide/styles/">Interface Styles</a></li>
12-
<li><a href="{{site.baseurl}}/guide/plugins/">Developing Plugins</a></li>
10+
<li><a href="{{site.github.url}}/guide/installation/">Installation</a></li>
11+
<li><a href="{{site.github.url}}/guide/styles/">Interface Styles</a></li>
12+
<li><a href="{{site.github.url}}/guide/plugins/">Developing Plugins</a></li>
1313
</ul>
1414
</div>
1515
<div class="list">
1616
<ul>
17-
<li><a href="{{site.baseurl}}/api/bdd/">Expect / Should API</a></li>
18-
<li><a href="{{site.baseurl}}/api/assert/">Assert API</a></li>
19-
<li><a href="{{site.baseurl}}/api/plugins/">Plugin Utility API</a></li>
17+
<li><a href="{{site.github.url}}/api/bdd/">Expect / Should API</a></li>
18+
<li><a href="{{site.github.url}}/api/assert/">Assert API</a></li>
19+
<li><a href="{{site.github.url}}/api/plugins/">Plugin Utility API</a></li>
2020
</ul>
2121
</div>
2222
<div class="list">
2323
<ul>
24-
<li><a href="{{site.baseurl}}/guide/resources/">Getting Help</a></li>
25-
<li><a href="{{site.baseurl}}/api/test/">Test Suite</a></li>
26-
<li><a href="{{site.baseurl}}/releases" target="_blank">Releases</a></li>
24+
<li><a href="{{site.github.url}}/guide/resources/">Getting Help</a></li>
25+
<li><a href="{{site.github.url}}/api/test/">Test Suite</a></li>
26+
<li><a href="{{site.github.url}}/releases" target="_blank">Releases</a></li>
2727
</ul>
2828
</div>
2929
<div class="list">

_includes/head.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
77
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | markdownify | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
88

9-
<link rel='icon' type='image/x-icon' href="{{site.baseurl}}/img/favicon.ico">
10-
<link rel="stylesheet" href="{{site.baseurl}}/css/main.css">
11-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
9+
<link rel='icon' type='image/x-icon' href="{{site.github.url}}/img/favicon.ico">
10+
<link rel="stylesheet" href="{{site.github.url}}/css/main.css">
11+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.github.url | prepend: site.url }}">
1212

1313
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
14-
<script src="{{site.baseurl}}/js/jquery-mousewheel.js"></script>
15-
<script src="{{site.baseurl}}/js/antiscroll.js"></script>
16-
<script src="{{site.baseurl}}/js/main.js"></script>
14+
<script src="{{site.github.url}}/js/jquery-mousewheel.js"></script>
15+
<script src="{{site.github.url}}/js/antiscroll.js"></script>
16+
<script src="{{site.github.url}}/js/main.js"></script>
1717

18-
<link rel='stylesheet', href="{{site.baseurl}}/css/antiscroll.css" type="text/css" media="all">
19-
<link rel='stylesheet', href="{{site.baseurl}}/css/main.css" type="text/css" media="all">
18+
<link rel='stylesheet', href="{{site.github.url}}/css/antiscroll.css" type="text/css" media="all">
19+
<link rel='stylesheet', href="{{site.github.url}}/css/main.css" type="text/css" media="all">
2020
<script type='text/javascript'>
2121
var mpq = [];
2222
mpq.push(["init", "{{site.mixpanel}}"]);

_includes/header.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<nav id="primary">
22
<div class="nav-wrap">
33
<div class="logo">
4-
<h1><a href="{{site.baseurl}}/">Chai Assertion Library</a></h1>
4+
<h1><a href="{{site.github.url}}/">Chai Assertion Library</a></h1>
55
</div>
66
<div class="navlist">
77
<ul>
8-
<li><a href="{{site.baseurl}}/guide">Guide</a></li>
9-
<li><a href="{{site.baseurl}}/api">API</a></li>
10-
<li><a href="{{site.baseurl}}/plugins">Plugins</a></li>
8+
<li><a href="{{site.github.url}}/guide">Guide</a></li>
9+
<li><a href="{{site.github.url}}/api">API</a></li>
10+
<li><a href="{{site.github.url}}/plugins">Plugins</a></li>
1111
</ul>
1212
</div>
1313
</div>

_layouts/api.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
bodyClass: api
44
---
55
<nav id="api" class="sidebar sticky">
6-
<a href="{{ site.baseurl }}/api/" class="item{% if page.url == '/api/index.html' %} active{% endif %}">
6+
<a href="{{ site.github.url }}/api/" class="item{% if page.url == '/api/index.html' %} active{% endif %}">
77
Introduction
88
</a>
9-
<a href="{{ site.baseurl }}/api/bdd/" class="item{% if page.url == '/api/bdd/' %} active{% endif %}">
9+
<a href="{{ site.github.url }}/api/bdd/" class="item{% if page.url == '/api/bdd/' %} active{% endif %}">
1010
Expect / Should
1111
</a>
12-
<a href="{{ site.baseurl }}/api/assert/" class="item{% if page.url == '/api/assert/' %} active{% endif %}">
12+
<a href="{{ site.github.url }}/api/assert/" class="item{% if page.url == '/api/assert/' %} active{% endif %}">
1313
Assert
1414
</a>
15-
<a href="{{ site.baseurl }}/api/plugins/" class="item{% if page.url == '/api/plugins/' %} active{% endif %}">
15+
<a href="{{ site.github.url }}/api/plugins/" class="item{% if page.url == '/api/plugins/' %} active{% endif %}">
1616
Plugin Utilities
1717
</a>
18-
<a href="{{ site.baseurl }}/api/test/" class="item{% if page.url == '/api/test/' %} active{% endif %}">
18+
<a href="{{ site.github.url }}/api/test/" class="item{% if page.url == '/api/test/' %} active{% endif %}">
1919
Online Test Suite
2020
</a>
2121
{% if page.api_namespace %}

_layouts/guide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% assign guides = site.guides | sort: 'order' %}
99
{% for guide in guides %}
1010
{% assign slug = guide.title | slugify %}
11-
{% capture url %}{{ site.baseurl }}{{ guide.url }}{% endcapture %}
11+
{% capture url %}{{ site.github.url }}{{ guide.url }}{% endcapture %}
1212
{% capture active %}{% if page.url == guide.url %} active{% endif %}{% endcapture %}
1313
{% capture expanded %}{% if page.url == guide.url %} expanded{% endif %}{% endcapture %}
1414
<div id="{{ slug }}" class="item primary{{ active }}{{ expanded }}">
@@ -41,4 +41,4 @@
4141
</div>
4242
</div>
4343

44-
<script src="{{site.baseurl}}/js/guide.js"></script>
44+
<script src="{{site.github.url}}/js/guide.js"></script>

api/assert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
The `assert` style is very similar to node.js' included assert module, with a bit of extra
1111
sugar. Of the three style options, `assert` is the only one that is not chainable. Check out
12-
the [Style Guide]({{site.baseurl}}/guide/styles) for a comparison.
12+
the [Style Guide]({{site.github.url}}/guide/styles) for a comparison.

0 commit comments

Comments
 (0)