From c810da4ef7ab29e80e4ebbfd7ceaf857567d0e68 Mon Sep 17 00:00:00 2001 From: Heiko Strathmann Date: Sat, 27 Feb 2016 13:26:07 +0000 Subject: [PATCH] add customized tab titles to cookbook and move cpp down the list --- doc/cookbook/source/conf.py | 16 ++++++++++++++-- doc/cookbook/source/templates/page.html | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/doc/cookbook/source/conf.py b/doc/cookbook/source/conf.py index 70c45afe752..bafb3ff3e07 100644 --- a/doc/cookbook/source/conf.py +++ b/doc/cookbook/source/conf.py @@ -186,20 +186,32 @@ #html_file_suffix = None target_languages = ( - ('cpp', 'cpp'), ('python', 'py'), ('octave', 'm'), ('r', 'R'), ('java', 'java'), + ('cpp', 'cpp'), ('csharp', 'cs'), ('ruby', 'rb'), ) +target_languages_tab_titles = { + 'python': 'Python', + 'octave': 'Octave', + 'r': 'R', + 'java': 'Java', + 'cpp': 'C++', + 'csharp': 'C#', + 'ruby': 'Ruby', + } + generated_examples_path = None html_context = { 'target_languages': - [x[0] for x in target_languages] + [x[0] for x in target_languages], + + 'target_languages_tab_titles': target_languages_tab_titles } # Output file base name for HTML help builder. diff --git a/doc/cookbook/source/templates/page.html b/doc/cookbook/source/templates/page.html index f6ebafc336d..83585420aa7 100644 --- a/doc/cookbook/source/templates/page.html +++ b/doc/cookbook/source/templates/page.html @@ -8,7 +8,7 @@