# -*- 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, os14from sage.env import SAGE_DOC15sys.path.append(SAGE_DOC)16from common.conf import *1718# settings for the intersphinx extension:1920ref_src = os.path.join(SAGE_DOC, 'en', 'reference')21ref_out = os.path.join(SAGE_DOC, 'output', 'html', 'en', 'reference')22intersphinx_mapping[ref_out] = None2324for doc in os.listdir(ref_src):25if os.path.exists(os.path.join(ref_src, doc, 'index.rst')):26intersphinx_mapping[os.path.join(ref_out, doc)] = None2728# General information about the project.29project = u"Sage Reference Manual"30name = "reference"3132# The name for this set of Sphinx documents. If None, it defaults to33# "<project> v<release> documentation".34html_title = project + " v"+release3536html_short_title = u'Sage Reference v' + release3738# Output file base name for HTML help builder.39htmlhelp_basename = name4041# Grouping the document tree into LaTeX files. List of tuples42# (source start file, target name, title, author, document class [howto/manual]).43latex_documents = [44('index', name + '.tex', u'Sage Reference Manual',45u'The Sage Development Team', 'manual'),46]4748latex_elements['preamble'] += r'''49% One-column index50\makeatletter51\renewenvironment{theindex}{52\chapter*{\indexname}53\markboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}54\setlength{\parskip}{0.1em}55\relax56\let\item\@idxitem57}{}58\makeatother59'''6061#Ignore all .rst in the _sage subdirectory62exclude_trees = exclude_trees + ['_sage']6364multidocs_is_master = True6566# Sorted list of subdocs. Include all subdirectories of ref_src except67# for 'static' and 'templates', and to deal with upgrades: 'sage',68# 'sagenb', 'media', and 'other'.69bad_directories = ['static', 'templates', 'sage', 'sagenb', 'media', 'other']70multidocs_subdoc_list = sorted([x for x in os.listdir(ref_src)71if os.path.isdir(os.path.join(ref_src, x))72and x not in bad_directories])7374# List of directories, relative to source directory, that shouldn't be75# searched for source files.76exclude_trees += multidocs_subdoc_list + [77'sage', 'sagenb', 'options'78]798081