From a6b2b5ee4f6678731a0266427ea0cf2dc93e25fc Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Mon, 4 Nov 2013 15:18:33 -0800 Subject: [PATCH] more specific watch so grunt doesn't error. next/prev links in footer fixes #23 --- Gruntfile.js | 2 +- demo_docs/source/index.rst | 4 +--- sass/_theme_layout.sass | 3 ++- sphinx_rtd_theme/footer.html | 11 +++++++++++ sphinx_rtd_theme/static/css/theme.css | 2 +- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index e833fb18..b0fb08f9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -56,7 +56,7 @@ module.exports = function(grunt) { }, /* Changes in theme dir rebuild sphinx */ sphinx: { - files: ['sphinx_rtd_theme/**/*', 'demo_docs/**/*'], + files: ['sphinx_rtd_theme/**/*', 'demo_docs/**/*.rst'], tasks: ['clean:build','exec:build_sphinx'] }, /* live-reload the demo_docs if sphinx re-builds */ diff --git a/demo_docs/source/index.rst b/demo_docs/source/index.rst index ed0c10f4..c25eaa26 100644 --- a/demo_docs/source/index.rst +++ b/demo_docs/source/index.rst @@ -9,9 +9,7 @@ Welcome to Sphinx RTD theme demo's documentation! Contents: .. toctree:: - :maxdepth: 2 - -test + :maxdepth: 2 API Test ======== diff --git a/sass/_theme_layout.sass b/sass/_theme_layout.sass index 4233dd9b..5190577c 100644 --- a/sass/_theme_layout.sass +++ b/sass/_theme_layout.sass @@ -221,7 +221,8 @@ footer color: $gray-light p margin-bottom: $base-line-height / 2 - +.rst-footer-buttons + +clearfix +media($tablet) .wy-body-for-nav background: $section-background-color diff --git a/sphinx_rtd_theme/footer.html b/sphinx_rtd_theme/footer.html index 77c7ae60..a8298a5f 100644 --- a/sphinx_rtd_theme/footer.html +++ b/sphinx_rtd_theme/footer.html @@ -1,4 +1,15 @@