From 0e07c44d4a9af675a387eaf1a7202a7f6cd423f5 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Sun, 24 Jan 2016 08:29:05 +0300 Subject: [PATCH] rtd theme and makeflie command to upload --- documentation/Makefile | 8 ++++++++ documentation/source/conf.py | 25 +++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/documentation/Makefile b/documentation/Makefile index 76646c2..5c686ac 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -175,3 +175,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/pymath + +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 0c87353..0fb3f74 100644 --- a/documentation/source/conf.py +++ b/documentation/source/conf.py @@ -104,12 +104,33 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'classic' +#html_theme = 'classic' + +# Activate the theme. +#import sphinx_bootstrap_theme +#html_theme = 'bootstrap' +#html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() +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 # documentation. -#html_theme_options = {} +html_theme_options = { + #'navbar_title': "Opytex", + #'navbar_links': [ + # ('Opytex', "/opytex/"), + # ("pyMath", "/pymaht/"), + # ("Enseignement", "/Enseignements"), + # #('blog', '/blog_index.html'), + # ('À propos', "/about") + # ], + + #'navbar_pagenav_name': "Sommaire", + + #'navbar_sidebarrel': False, + } # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = []