Skip to content

Commit

Permalink
Added gitter sidecar to docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Imolorhe committed Nov 6, 2017
1 parent fe84108 commit 6bd8ecd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
6 changes: 4 additions & 2 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>

<!-- CSS -->
<link href="{{ site.github.url }}/css/main.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="{{ site.github.url }}/favicon.ico">
<link href="{{ '/css/main.css' | relative_url }}" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

{% include sidecar.html %}
2 changes: 1 addition & 1 deletion docs/_includes/landingfooter.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h3 class="heading">get altair</h3>
{% if platform.link %}
<a href="{{ platform.link }}">
{% endif %}
<img class="{% unless platform.status %}platform--unavailable{% endunless %}" src="{{ site.github.url }}/assets/img/{{ platform.image }}">
<img class="{% unless platform.status %}platform--unavailable{% endunless %}" src="{{ '/assets/img/' | append: platform.image | relative_url }}">
<p class="platform--name">{{ platform.name }}</p>
{% unless platform.status %}
<p>coming soon</p>
Expand Down
6 changes: 6 additions & 0 deletions docs/_includes/sidecar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script>
((window.gitter = {}).chat = {}).options = {
room: 'altair-graphql/Lobby'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
2 changes: 1 addition & 1 deletion docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
{%include head.html%}
{% include head.html %}
</head>
<body>
{{ content }}
Expand Down
2 changes: 1 addition & 1 deletion docs/_layouts/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<a href="{{ site.download_link }}" class="btn" target="_blank">Download Altair</a>
</div>
<div class="hero-cta--product">
<img src="{{ site.github.url }}/assets/img/app-shot.jpg" alt="">
<img src="{{ '/assets/img/app-shot.jpg' | relative_url }}" alt="">
</div>
</div>
</div>
Expand Down

0 comments on commit 6bd8ecd

Please sign in to comment.