Skip to content

Commit

Permalink
github ribbon on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Feb 6, 2015
1 parent 0a583b2 commit 291e1dd
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 3 deletions.
Binary file modified docs/_build/doctrees/api.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 9d3b59a3aafdc74a296fd540fa79c15d
config: 3d3aca0ff9764a8ca1207d1a2e671bb0
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion docs/_build/html/customizing.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ <h2>Changing the index<a class="headerlink" href="#changing-the-index" title="Pe
<p>What happened here? We should always extend from &#8220;appbuilder/base.html&#8221; this is the base template that will include all CSS&#8217;s, Javascripts, and construct the menu based on the user&#8217;s security definition.</p>
<p>Next we will override the &#8220;content&#8221; block, we could override other areas like CSS, extend CSS, Javascript or extend javascript. We can even override the base.html completely</p>
<p>I&#8217;ve presented the text on the content like:</p>
<div class="highlight-python"><div class="highlight"><pre>{{_(&quot;text to be translated&quot;)}}
<div class="highlight-python"><div class="highlight"><pre><span class="p">{{</span><span class="n">_</span><span class="p">(</span><span class="s">&quot;text to be translated&quot;</span><span class="p">)}}</span>
</pre></div>
</div>
<p>So that we can use Babel to translate our index text</p>
Expand Down
Binary file modified docs/_build/html/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% extends "!layout.html" %}

{# Custom CSS overrides #}
{# set bootswatch_css_custom = ['_static/my-styles.css'] #}

{# Add github banner (from: https://github.com/blog/273-github-ribbons). #}
{% block header %}
{{ super() }}
<a href="https://github.com/dpgaspar/Flask-AppBuilder"
class="visible-desktop hidden-xs"><img
id="gh-banner"
style="position: absolute; top: 50px; right: 0; border: 0;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png"
alt="Fork me on GitHub"></a>
<script>
// Adjust banner height.
$(function () {
var navHeight = $(".navbar .container").css("height");
$("#gh-banner").css("top", navHeight);
});
</script>
{% endblock %}

0 comments on commit 291e1dd

Please sign in to comment.