diff options
author | Alex Merry <alex.merry@kde.org> | 2015-11-15 15:09:48 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@kde.org> | 2015-11-22 10:39:45 +0000 |
commit | c941061aa989bba945e296aad47df22f9c8ddd5f (patch) | |
tree | 02ce7b041d556579bd2c8c3c224776553c8cc5bd /docs/sphinx/conf.py.in | |
parent | 8f0cbc9f8a8e3b60df6755da1d7d5369ef37b8f2 (diff) | |
download | extra-cmake-modules-c941061aa989bba945e296aad47df22f9c8ddd5f.tar.gz extra-cmake-modules-c941061aa989bba945e296aad47df22f9c8ddd5f.tar.bz2 |
Overhaul the ECM build system.
It should now be easier to read, and more featureful. Among other
tweaks, we now print a summary of dependencies and build options, and
the documentation is generated with more sensible breadcrumbs and
builds properly with Sphinx 1.3.
REVIEW: 126075
Diffstat (limited to 'docs/sphinx/conf.py.in')
-rw-r--r-- | docs/sphinx/conf.py.in | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/docs/sphinx/conf.py.in b/docs/sphinx/conf.py.in index 792c87ca..d32b53f4 100644 --- a/docs/sphinx/conf.py.in +++ b/docs/sphinx/conf.py.in @@ -14,24 +14,23 @@ import os import re import glob -sys.path.insert(0, r'@conf_path@') +sys.path.insert(0, r'@CMAKE_CURRENT_SOURCE_DIR@/sphinx/ext') source_suffix = '.rst' master_doc = 'index' project = 'Extra CMake Modules' copyright = 'KDE Developers' -version = '@conf_version@' # feature version -release = '@conf_release@' # full version string +version = '@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@' # feature version +release = '@PROJECT_VERSION@' # full version string primary_domain = 'ecm' exclude_patterns = [] extensions = ['ecm'] -templates_path = ['@conf_path@/templates'] -ecm_manuals = sorted(glob.glob(r'@conf_docs@/manual/*.rst')) +ecm_manuals = sorted(glob.glob(r'@CMAKE_CURRENT_SOURCE_DIR@/manual/*.rst')) ecm_manual_description = re.compile('^\.\. ecm-manual-description:(.*)$') man_pages = [] for fpath in ecm_manuals: @@ -55,9 +54,8 @@ for fpath in ecm_manuals: man_show_urls = False html_show_sourcelink = True -html_static_path = ['@conf_path@/static'] +html_static_path = ['@CMAKE_CURRENT_BINARY_DIR@/static'] html_style = 'ecm.css' -html_theme = 'default' -html_title = 'Extra CMake Modules %s Documentation' % release -html_short_title = '%s Documentation' % release -html_favicon = '@conf_path@/kde-favicon.ico' +html_theme = '@sphinx_theme@' +html_short_title = 'ECM %s documentation' % version +html_favicon = '@CMAKE_CURRENT_SOURCE_DIR@/sphinx/kde-favicon.ico' |