]> granicus.if.org Git - pdns/commitdiff
Change theme to have a footer with handy stuff
authorPieter Lexis <pieter@plexis.eu>
Fri, 5 Sep 2014 22:30:57 +0000 (00:30 +0200)
committerPieter Lexis <pieter@plexis.eu>
Tue, 25 Nov 2014 19:11:11 +0000 (20:11 +0100)
pdns/docs/markdown/theme/base.html
pdns/docs/markdown/theme/css/base.css
pdns/docs/markdown/theme/footer.html [new file with mode: 0644]
pdns/docs/markdown/theme/nav.html
pdns/docs/mkdocs.yml

index be7736460217637da2468629fcbe812e14c0d8d0..9b894ddd859d29c4bac5e278c60c4bfe80816225 100644 (file)
@@ -46,7 +46,7 @@
             <div class="col-md-3">{% include "toc.html" %}</div>
             <div class="col-md-9" role="main">{% include "content.html" %}</div>
         </div>
-
+        {% include "footer.html" %}
         {% if include_search %}{% include "search.html" %}{% endif %}
 
         <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
index 7c2df9dd4443a3f65f963cdc79e6b0a06ce4bb21..afb09c8f35179f2c2224266fbdab05d19c9eb719 100644 (file)
@@ -1,6 +1,7 @@
 body {
     padding-top: 70px;
     font-size: 13px;
+    padding-bottom: 30px;
 }
 
 h1 {
@@ -127,3 +128,17 @@ div.source-links {
         width: 263px;
     }
 }
+
+/* Footer */
+.footer {
+  position: fixed;
+  bottom: 0px;
+  width: 100%;
+  height: 30px;
+  background-color: #222;
+}
+
+.footer-bar > li > a {
+  padding-top: 5px;
+  padding-bottom: 5px;
+}
diff --git a/pdns/docs/markdown/theme/footer.html b/pdns/docs/markdown/theme/footer.html
new file mode 100644 (file)
index 0000000..1fd10f7
--- /dev/null
@@ -0,0 +1,28 @@
+<div class="footer">
+  <div class="container">
+    <ul class="nav navbar-nav navbar-right footer-bar">
+      {% if repo_url %}
+      <li>
+          <a href="{{ repo_url }}">
+              {% if repo_name == 'GitHub' %}
+                  <i class="fa fa-github"></i>
+              {% elif repo_name == 'Bitbucket' %}
+                  <i class="fa fa-bitbucket"></i>
+              {% endif %}
+              {{ repo_name }}
+          </a>
+      </li>
+      {% endif %}
+      <li {% if not previous_page %}class="disabled"{% endif %}>
+        <a rel="next" {% if previous_page %}href="{{ 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 %}>
+          Next <i class="fa fa-arrow-right"></i>
+        </a>
+      </li>
+    </ul>
+  </div>
+</div>
index 378d6585d015324509c40de6a1fcf93ccd3a32b2..b0fae6185e75344e43bd07e566d9fb4215b15ccb 100644 (file)
                     <a href="#searchModal" data-toggle="modal"><i class="fa fa-search"></i> Search</a>
                 </li>
                 {% endif %}
-<!--                <li {% if not previous_page %}class="disabled"{% endif %}>
-                    <a rel="next" {% if previous_page %}href="{{ 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 %}>
-                        Next <i class="fa fa-arrow-right"></i>
-                    </a>
-                </li> -->
-                {% if repo_url %}
-                <li>
-                    <a href="{{ repo_url }}">
-                        {% if repo_name == 'GitHub' %}
-                            <i class="fa fa-github"></i>
-                        {% elif repo_name == 'Bitbucket' %}
-                            <i class="fa fa-bitbucket"></i>
-                        {% endif %}
-                        {{ repo_name }}
-                    </a>
-                </li>
-                {% endif %}
             </ul>
         </div>
     </div>
index 0deca363e661b0ef8065194ceb4291639580029f..bf8ea39256b2569ccb4ef5c59c175659171c03f4 100644 (file)
@@ -1,5 +1,5 @@
 site_name: PowerDNS
-#repo_url: https://github.com/PowerDNS/pdns
+repo_url: https://github.com/PowerDNS/pdns
 docs_dir: doc-build
 site_dir: html-new
 theme_dir: markdown/theme