codernity avatar codernity committed ba59720

Docs theme update

Comments (0)

Files changed (5)

docs/_themes/sphinx-codernity/layout.html

             {%- endif %}
     {%- endif %}
 {%- endmacro -%}
-
 {%- macro seachbox() %}
     {%- if pagename != "search" %}
         <form class="navbar-search" action="{{ pathto('search') }}"
         </div>
         <div class="horizontal-bar">
             <div class="container">
-                <h1><a href="index.html">{{ shorttitle|e }}</a></h1>
+                <h1>
+                    <a href="index.html">{{ shorttitle|e }}</a>
+                    <a class="btn btn-primary" href="{{ theme_download_url }}"><i class="icon-download-alt icon-white"></i> Download</a>
+                </h1>
             </div>
         </div>
         <!--{{ seachbox() }}-->

docs/_themes/sphinx-codernity/static/bootstrap-affix.js

 
   "use strict"; // jshint ;_;
 
+  //temporary workaround
+  $(window).scroll(function () {
+    $('div.docs-sidebar > ul').css('width', $('div.docs-sidebar').css('width'))
+  });
 
  /* AFFIX CLASS DEFINITION
   * ====================== */
       'bottom' : offsetTop != null && scrollTop <= offsetTop ?
       'top'    : false
 
-    //temporary workaround
-    this.$element.css('width', $('div.docs-sidebar').css('width'))
-
     if (this.affixed === affix) return
 
     this.affixed = affix

docs/_themes/sphinx-codernity/static/docs.css

   list-style-type: none;
 }
 
+.docs-sidebar > ul li {
+  line-height: 14px;
+}
+
 .docs-sidebar > ul > li > a {
   display: block;
   *width: 190px;
 a.headerlink {
     color: white;
     text-decoration: none;
+    margin-left: 5px;
 }
 
 a.headerlink:hover {
         width: auto;
     }
 }
+
+div.horizontal-bar h1 a.btn {
+  float: right;
+  color: white;
+  margin-right: 10px;
+  margin-top: 7px;
+  font-weight: normal;
+}

docs/_themes/sphinx-codernity/static/labs.css

     width: 36px;
 }
 
-ul.current > li > a.reference.internal {
+div.docs-sidebar > ul > li > a.reference.internal {
     background-image: url('chevron_right.png');
     background-repeat: no-repeat;
-    background-position: right 13px;
+    background-position: right 10px;
 }
 
-ul.current > li > a.current.reference.internal {
+div.docs-sidebar > ul > li > a.current.reference.internal {
     background-image: url('chevron_right_white.png');
 }

docs/_themes/sphinx-codernity/theme.conf

 stylesheet = sphinx-codernity.css
 
 [options]
-nosidebar = false
-sidebarwidth = 200
-logo_width =
-logo_height =
-github_user =
-github_repo =
-home_url =
+download_url = https://bitbucket.org/codernity/codernitydb/get/default.tar.gz
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.