From fb332197bfabe5eb3b8dbd83d3d5c0d9032d71ca Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 4 Nov 2013 14:17:43 -0500 Subject: [PATCH] Help: Configure html page navigation bars Add a small CMake logo to the left side of the header and footer navigation bars. Set the html theme, title, and short title explicitly. --- Utilities/Sphinx/conf.py.in | 4 ++++ Utilities/Sphinx/static/cmake-logo-16.png | Bin 0 -> 761 bytes Utilities/Sphinx/templates/layout.html | 13 +++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 Utilities/Sphinx/static/cmake-logo-16.png create mode 100644 Utilities/Sphinx/templates/layout.html diff --git a/Utilities/Sphinx/conf.py.in b/Utilities/Sphinx/conf.py.in index d8daee489a..e8f5d8a1ef 100644 --- a/Utilities/Sphinx/conf.py.in +++ b/Utilities/Sphinx/conf.py.in @@ -30,6 +30,7 @@ primary_domain = 'cmake' exclude_patterns = [] extensions = ['cmake'] +templates_path = ['@conf_path@/templates'] cmake_manuals = sorted(glob.glob(r'@conf_docs@/manual/*.rst')) cmake_manual_description = re.compile('^\.\. cmake-manual-description:(.*)$') @@ -57,3 +58,6 @@ man_show_urls = False html_show_sourcelink = True html_static_path = ['@conf_path@/static'] html_style = 'cmake.css' +html_theme = 'default' +html_title = 'CMake %s Documentation' % release +html_short_title = '%s Documentation' % release diff --git a/Utilities/Sphinx/static/cmake-logo-16.png b/Utilities/Sphinx/static/cmake-logo-16.png new file mode 100644 index 0000000000000000000000000000000000000000..2039c25b045c545c27a3b57072d7e6277148c3b9 GIT binary patch literal 761 zcmV|8vjx|Ce*GMxAO|ybNiWit2d{ZpHNkQ2Ea}^Sv5ry0zk;GD08Hh>!eqhuC6x-mEubnCh2o6Ce-k`>SZfXp zJkWwhac6!ivb4o$Y}*HEVBYXNKv!4I-LecZH5nVQ9gnJL5^Ib=|7==wCgD85#fv!r z`up#zQmWlQe#p*}>rs(SbO@0+6bhvQ?0Q!?b!rg+nT#qYCKjHVo-X4QJ?uaXY3O2I zD0F-_MNre`0#2TM13)@`Pc=<5Xt=QB1=i6$&N#$Y*$Z)ru>1wkoU9*HE*c61yD$k*13dh_NwhKBBt&zI%cSn#xMJE)NiJ9dqdO8I0b zZOq0-3|&VEVQ!Ac`v4sv90;HRynh=f8e6{q(`S9J*7=djxvSWbEM5le-vw4#;~1z& z!=TwT&8QH+pX72cUC%@Fb3TLjzXZpp!*`w3>jjh7uJEntDlefNnz715h!Qt0RY-QWQvDSBcCNAG#l6>vq7l9Jw^q)NH%re+KPSN*S zTn*AJ&0tg*`KQ+R7fL7*(^eeW@a*lb2kj->gA(A@hM5KmfCH2P1#lI*M-!|aiG4Wn r_|+z5Ms5WB*`MW6zy9vEM}zhsBVzM(VhfAh00000NkvXXu0mjfS_V@& literal 0 HcmV?d00001 diff --git a/Utilities/Sphinx/templates/layout.html b/Utilities/Sphinx/templates/layout.html new file mode 100644 index 0000000000..635ace3227 --- /dev/null +++ b/Utilities/Sphinx/templates/layout.html @@ -0,0 +1,13 @@ +{% extends "!layout.html" %} +{% block rootrellink %} +
  • + +
  • +
  • + CMake{{ reldelim1 }} +
  • +
  • + {{ shorttitle|e }}{{ reldelim1 }} +
  • +{% endblock %}