more specific watch so grunt doesn't error. next/prev links in footer

fixes #23
This commit is contained in:
Dave Snider 2013-11-04 15:18:33 -08:00
parent 03133fca1c
commit a6b2b5ee4f
5 changed files with 16 additions and 6 deletions

View File

@ -56,7 +56,7 @@ module.exports = function(grunt) {
}, },
/* Changes in theme dir rebuild sphinx */ /* Changes in theme dir rebuild sphinx */
sphinx: { sphinx: {
files: ['sphinx_rtd_theme/**/*', 'demo_docs/**/*'], files: ['sphinx_rtd_theme/**/*', 'demo_docs/**/*.rst'],
tasks: ['clean:build','exec:build_sphinx'] tasks: ['clean:build','exec:build_sphinx']
}, },
/* live-reload the demo_docs if sphinx re-builds */ /* live-reload the demo_docs if sphinx re-builds */

View File

@ -11,8 +11,6 @@ Contents:
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 2
test
API Test API Test
======== ========

View File

@ -221,7 +221,8 @@ footer
color: $gray-light color: $gray-light
p p
margin-bottom: $base-line-height / 2 margin-bottom: $base-line-height / 2
.rst-footer-buttons
+clearfix
+media($tablet) +media($tablet)
.wy-body-for-nav .wy-body-for-nav
background: $section-background-color background: $section-background-color

View File

@ -1,4 +1,15 @@
<footer> <footer>
{% if next or prev %}
<div class="rst-footer-buttons">
{% if next %}
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}"/>Next <span class="icon icon-circle-arrow-right"></span></a>
{% endif %}
</div>
{% if prev %}
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}"><span class="icon icon-circle-arrow-left"></span> Previous</a>
{% endif %}
{% endif %}
<hr/> <hr/>
<p> <p>

File diff suppressed because one or more lines are too long