Layout: Add Breadcrumbs To Dev Docs

This commit is contained in:
David A. Harding 2015-07-10 06:22:02 -04:00
parent df3b8dcf28
commit 7d7494155f
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7
10 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{% comment %}
This file is licensed under the MIT License (MIT) available on
http://opensource.org/licenses/MIT.
{% endcomment %}
<div class="breadcrumbs">
{% for crumb in page.breadcrumbs %}
{% if forloop.last %}
{% case crumb %}
{% when "GLOSSARY_ENTRY_TITLE" %}
{% comment %} ## Only show first synonym in crumb ## {% endcomment %}
{% for synonym in page.required.synonyms_shown_in_glossary_capitalize_first_letter %}
{% if forloop.first %}{{synonym}}{% endif %}
{% endfor %}
{% else %}{{crumb}}
{% endcase %}
{% else %}
{% case crumb %}
{% comment %}/// Alphabetical order by crumb \\\{% endcomment %}
{% when "bitcoin" %}<a href="/{{page.lang}}/">{% translate bitcoin vocabulary %}</a>
{% when "dev docs" %}<a href="/en/developer-documentation">Dev Docs</a>
{% when "glossary" %}<a href="/en/developer-glossary">Glossary</a>
{% else %}{% die "Breadcrumb not found in _includes/layout/breadcrumbs.html" %}
{% endcase %}
&gt;
{% endif %}
{% endfor %}
</div>

View file

@ -22,6 +22,7 @@
</div></div>
<div class="body">
{% include layout/base/breadcrumbs.html %}
{% include layout/base/content.html %}
<div class="footer">
{% include layout/base/footer-menu.html %}

View file

@ -4,6 +4,11 @@
layout: base
lang: en
breadcrumbs:
- bitcoin
- dev docs
- glossary
- GLOSSARY_ENTRY_TITLE
---
<link rel="stylesheet" href="/css/jquery-ui.min.css">

View file

@ -359,6 +359,10 @@ table td,table th{
display:block;
}
.breadcrumbs {
font-size: 75%;
padding-left: 10px;
}
.content{
position:relative;
padding:30px 40px 40px 40px;

View file

@ -706,6 +706,7 @@ en:
footer: "Released under the <a href=\"http://opensource.org/licenses/mit-license.php\" target=\"_blank\">MIT license</a>"
sponsor: "A community website sponsored by"
getstarted: "Get started with Bitcoin"
bitcoin-core: "Bitcoin Core"
url:
about-us: about-us
bitcoin-for-developers: bitcoin-for-developers

View file

@ -6,6 +6,9 @@ layout: base
lang: en
id: developer-documentation
title: "Developer Documentation - Bitcoin"
breadcrumbs:
- bitcoin
- Developer Documentation
---
<link rel="stylesheet" href="/css/jquery-ui.min.css">

View file

@ -6,6 +6,10 @@ layout: base
lang: en
id: developer-examples
title: "Developer Examples - Bitcoin"
breadcrumbs:
- bitcoin
- dev docs
- Examples
---
<link rel="stylesheet" href="/css/jquery-ui.min.css">

View file

@ -5,6 +5,10 @@
title: Developer Glossary - Bitcoin
layout: base
lang: en
breadcrumbs:
- bitcoin
- dev docs
- Glossary
---
<link rel="stylesheet" href="/css/jquery-ui.min.css">

View file

@ -6,6 +6,10 @@ layout: base
lang: en
id: developer-guide
title: "Developer Guide - Bitcoin"
breadcrumbs:
- bitcoin
- dev docs
- Guide
---
<link rel="stylesheet" href="/css/jquery-ui.min.css">

View file

@ -6,6 +6,10 @@ layout: base
lang: en
id: developer-reference
title: "Developer Reference - Bitcoin"
breadcrumbs:
- bitcoin
- dev docs
- Reference
---
<link rel="stylesheet" href="/css/jquery-ui.min.css">