Merge topic 'doc-html-page-layout'
a023a26
Help: Configure html faviconfb33219
Help: Configure html page navigation barse1f8196
Help: Configure |version| replacement correctlyedc7cc9
Help: Configure copyright year automatically
This commit is contained in:
commit
7e58ad7f65
|
@ -38,8 +38,7 @@ endif()
|
|||
|
||||
set(conf_docs "${CMake_SOURCE_DIR}/Help")
|
||||
set(conf_path "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
set(conf_copyright "2000-2013 Kitware, Inc.")
|
||||
set(conf_version "${CMake_MAJOR_VERSION}.${CMake_MINOR_VERSION}.${CMake_PATCH_VERSION}")
|
||||
set(conf_version "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}")
|
||||
set(conf_release "${CMake_VERSION}")
|
||||
configure_file(conf.py.in conf.py @ONLY)
|
||||
|
||||
|
|
|
@ -13,14 +13,15 @@ import sys
|
|||
import os
|
||||
import re
|
||||
import glob
|
||||
import time
|
||||
|
||||
sys.path.insert(0, r'@conf_path@')
|
||||
|
||||
source_suffix = '.rst'
|
||||
master_doc = 'index'
|
||||
project = 'CMake'
|
||||
copyright = '@conf_copyright@'
|
||||
|
||||
project = 'CMake'
|
||||
copyright = '2000-%s Kitware, Inc.' % time.strftime('%Y')
|
||||
version = '@conf_version@' # feature version
|
||||
release = '@conf_release@' # full version string
|
||||
|
||||
|
@ -29,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:(.*)$')
|
||||
|
@ -56,3 +58,7 @@ 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
|
||||
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 |
|
@ -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 %}
|
Loading…
Reference in New Issue