cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pdion...@apache.org
Subject [48/55] cloudstack-docs-install git commit: theme tuning
Date Thu, 09 Apr 2015 00:21:17 GMT
theme tuning


Project: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/commit/22790a6e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/tree/22790a6e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/diff/22790a6e

Branch: refs/heads/master
Commit: 22790a6e5177ece2e684b1a989c45704c80e89c5
Parents: 708ae1e
Author: Pierre-Luc Dion <pdion891@apache.org>
Authored: Mon Apr 6 00:41:04 2015 -0400
Committer: Pierre-Luc Dion <pdion891@apache.org>
Committed: Mon Apr 6 00:41:04 2015 -0400

----------------------------------------------------------------------
 source/conf.py                                        |  4 ++--
 sphinx_bootstrap_theme/bootstrap/layout.html          | 14 ++++++++++++++
 sphinx_bootstrap_theme/bootstrap/navbar.html          |  2 +-
 sphinx_bootstrap_theme/bootstrap/relations.html       |  4 ++--
 .../static/bootstrap-2.3.2/css/bootstrap.css          |  1 +
 sphinx_bootstrap_theme/bootstrap/theme.conf           |  2 +-
 6 files changed, 21 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/blob/22790a6e/source/conf.py
----------------------------------------------------------------------
diff --git a/source/conf.py b/source/conf.py
index 66a03d2..8f771dd 100644
--- a/source/conf.py
+++ b/source/conf.py
@@ -118,7 +118,7 @@ html_theme_options = {
 
     # Tab name for the current pages TOC. (Default: "Page")
     #'navbar_pagenav_name': "Page",
-
+    'navbar_pagenav': "false",
     # A list of tuples containing pages or urls to link to.
     # Valid tuples should be in the following forms:
     #    (name, page)                 # a link to a page
@@ -263,7 +263,7 @@ html_sidebars = {
 #html_show_sourcelink = True
 
 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
-#html_show_sphinx = True
+html_show_sphinx = False
 
 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
 #html_show_copyright = True

http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/blob/22790a6e/sphinx_bootstrap_theme/bootstrap/layout.html
----------------------------------------------------------------------
diff --git a/sphinx_bootstrap_theme/bootstrap/layout.html b/sphinx_bootstrap_theme/bootstrap/layout.html
index a28f60f..bf143fe 100644
--- a/sphinx_bootstrap_theme/bootstrap/layout.html
+++ b/sphinx_bootstrap_theme/bootstrap/layout.html
@@ -117,6 +117,20 @@
   <div class="container">
     <p class="pull-right">
       <a href="#">Back to top</a>
+      {%- if prev %}
+          | <a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags
}}">
+            {%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-left visible-tablet"></span>{%-
endif -%}
+            {%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-left
visible-sm"></span>{%- endif -%}
+            <span class="hidden-sm hidden-tablet">{{ "&laquo;"|safe }} {{ prev.title|striptags|truncate(length=50,
killwords=False) }}</span>
+          </a>
+      {%- endif %}
+      {%- if next %}
+          | <a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags
}}">
+            {%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-right visible-tablet"></span>{%-
endif -%}
+            {%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-right
visible-sm"></span>{%- endif -%}
+            <span class="hidden-sm hidden-tablet">{{ next.title|striptags|truncate(length=50,
killwords=False) }} {{ "&raquo;"|safe }}</span>
+          </a>
+      {%- endif %}
       {% if theme_source_link_position == "footer" %}
         <br/>
         {% include "sourcelink.html" %}

http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/blob/22790a6e/sphinx_bootstrap_theme/bootstrap/navbar.html
----------------------------------------------------------------------
diff --git a/sphinx_bootstrap_theme/bootstrap/navbar.html b/sphinx_bootstrap_theme/bootstrap/navbar.html
index cd60959..829a4c3 100644
--- a/sphinx_bootstrap_theme/bootstrap/navbar.html
+++ b/sphinx_bootstrap_theme/bootstrap/navbar.html
@@ -26,7 +26,7 @@
             {% block navbartoc %}
               {% include "globaltoc.html" %}
               {% if theme_navbar_pagenav %}
-                {% include "navbartoc.html" %}
+                
               {% endif %}
             {% endblock %}
             {% if theme_navbar_sidebarrel %}

http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/blob/22790a6e/sphinx_bootstrap_theme/bootstrap/relations.html
----------------------------------------------------------------------
diff --git a/sphinx_bootstrap_theme/bootstrap/relations.html b/sphinx_bootstrap_theme/bootstrap/relations.html
index 7bdc8f1..d48ed70 100644
--- a/sphinx_bootstrap_theme/bootstrap/relations.html
+++ b/sphinx_bootstrap_theme/bootstrap/relations.html
@@ -4,7 +4,7 @@
     <a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags
}}">
       {%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-left visible-tablet"></span>{%-
endif -%}
       {%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-left
visible-sm"></span>{%- endif -%}
-      <span class="hidden-sm hidden-tablet">{{ "&laquo;"|safe }} {{ prev.title|striptags|truncate(length=16,
killwords=True) }}</span>
+      <span class="hidden-sm hidden-tablet">{{ "&laquo;"|safe }} {{ prev.title|striptags|truncate(length=50,
killwords=False) }}</span>
     </a>
   </li>
 {%- endif %}
@@ -13,7 +13,7 @@
     <a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags }}">
       {%- if theme_bootstrap_version == "2" -%}<span class="icon-chevron-right visible-tablet"></span>{%-
endif -%}
       {%- if theme_bootstrap_version == "3" -%}<span class="glyphicon glyphicon-chevron-right
