Skip to content

Commit

Permalink
update theme (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Apr 7, 2017
1 parent 47a5fc8 commit adcb831
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/cinder/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "main.html" %}

{% block content %}

Expand Down
6 changes: 3 additions & 3 deletions docs/cinder/content.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% if meta.source %}
{% if page.meta.source %}
<div class="source-links">
{% for filename in meta.source %}
{% for filename in page.meta.source %}
<span class="label label-primary">{{ filename }}</span>
{% endfor %}
</div>
{% endif %}

{{ content }}
{{ page.content }}
1 change: 1 addition & 0 deletions docs/cinder/css/bootstrap-custom.min.css__old

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions docs/cinder/css/cinder.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,17 @@ pre {
footer > hr {
width: 35%;
}

/*
modified dropbox menu, Sebastian Raschka 2016
*/

.dropdown-menu > li > a {
display: block;
padding: 5px 20px;
clear: both;
font-weight: normal;
line-height: 1.3;
color: #333333;
white-space: nowrap;
}
28 changes: 14 additions & 14 deletions docs/cinder/base.html → docs/cinder/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">{% if page_description %}
<meta name="description" content="{{ page_description }}">{% endif %} {% if site_author %}
<meta name="author" content="{{ site_author }}">{% endif %} {% if canonical_url %}
<link rel="canonical" href="{{ canonical_url }}">{% endif %} {% if favicon %}
<link rel="shortcut icon" href="{{ base_url }}/{{ favicon }}">{% else %}
<page.page.meta charset="utf-8">
<page.page.meta http-equiv="X-UA-Compatible" page.content="IE=edge">
<page.page.meta name="viewport" page.content="width=device-width, initial-scale=1.0">{% if config.site_description %}
<page.page.meta name="description" page.content="{{ config.site_description }}">{% endif %} {% if config.site_author %}
<page.page.meta name="author" page.content="{{ config.site_author }}">{% endif %} {% if page.canonical_url %}
<link rel="canonical" href="{{ page.canonical_url }}">{% endif %} {% if "{{ base_url }}/img/favicon.ico" %}
<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% else %}
<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}

<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>

<link href="{{ base_url }}/css/bootstrap-custom.min.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
Expand Down Expand Up @@ -40,7 +40,7 @@
});
</script>

{% if google_analytics %}
{% if config.google_analytics %}
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
Expand All @@ -54,13 +54,13 @@
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
ga('create', '{{ config.google_analytics[0] }}', '{{ config.google_analytics[1] }}');
ga('send', 'pageview');
</script>
{% endif %}
</head>

<body{% if current_page and current_page.is_homepage %} class="homepage" {% endif %}>
<body{% if page and page.is_homepage %} class="homepage" {% endif %}>

{% include "nav.html" %}

Expand All @@ -73,8 +73,8 @@

<footer class="col-md-12 text-center">
<hr>
<p>{% if copyright %}
<small>{{ copyright }}<br></small>
<p>{% if config.copyright %}
<small>{{ config.copyright }}<br></small>
{% endif %}
<small>Documentation built with <a href="http://www.mkdocs.org/">MkDocs</a>.</p></small>
</footer>
Expand Down Expand Up @@ -122,7 +122,7 @@ <h4 class="modal-title" id="exampleModalLabel">Search</h4>
</body>

</html>
{% if current_page and current_page.is_homepage %}
{% if page and page.is_homepage %}
<!--
MkDocs version : {{ mkdocs_version }}
Build Date UTC : {{ build_date_utc }}
Expand Down
37 changes: 24 additions & 13 deletions docs/cinder/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- Collapsed navigation -->
<div class="navbar-header">
{% if include_nav or include_next_prev or repo_url %}
{% if nav|length>1 or page.next_page or page.previous_page or page.repo_url %}
<!-- Expander button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
Expand All @@ -14,12 +14,12 @@
{% endif %}

<!-- Main title -->
<a class="navbar-brand" href="{{ homepage_url }}">{{ site_name }}</a>
<a class="navbar-brand" href="{{ nav.homepage.url }}">{{ config.site_name }}</a>
</div>

<!-- Expanded navigation -->
<div class="navbar-collapse collapse">
{% if include_nav %}
{% if nav|length>1 %}
<!-- Main navigation -->
<ul class="nav navbar-nav">
{% for nav_item in nav %}
Expand Down Expand Up @@ -47,27 +47,38 @@
<i class="fa fa-search"></i> Search
</a>
</li>
{% if include_next_prev %}
<li {% if not previous_page %}class="disabled"{% endif %}>
<a rel="next" {% if previous_page %}href="{{ previous_page.url }}"{% endif %}>
{% if page.next_page or page.previous_page %}
<li {% if not page.previous_page %}class="disabled"{% endif %}>
<a rel="next" {% if page.previous_page %}href="{{ page.previous_page.url }}"{% endif %}>
<i class="fa fa-arrow-left"></i> Previous
</a>
</li>
<li {% if not next_page %}class="disabled"{% endif %}>
<a rel="prev" {% if next_page %}href="{{ next_page.url }}"{% endif %}>
<li {% if not page.next_page %}class="disabled"{% endif %}>
<a rel="prev" {% if page.next_page %}href="{{ page.next_page.url }}"{% endif %}>
Next <i class="fa fa-arrow-right"></i>
</a>
</li>
{% endif %}
{% if repo_url %}


<li>
<a href="https://github.com/rasbt/mlxtend">
<i class="fa fa-github"></i>
GitHub
</a>
</li>



{% if page.repo_url %}
<li>
<a href="{{ repo_url }}">
{% if repo_name == 'GitHub' %}
<a href="{{ page.repo_url }}">
{% if page.repo_name == 'GitHub' %}
<i class="fa fa-github"></i>
{% elif repo_name == 'Bitbucket' %}
{% elif page.repo_name == 'Bitbucket' %}
<i class="fa fa-bitbucket"></i>
{% endif %}
{{ repo_name }}
{{ page.repo_name }}
</a>
</li>
{% endif %}
Expand Down
5 changes: 4 additions & 1 deletion docs/cinder/toc.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<div class="bs-sidebar hidden-print affix well" role="complementary">
<ul class="nav bs-sidenav">
{% for toc_item in toc %}
{% for toc_item in page.toc %}
<li class="main {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{% for toc_item in toc_item.children %}
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
<!-- {% for toc_item_2 in toc_item.children %}
<li><a href="{{ toc_item_2.url }}">{{ toc_item_2.title }}</a></li>
{% endfor %} -->
{% endfor %}
{% endfor %}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions docs/sources/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ The CHANGELOG for the current development version is available at

##### Downloads

- [Source code (zip)](https://github.com/rasbt/biopandas/releases/tag/v0.2.0)
- [Source code (tar.gz)](https://github.com/rasbt/biopandas/releases/tag/v0.2.0.tar.gz)
- [Source code (zip)](https://github.com/rasbt/biopandas/archive/v0.2.0.zip)
- [Source code (tar.gz)](https://github.com/rasbt/biopandas/archive/v0.2.0.tar.gz)

##### New Features

Expand Down

0 comments on commit adcb831

Please sign in to comment.