# -*- coding: utf-8 -*-1#2# Sage documentation build configuration file, created by3# sphinx-quickstart on Thu Aug 21 20:15:55 2008.4#5# This file is execfile()d with the current directory set to its containing dir.6#7# The contents of this file are pickled, so don't put values in the namespace8# that aren't pickleable (module imports are okay, they're removed automatically).9#10# All configuration values have a default; values that are commented out11# serve to show the default.1213import sys, os14sys.path.append(os.environ['SAGE_DOC'])15from common.conf import *1617# settings for the intersphinx extension:1819ref_src = os.path.join(SAGE_DOC, 'en', 'reference')20ref_out = os.path.join(SAGE_DOC, 'output', 'html', 'en', 'reference')21intersphinx_mapping[ref_out] = None2223for doc in os.listdir(ref_src):24if os.path.exists(os.path.join(ref_src, doc, 'index.rst')):25intersphinx_mapping[os.path.join(ref_out, doc)] = None2627# We use the main document's title, if we can find it.28rst_file = open('index.rst', 'r')29rst_lines = rst_file.read().splitlines()30rst_file.close()3132title = u''33for i in xrange(len(rst_lines)):34if rst_lines[i].startswith('==') and i > 0:35title = rst_lines[i-1].strip()36break3738# Otherwise, we use this directory's name.39name = os.path.basename(os.path.abspath('.'))40if not title:41title = name.capitalize()42title = title.replace(u'`', u'$')4344# General information about the project.45project = u'Sage Reference Manual: ' + title4647# The name for this set of Sphinx documents. If None, it defaults to48# "<project> v<release> documentation".49html_title = u'Sage Reference Manual v' + release + ': ' + title5051# A shorter title for the navigation bar. Default is the same as html_title.52html_short_title = title5354# HTML theme (e.g., 'default', 'sphinxdoc'). The pages for the55# reference manual use a custom theme, a slight variant on the 'sage'56# theme, to set the links in the top line.57html_theme = 'sageref'5859# Output file base name for HTML help builder.60htmlhelp_basename = name6162# Grouping the document tree into LaTeX files. List of tuples (source63# start file, target name, title, author, document class64# [howto/manual]).65latex_documents = [66('index', name + '.tex', project, u'The Sage Development Team', 'manual')67]6869#Ignore all .rst in the _sage subdirectory70exclude_trees = exclude_trees + ['_sage']7172multidocs_is_master = False737475