Skip to content
Permalink
Browse files
Merge and close #408
  • Loading branch information
rdowner committed Dec 22, 2014
2 parents 904a3b2 + fe44e72 commit 1b0afa82ab560ac112d8755aadf59fe7654ebe4f
Show file tree
Hide file tree
Showing 31 changed files with 1,301 additions and 406 deletions.
@@ -0,0 +1,28 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# this uses python pygments engine to render code;
# with recent jekyll (dec 2014) i can't see any difference,
# and the formatting appears to be following pygments rules
# without it, so perhaps the jekyll ruby highlighter is very
# good (identical? i see a pygments gem, even if the docs
# say it is using something called "rouge");
# included here so it is documented at least.
# NB: you may need `python easy_install pygments`
highlighter: pygments
@@ -0,0 +1,28 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

# add this file as a config to use "rdiscount" markdown processor
# instead of the default ruby/jekyll one.
# rdiscount is the original, and C-based, so a bit faster
# (but not much, 7s vs 8.5s on my system -alex)
# and slightly more forgiving, e.g. for <a href="chapter"> tags
# on a line directly about a section header
# (ruby markdown seems to want a blank line between the two).
# NB: this requires adding "rdiscount" to your Gemfile, then `cd ~ ; cd -`
markdown: rdiscount
@@ -0,0 +1,15 @@

<title>{{ page.title }} - Apache Brooklyn (incubating)</title>

<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="{% dependency_url bootstrap.css %}" rel="stylesheet">
<link href="{{site.path.style}}/deps/bootstrap-theme.css" rel="stylesheet">

<link rel="stylesheet" href="{{ site.path.style }}/css/code.css" type="text/css" media="screen" />

<link href="{{site.path.style}}/css/base.css" rel="stylesheet">

<script src="{% dependency_url jquery.js %}"></script>
<script src="{% dependency_url bootstrap.js %}"></script>
@@ -0,0 +1,10 @@

$text_color: #393939;

/* this green is approx what is in the logo (taken from image picker) */
$brooklyn_green: #6db34b;

$a_color: #483;
$a_hover_color: $brooklyn_green;

$code_bg_color: #e8eded;
@@ -14,21 +14,23 @@
{% capture apache_snapshots_repo_groupid_url %}{{ this_repo_base_url }}/content/repositories/snapshots/{{ brooklyn_group_id_path }}{% endcapture %}
{% capture apache_releases_repo_groupid_url %}{{ this_repo_base_url }}/content/repositories/releases/{{ brooklyn_group_id_path }}{% endcapture %}

{% capture this_repo_base_url_content %}{{ apache_snapshots_repo_groupid_url }}{% endcapture %}
{% capture this_dist_url_list %}{{ this_repo_base_url_content }}/brooklyn-dist/{{ site.brooklyn-version }}/{% endcapture %}
{% capture this_alljar_url_list %}{{ this_repo_base_url_content }}/brooklyn-all/{{ site.brooklyn-version }}/{% endcapture %}

{% if SNAPSHOT %}
{% capture this_repo_base_url_content %}{{ apache_snapshots_repo_groupid_url }}{% endcapture %}
{% capture this_dist_url_zip %}{{ this_repo_base_url_artifact }}?r=snapshots&g={{ brooklyn_group_id }}&a=brooklyn-dist&v={{ site.brooklyn-version }}&e=zip&c=dist{% endcapture %}
{% capture this_dist_url_tgz %}{{ this_repo_base_url_artifact }}?r=snapshots&g={{ brooklyn_group_id }}&a=brooklyn-dist&v={{ site.brooklyn-version }}&e=tgz&c=dist{% endcapture %}
{% capture this_alljar_url_jar %}{{ this_repo_base_url_artifact }}?r=snapshots&g={{ brooklyn_group_id }}&a=brooklyn-all&v={{ site.brooklyn-version }}&e=jar&c=with-dependencies{% endcapture %}
{% else %}<!--- RELEASE -->
{% capture this_repo_base_url_content %}{{ apache_releases_repo_groupid_url }}{% endcapture %}
{% capture this_dist_url_zip %}{{ this_repo_base_url_content }}/brooklyn-dist/{{ site.brooklyn-version }}/brooklyn-dist-{{ site.brooklyn-version }}-dist.zip{% endcapture %}
{% capture this_dist_url_tgz %}{{ this_repo_base_url_content }}/brooklyn-dist/{{ site.brooklyn-version }}/brooklyn-dist-{{ site.brooklyn-version }}-dist.tar.gz{% endcapture %}
{% capture this_alljar_url_jar %}{{ this_repo_base_url_content }}/brooklyn-all/{{ site.brooklyn-version }}/brooklyn-all-{{ site.brooklyn-version }}-with-dependencies.jar{% endcapture %}
{% capture this_dist_url_zip %}{{ this_dist_url_list }}/brooklyn-dist-{{ site.brooklyn-version }}-dist.zip{% endcapture %}
{% capture this_dist_url_tgz %}{{ this_dist_url_list }}/brooklyn-dist-{{ site.brooklyn-version }}-dist.tar.gz{% endcapture %}
{% capture this_alljar_url_jar %}{{ this_alljar_url_list }}/brooklyn-all-{{ site.brooklyn-version }}-with-dependencies.jar{% endcapture %}
{% endif %}

