2014-02-25 21:02:52 +08:00
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
#
|
|
|
|
|
# 跟我一起写Makefile documentation build configuration file, created by
|
|
|
|
|
# sphinx-quickstart on Tue Feb 25 20:24:37 2014.
|
|
|
|
|
#
|
|
|
|
|
# This file is execfile()d with the current directory set to its
|
|
|
|
|
# containing dir.
|
|
|
|
|
#
|
|
|
|
|
# Note that not all possible configuration values are present in this
|
|
|
|
|
# autogenerated file.
|
|
|
|
|
#
|
|
|
|
|
# All configuration values have a default; values that are commented out
|
|
|
|
|
# serve to show the default.
|
|
|
|
|
|
|
|
|
|
# If extensions (or modules to document with autodoc) are in another directory,
|
|
|
|
|
# add these directories to sys.path here. If the directory is relative to the
|
|
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
2017-04-06 13:52:02 +08:00
|
|
|
|
#
|
|
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
# sys.path.insert(0, os.path.abspath('.'))
|
|
|
|
|
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# -- General configuration ------------------------------------------------
|
|
|
|
|
|
|
|
|
|
# If your documentation needs a minimal Sphinx version, state it here.
|
2017-04-06 13:52:02 +08:00
|
|
|
|
#
|
|
|
|
|
# needs_sphinx = '1.5'
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
|
|
# ones.
|
2017-04-06 13:52:02 +08:00
|
|
|
|
extensions = ['sphinx.ext.todo',
|
|
|
|
|
'sphinx.ext.viewcode',
|
|
|
|
|
'sphinx.ext.githubpages']
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
|
|
|
|
templates_path = ['_templates']
|
|
|
|
|
|
2017-04-06 13:52:02 +08:00
|
|
|
|
# The suffix(es) of source filenames.
|
|
|
|
|
# You can specify multiple suffix as a list of string:
|
|
|
|
|
#
|
|
|
|
|
# source_suffix = ['.rst', '.md']
|
2014-02-25 21:02:52 +08:00
|
|
|
|
source_suffix = '.rst'
|
|
|
|
|
|
|
|
|
|
# The master toctree document.
|
|
|
|
|
master_doc = 'index'
|
|
|
|
|
|
|
|
|
|
# General information about the project.
|
|
|
|
|
project = u'跟我一起写Makefile'
|
2019-01-30 21:38:04 -05:00
|
|
|
|
copyright = u'2014-2019, 作者:陈皓;排版:SeisMan'
|
2017-04-06 13:52:02 +08:00
|
|
|
|
author = 'SeisMan'
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# The version info for the project you're documenting, acts as replacement for
|
|
|
|
|
# |version| and |release|, also used in various other places throughout the
|
|
|
|
|
# built documents.
|
|
|
|
|
#
|
|
|
|
|
# The short X.Y version.
|
|
|
|
|
version = '1.0'
|
|
|
|
|
# The full version, including alpha/beta/rc tags.
|
|
|
|
|
release = '1.0'
|
|
|
|
|
|
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
|
|
|
# for a list of supported languages.
|
2017-04-06 13:52:02 +08:00
|
|
|
|
#
|
|
|
|
|
# This is also used if you do content translation via gettext catalogs.
|
|
|
|
|
# Usually you set "language" from the command line for these cases.
|
2014-03-01 13:46:49 +08:00
|
|
|
|
language = 'zh_CN'
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# List of patterns, relative to source directory, that match files and
|
|
|
|
|
# directories to ignore when looking for source files.
|
2017-04-06 13:52:02 +08:00
|
|
|
|
# This patterns also effect to html_static_path and html_extra_path
|
2014-02-25 21:02:52 +08:00
|
|
|
|
exclude_patterns = []
|
|
|
|
|
|
|
|
|
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
|
|
|
pygments_style = 'sphinx'
|
|
|
|
|
|
2017-04-06 13:52:02 +08:00
|
|
|
|
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
|
|
|
|
todo_include_todos = True
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- Options for HTML output ----------------------------------------------
|
2015-11-09 10:23:02 +08:00
|
|
|
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
|
|
|
# a list of builtin themes.
|
2015-11-09 10:23:02 +08:00
|
|
|
|
if on_rtd:
|
|
|
|
|
html_theme = 'default'
|
|
|
|
|
else:
|
|
|
|
|
import sphinx_rtd_theme
|
|
|
|
|
html_theme = 'sphinx_rtd_theme'
|
|
|
|
|
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
2014-02-27 20:23:25 +08:00
|
|
|
|
|
2014-02-25 21:02:52 +08:00
|
|
|
|
# Theme options are theme-specific and customize the look and feel of a theme
|
|
|
|
|
# further. For a list of options available for each theme, see the
|
|
|
|
|
# documentation.
|
2017-04-06 13:52:02 +08:00
|
|
|
|
#
|
|
|
|
|
# html_theme_options = {}
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# Add any paths that contain custom static files (such as style sheets) here,
|
|
|
|
|
# relative to this directory. They are copied after the builtin static files,
|
|
|
|
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
|
|
|
html_static_path = ['_static']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
|
|
|
|
# using the given strftime format.
|
2014-03-01 19:06:25 +08:00
|
|
|
|
html_last_updated_fmt = '%x'
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# If true, SmartyPants will be used to convert quotes and dashes to
|
|
|
|
|
# typographically correct entities.
|
|
|
|
|
#html_use_smartypants = True
|
|
|
|
|
|
|
|
|
|
# Custom sidebar templates, maps document names to template names.
|
|
|
|
|
#html_sidebars = {}
|
|
|
|
|
|
|
|
|
|
# Additional templates that should be rendered to pages, maps page names to
|
|
|
|
|
# template names.
|
|
|
|
|
#html_additional_pages = {}
|
|
|
|
|
|
|
|
|
|
# If false, no module index is generated.
|
2014-03-01 19:16:14 +08:00
|
|
|
|
html_domain_indices = False
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# If false, no index is generated.
|
2014-03-01 19:16:14 +08:00
|
|
|
|
html_use_index = True
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# If true, the index is split into individual pages for each letter.
|
2014-03-01 19:16:14 +08:00
|
|
|
|
html_split_index = False
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# If true, links to the reST sources are added to the pages.
|
2014-03-01 19:16:14 +08:00
|
|
|
|
html_show_sourcelink = True
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
|
|
|
|
#html_show_sphinx = True
|
|
|
|
|
|
|
|
|
|
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
2014-03-01 19:16:14 +08:00
|
|
|
|
# html_show_copyright = True
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# If true, an OpenSearch description file will be output, and all pages will
|
|
|
|
|
# contain a <link> tag referring to it. The value of this option must be the
|
|
|
|
|
# base URL from which the finished HTML is served.
|
|
|
|
|
#html_use_opensearch = ''
|
|
|
|
|
|
|
|
|
|
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
|
|
|
|
#html_file_suffix = None
|
|
|
|
|
|
|
|
|
|
# Output file base name for HTML help builder.
|
|
|
|
|
htmlhelp_basename = 'Makefiledoc'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- Options for LaTeX output ---------------------------------------------
|
2017-04-07 21:54:18 +08:00
|
|
|
|
latex_engine="xelatex"
|
2018-03-03 16:54:14 +08:00
|
|
|
|
latex_elements = {
|
|
|
|
|
'papersize' : 'a4paper',
|
2019-06-01 12:55:52 -04:00
|
|
|
|
'figure_align' : 'H',
|
|
|
|
|
'fncychap' : '', # use default chapter style from ctex
|
|
|
|
|
'babel' : '',
|
|
|
|
|
'polyglossia': '',
|
|
|
|
|
'fontpkg' : '',
|
2018-03-03 16:54:14 +08:00
|
|
|
|
'cmappkg' : '',
|
|
|
|
|
'fontenc' : '',
|
2019-06-01 12:55:52 -04:00
|
|
|
|
'utf8extra' : '',
|
|
|
|
|
'inputenc' : '',
|
2018-03-03 16:54:14 +08:00
|
|
|
|
'release' : '',
|
2019-06-01 12:55:52 -04:00
|
|
|
|
'maketitle' : '\\maketitle',
|
2018-03-03 16:54:14 +08:00
|
|
|
|
'preamble' : r'''
|
|
|
|
|
\usepackage{ctex}
|
|
|
|
|
\parindent 2em
|
|
|
|
|
\setcounter{tocdepth}{3}
|
2019-06-01 12:55:52 -04:00
|
|
|
|
'''
|
2018-03-03 16:54:14 +08:00
|
|
|
|
}
|
2014-02-25 21:02:52 +08:00
|
|
|
|
|
|
|
|
|
# Grouping the document tree into LaTeX files. List of tuples
|
|
|
|
|
# (source start file, target name, title,
|
|
|
|
|
# author, documentclass [howto, manual, or own class]).
|
|
|
|
|
latex_documents = [
|
2017-04-06 13:52:02 +08:00
|
|
|
|
(master_doc, 'Makefile.tex',
|
2014-03-01 21:36:55 +08:00
|
|
|
|
u'跟我一起写Makefile (PDF重制版)',
|
|
|
|
|
u'作者: 陈皓', 'manual', True),
|
2014-02-25 21:02:52 +08:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# -- Options for manual page output ---------------------------------------
|
|
|
|
|
|
|
|
|
|
# One entry per manual page. List of tuples
|
|
|
|
|
# (source start file, name, description, authors, manual section).
|
|
|
|
|
man_pages = [
|
2017-04-06 13:52:02 +08:00
|
|
|
|
(master_doc, 'makefile', u'跟我一起写Makefile',
|
2014-02-25 21:02:52 +08:00
|
|
|
|
[u'陈皓'], 1)
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- Options for Texinfo output -------------------------------------------
|
|
|
|
|
|
|
|
|
|
# Grouping the document tree into Texinfo files. List of tuples
|
|
|
|
|
# (source start file, target name, title, author,
|
|
|
|
|
# dir menu entry, description, category)
|
|
|
|
|
texinfo_documents = [
|
2017-04-06 13:52:02 +08:00
|
|
|
|
(master_doc, 'Makefile', u'跟我一起写Makefile',
|
2014-02-25 21:02:52 +08:00
|
|
|
|
u'陈皓', 'Makefile', 'One line description of project.',
|
|
|
|
|
'Miscellaneous'),
|
|
|
|
|
]
|