visible-sm"></span>{%- endif -%}
-      <span class="hidden-sm hidden-tablet">{{ next.title|striptags|truncate(length=16,
killwords=True) }} {{ "&raquo;"|safe }}</span>
+      <span class="hidden-sm hidden-tablet">{{ next.title|striptags|truncate(length=50,
killwords=False) }} {{ "&raquo;"|safe }}</span>
     </a>
   </li>
 {%- endif %}

http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/blob/22790a6e/sphinx_bootstrap_theme/bootstrap/static/bootstrap-2.3.2/css/bootstrap.css
----------------------------------------------------------------------
diff --git a/sphinx_bootstrap_theme/bootstrap/static/bootstrap-2.3.2/css/bootstrap.css b/sphinx_bootstrap_theme/bootstrap/static/bootstrap-2.3.2/css/bootstrap.css
index b725064..a11b392 100644
--- a/sphinx_bootstrap_theme/bootstrap/static/bootstrap-2.3.2/css/bootstrap.css
+++ b/sphinx_bootstrap_theme/bootstrap/static/bootstrap-2.3.2/css/bootstrap.css
@@ -2875,6 +2875,7 @@ table th[class*="span"],
 .dropup,
 .dropdown {
   position: relative;
+  margin-left: 25px;
 }
 
 .dropdown-toggle {

http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/blob/22790a6e/sphinx_bootstrap_theme/bootstrap/theme.conf
----------------------------------------------------------------------
diff --git a/sphinx_bootstrap_theme/bootstrap/theme.conf b/sphinx_bootstrap_theme/bootstrap/theme.conf
index 27c29f0..a2d1667 100644
--- a/sphinx_bootstrap_theme/bootstrap/theme.conf
+++ b/sphinx_bootstrap_theme/bootstrap/theme.conf
@@ -20,7 +20,7 @@ navbar_links =
 navbar_sidebarrel = true
 
 # Render the current pages TOC in the navbar. (Default: true)
-navbar_pagenav = true
+navbar_pagenav = false
 
 # Tab name for the current pages TOC. (Default: "Page")
 navbar_pagenav_name = Page


Mime
View raw message