Permalink
Browse files

Switched to implied headers, so the language switcher can be included.

  • Loading branch information...
Paddy Foran
Paddy Foran committed Jan 2, 2013
1 parent 549d6d1 commit 91f74e0685708c655211ee0ea70c4f5aab1b668c
View
@@ -23,6 +23,7 @@
</script>
<script src="{{ site.baseurl }}/js/application.js" type="text/javascript"></script>
+<script src="{{ site.baseurl }}/js/modernizr.js" type="text/javascript"></script>
<!--[if IE]>
<script src="http://www.iron.io/assets/html5shiv-d095c2f2abab5314e1647fd569a21eb4.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="{{ site.baseurl }}/css/ie-fix.css" />
@@ -0,0 +1,9 @@
+<div class="dropdown pull-right">
+ <a class="btn orange dropdown-toggle" id="drop5" role="button" data-toggle="dropdown" href="#">Languages <b class="caret"></b></a>
+ <ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop5">
+ {% for lang in page.languages %}
+ <!-- <li id="dropdown-{{ lang.slug }}"><a tabindex="-1" href="?lang={{ lang.slug }}">{{ lang.name }}</a></li>-->
+ <li id="dropdown-{{ lang.slug }}"><a tabindex="-1" onClick="switchLanguage('{{ lang.slug }}');">{{ lang.name }}</a></li>
+ {% endfor %}
+ </ul>
+</div>
View
@@ -54,9 +54,11 @@
{% endif %}
</div>
</nav>
-
+
<div style="float: right; width: 700px" class="content">
+ <h1>{{ page.title }} {% if page.languages %}{% include language-dropdown.html %}{% endif %}</h1>{% if page.summary %}
+ <p class="subtitle">{{ page.summary }}</p>{% endif %}
{{ content }}
</div>
@@ -70,6 +72,38 @@
<footer id="footer">
{% include footer.html %}
</footer>
-
+{% if page.languages %}
+<script src="{{ site.baseurl }}/js/bootstrap-dropdown.js" type="text/javascript"></script>
+<script src="{{ site.baseurl }}/js/language_switcher.js" type="text/javascript"></script>
+<script src="{{ site.baseurl }}/js/purl.js" type="text/javascript"></script>
+<script src="{{ site.baseurl }}/js/cookies.min.js" type="text/javascript"></script>
+<script type="text/javascript">
+ var languages = { {% for lang in page.languages %}
+ '{{ lang.slug }}': '{{ lang.name }}'{% unless forloop.last %},{% endunless %}{% endfor %}
+ };
+</script>
+<script>
+$(document).ready(function() {
+ if ($.url().param('lang')!=null) {
+ desiredLanguage = $.url().param('lang');
+ } else {
+ if (Cookies.get('desired_language')!=null || localStorage.getItem("desired_language")!=null) {
+ if (Cookies.get('desired_language')!=null) {
+ desiredLanguage = Cookies.get('desired_language');
+ } else {
+ desiredLanguage = localStorage.getItem('desired_language');
+ }
+ } else {
+ desiredLanguage = "ruby";
+ }
+ };
+ if(!validLanguage(desiredLanguage)) {
+ switchLanguage("ruby", false);
+ } else {
+ switchLanguage(desiredLanguage);
+ }
+});
+</script>
+{% endif %}
</body>
</html>
View
@@ -1,13 +1,11 @@
---
-title: All Articles | Iron.io Dev Center
+title: All Articles
layout: default
section: overview
breadcrumbs:
- ['Articles', '/articles']
---
-<h1>All Articles</h1>
-
<ul>
{% for post in site.categories.articles %}
<li><a href="{{ site.baseurl }}{{ post.permalink }}" title="{{ post.title }}">{{ post.title }}</a></li>
View
@@ -4,7 +4,6 @@
section: cache
---
-<h1>{{ page.title }}</h1>
<p class="subtitle">Share state between your applications and processes using a key/value store built for the cloud.</p>
<div class="flow-steps">
@@ -1,12 +1,10 @@
---
-title: Configuration
+title: Configuring the Official Client Libraries
section: cache
breadcrumbs:
- ['Reference', '/reference']
- ['Configuration', '/configuration']
layout: post
---
-<h1>Configuring the Official Client Libraries</h1>
-
{% include configuration.md %}
@@ -6,7 +6,6 @@
- ['Reference', '/reference']
---
-<h1>Everything You Ever Wanted to Know</h1>
<p class="subtitle">The IronCache reference documentation contains all the low-level information about IronCache. Every little detail has been recorded here for you.</p>
<a class="grid-box" href="/cache/reference/api">
@@ -2,10 +2,9 @@
layout: default
section: community
breadcrumbs: hidden
+title: "Crowd-Sourcing the Dev Center"
---
-<h1>Crowd-Sourcing The Dev Center</h1>
-
<p class="subtitle">We're looking to the community to help us make the Dev Center the best of its kind.</p>
<p><img src="/images/sticker.jpg" style="float: left; padding: 0 20px 20px 0;">We want this sticker to be your sticker. So we're giving it to you. All you have to do is contribute to the Dev Center&mdash;<a href="https://github.com/iron-io/docs/issues/new">open an issue</a> or fix something and send us a pull request. Not only do you get a better Dev Center, you get a really sweet sticker. How's that for a win-win?</p>
@@ -2,9 +2,9 @@
layout: default
section: community
breadcrumbs: hidden
+title: Community Events
---
-<h1>Come Say Hi</h1>
<p class="subtitle">We love our community of developers, so we do our best to maintain a presence in the community. We run <a href="http://meetup.com/GoSF" title="GoSF">GoSF</a> and <a href="http://meetup.com/SFRails" title="SFRails">SFRails</a>, user groups in San Francisco for our favourite languages. We also try to be present at as many hackathons and conferences as we can. You can use this page to keep track of where we'll be.</p>
<h3>Upcoming Events</h3>
View
@@ -2,9 +2,9 @@
layout: default
section: community
breadcrumbs: hidden
+title: Iron.io Community
---
-<h1>Developers First</h1>
<p class="subtitle">At Iron.io, we're developers at heart, so we take pride in creating services that let other developers do great things. That requires a great developer experience, and while we work hard at that, we'd love your help.</p>
<p>Whether you're running your first worker or are an expert at building beautiful systems of connected processes, we want your feedback, good, bad, or otherwise. We also love any and all contributions to our docs, client libraries, and our examples.</p>
View
@@ -2072,10 +2072,12 @@ body.worker .container header .title-box .info {
list-style: none;
padding: 9px 0 0;
margin: 0;
- text-align: center;
font-size: 15px;
line-height: 18px;
- text-shadow: 0 1px 1px #fff
+ text-shadow: 0 1px 1px white;
+ float: left;
+ position: relative;
+ width: 620px;
}
.menu li {
@@ -2235,7 +2237,7 @@ body.worker .container header .title-box .info {
}
.subnavigation li {
- float: left;
+ display: inline-block;
margin: 0 5px 0 0
}
Oops, something went wrong.

0 comments on commit 91f74e0

Please sign in to comment.