Merge topic 'doc-html-page-layout'

a023a26 Help: Configure html favicon
fb33219 Help: Configure html page navigation bars
e1f8196 Help: Configure |version| replacement correctly
edc7cc9 Help: Configure copyright year automatically
This commit is contained in:
Brad King 2013-11-06 09:59:11 -05:00 committed by CMake Topic Stage
commit 7e58ad7f65
5 changed files with 22 additions and 4 deletions

View File

@ -38,8 +38,7 @@ endif()
set(conf_docs "${CMake_SOURCE_DIR}/Help") set(conf_docs "${CMake_SOURCE_DIR}/Help")
set(conf_path "${CMAKE_CURRENT_SOURCE_DIR}") set(conf_path "${CMAKE_CURRENT_SOURCE_DIR}")
set(conf_copyright "2000-2013 Kitware, Inc.") set(conf_version "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}")
set(conf_version "${CMake_MAJOR_VERSION}.${CMake_MINOR_VERSION}.${CMake_PATCH_VERSION}")
set(conf_release "${CMake_VERSION}") set(conf_release "${CMake_VERSION}")
configure_file(conf.py.in conf.py @ONLY) configure_file(conf.py.in conf.py @ONLY)

View File

@ -13,14 +13,15 @@ import sys
import os import os
import re import re
import glob import glob
import time
sys.path.insert(0, r'@conf_path@') sys.path.insert(0, r'@conf_path@')
source_suffix = '.rst' source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
project = 'CMake'
copyright = '@conf_copyright@'
project = 'CMake'
copyright = '2000-%s Kitware, Inc.' % time.strftime('%Y')
version = '@conf_version@' # feature version version = '@conf_version@' # feature version
release = '@conf_release@' # full version string release = '@conf_release@' # full version string
@ -29,6 +30,7 @@ primary_domain = 'cmake'
exclude_patterns = [] exclude_patterns = []
extensions = ['cmake'] extensions = ['cmake']
templates_path = ['@conf_path@/templates']
cmake_manuals = sorted(glob.glob(r'@conf_docs@/manual/*.rst')) cmake_manuals = sorted(glob.glob(r'@conf_docs@/manual/*.rst'))
cmake_manual_description = re.compile('^\.\. cmake-manual-description:(.*)$') cmake_manual_description = re.compile('^\.\. cmake-manual-description:(.*)$')
@ -56,3 +58,7 @@ man_show_urls = False
html_show_sourcelink = True html_show_sourcelink = True
html_static_path = ['@conf_path@/static'] html_static_path = ['@conf_path@/static']
html_style = 'cmake.css' html_style = 'cmake.css'
html_theme = 'default'
html_title = 'CMake %s Documentation' % release
html_short_title = '%s Documentation' % release
html_favicon = 'cmake-favicon.ico'

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 761 B

View File

@ -0,0 +1,13 @@
{% extends "!layout.html" %}
{% block rootrellink %}
<li>
<img src="{{ pathto('_static/cmake-logo-16.png', 1) }}" alt=""
style="vertical-align: middle; margin-top: -2px" />
</li>
<li>
<a href="http://www.cmake.org/">CMake</a>{{ reldelim1 }}
</li>
<li>
<a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}
</li>
{% endblock %}