From 08b841cbd94e7cd16c425fc2660d8fa079c7e514 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Sun, 24 Jan 2016 11:29:40 +0300 Subject: [PATCH] Makefile for upload and switch doc theme --- documentation/Makefile | 8 ++++++++ documentation/source/conf.py | 7 +++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/documentation/Makefile b/documentation/Makefile index 1669abf..ba87cef 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -190,3 +190,11 @@ pseudoxml: $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml @echo @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." + +SSH_CONF=kimsufi +SSH_TARGET_DIR=/var/www/opytex.org/opytex + +rsync_upload: html + rsync -e "ssh" -P -rvzc --delete $(BUILDDIR)/html/ $(SSH_CONF):$(SSH_TARGET_DIR) --cvs-exclude + + diff --git a/documentation/source/conf.py b/documentation/source/conf.py index 66ef397..65ec475 100644 --- a/documentation/source/conf.py +++ b/documentation/source/conf.py @@ -53,7 +53,7 @@ master_doc = 'index' # General information about the project. project = 'Opytex' -copyright = '2015, Benjamin Bertrand' +copyright = '2016, Benjamin Bertrand' author = 'Benjamin Bertrand' # The version info for the project you're documenting, acts as replacement for @@ -114,7 +114,10 @@ todo_include_todos = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'alabaster' +#html_theme = 'alabaster' +import sphinx_rtd_theme +html_theme = "sphinx_rtd_theme" +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the