{% capture this_anything_url_search %}{{ this_repo_base_url_search }};gav~{{ brooklyn_group_id }}~~{{ site.brooklyn-version }}~~{% endcapture %}
{% capture this_dist_url_search %}{{ this_repo_base_url_search }};gav~{{ brooklyn_group_id }}~brooklyn-dist~{{ site.brooklyn-version }}~~{% endcapture %}
{% capture this_dist_url_search %}{{ this_repo_base_url_search }};gav~{{ brooklyn_group_id }}~brooklyn-all~{{ site.brooklyn-version }}~~{% endcapture %}
{% capture this_alljar_url_search %}{{ this_repo_base_url_search }};gav~{{ brooklyn_group_id }}~brooklyn-all~{{ site.brooklyn-version }}~~{% endcapture %}

<!-- OLD things -->

@@ -0,0 +1,18 @@
<div id="footer">
<div class="container">
<div class="row">
<div class="col-md-10 text-muted">
Apache Brooklyn is distributed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache
License v2.0</a>.
<br />
Apache Brooklyn is currently undergoing Incubation at The Apache Software
Foundation.
</div>
<div class="col-md-2">
<a class="btn btn-sm btn-default" href="https://github.com/apache/incubator-brooklyn/edit/master/docs/{{ page.path }}">Edit This Page</a>
<br />
<a href="{{ site.url_root }}{{ site.path.website }}/community/how-to-contribute-docs.html">help with editing</a>
</div>
</div>
</div>
</div>
@@ -0,0 +1,55 @@
<nav class="navbar navbar-default navbar-fixed-top" id="header" role="navigation">
<div class="container">

<div id="navbar-icons-extra">
<a href="https://github.com/apache/incubator-brooklyn" class="navbar-icon navbar-icon-shift icon-github"
data-toggle="tooltip" data-placement="bottom" title="GitHub: apache/incubator-brooklyn" data-delay="400"/>
<a href="https://twitter.com/#!/search?q=brooklyncentral" class="navbar-icon navbar-icon-shift icon-twitter"
data-toggle="tooltip" data-placement="bottom" title="Twitter: @brooklyncentral" data-delay="400"/>
<a href="http://webchat.freenode.net/?channels=brooklyncentral" class="navbar-icon icon-irc"
data-toggle="tooltip" data-placement="bottom" title="IRC: freenode #brooklyncentral" data-delay="400"/>
<!-- extra a element seems needed else landing page first menu item copies an icon above (!?) -->
<a style="width: 0px; height: 0px;"></a>
</div>

<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{% if page.navgroup != 'home' %}<a class="navbar-brand" href="{{site.path.website}}/"><img src="{{site.path.style}}/img/apache-brooklyn-logo-244px-wide.png" alt="brooklyn"></a>{% endif %}
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
{% for navgroup in site.data.navgroups %}
{% if navgroup.page.menu2 %}
<li class="dropdown{% if page.navgroup == navgroup.id %} active{% endif %}">
<a href="{{navgroup.page.url}}">{{navgroup.title}}</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="{{navgroup.page.url}}">{{navgroup.title_in_menu}}</a>
</li>
<li class="divider"></li>
{% for child in navgroup.page.menu2 %}
<li>
<a href="{{child.reference.url}}">{{child.reference.title}}</a>
</li>
{% endfor %}
</ul>
</li><!-- {{ navgroup.id }} -->
{% else %}
<li class="{% if page.navgroup == navgroup.id %}active{% endif %}"><a href="{{navgroup.page.url}}">{{navgroup.title}}</a></li><!-- {{ navgroup.id }} -->
{% endif %}
{% endfor %}
</ul>
</div><!-- /.navbar-collapse -->

</div><!-- /.container-fluid -->
</div>
</nav>
@@ -0,0 +1,44 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">


{{ content }}


<script language="JavaScript" type="application/javascript">
$(window).resize(function () {
$('body').css('padding-top', parseInt($('#header').css("height"))+10);
$('body').css('padding-bottom', parseInt($('#footer').css("height"))+10);
});

$(window).load(function () {
$('body').css('padding-top', parseInt($('#header').css("height"))+10);
$('body').css('padding-bottom', parseInt($('#footer').css("height"))+10);
});
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>

</body>

</html>

0 comments on commit 1b0afa8

Please sign in to comment.