2011-05-23 06:51:31 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import sys, os
|
|
|
|
|
|
|
|
docs_basepath = os.path.abspath(os.path.join(os.path.dirname(__file__)))
|
|
|
|
|
|
|
|
sys.path.extend([
|
|
|
|
os.path.join(docs_basepath, '..'), # salt directory (for autodoc)
|
|
|
|
os.path.join(docs_basepath, '_ext'), # Sphinx extensions
|
|
|
|
])
|
|
|
|
|
2011-09-25 06:30:36 +00:00
|
|
|
from salt import __version__
|
|
|
|
|
2011-05-23 06:51:31 +00:00
|
|
|
# -- General configuration -----------------------------------------------------
|
|
|
|
|
|
|
|
project = u'Salt'
|
2011-05-30 22:31:18 +00:00
|
|
|
copyright = u'2011, Thomas S. Hatch'
|
2011-05-23 06:51:31 +00: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.
|
2011-09-25 06:30:36 +00:00
|
|
|
version = __version__
|
2011-05-23 06:51:31 +00:00
|
|
|
# The full version, including alpha/beta/rc tags.
|
2011-09-25 06:30:36 +00:00
|
|
|
release = version
|
2011-05-23 06:51:31 +00:00
|
|
|
|
2011-10-11 01:31:51 +00:00
|
|
|
master_doc = 'contents'
|
2011-10-11 01:23:39 +00:00
|
|
|
templates_path = ['_templates']
|
2011-05-23 06:51:31 +00:00
|
|
|
exclude_patterns = ['_build']
|
|
|
|
|
2011-11-07 07:47:06 +00:00
|
|
|
extensions = ['saltdocs', 'sphinx.ext.autodoc', 'sphinx.ext.extlinks', 'sphinx.ext.autosummary']
|
2011-05-23 06:51:31 +00:00
|
|
|
|
2011-10-11 01:23:39 +00:00
|
|
|
modindex_common_prefix = ['salt.']
|
2011-05-23 06:51:31 +00:00
|
|
|
|
2011-11-07 07:47:06 +00:00
|
|
|
autosummary_generate = True
|
|
|
|
|
2011-10-11 01:23:39 +00:00
|
|
|
# Define a substitution for linking to the latest release tarball
|
|
|
|
rst_prolog = """\
|
2011-11-16 05:41:20 +00:00
|
|
|
.. |saltrepo| replace:: https://github.com/saltstack/salt
|
|
|
|
.. |latest| replace:: https://github.com/downloads/saltstack/salt/salt-%s.tar.gz
|
2011-10-11 01:23:39 +00:00
|
|
|
""" % __version__
|
2011-05-23 06:51:31 +00:00
|
|
|
|
2011-09-25 06:36:41 +00:00
|
|
|
# A shortcut for linking to tickets on the GitHub issue tracker
|
|
|
|
extlinks = {
|
2011-11-16 05:41:20 +00:00
|
|
|
'blob': ('https://github.com/saltstack/salt/blob/v%s/%%s' % __version__, None),
|
|
|
|
'download': ('https://github.com/downloads/saltstack/salt/%s', None),
|
|
|
|
'issue': ('https://github.com/saltstack/salt/issues/%s', 'issue '),
|
2011-09-25 06:36:41 +00:00
|
|
|
}
|
2011-05-23 06:51:31 +00:00
|
|
|
|
|
|
|
|
2011-10-11 01:23:39 +00:00
|
|
|
### HTML options
|
2011-10-11 01:31:51 +00:00
|
|
|
html_theme = 'default'
|
2011-10-11 01:23:39 +00:00
|
|
|
html_title = None
|
|
|
|
html_short_title = 'Salt'
|
2011-05-23 06:51:31 +00:00
|
|
|
|
2011-10-11 01:31:51 +00:00
|
|
|
html_static_path = ['_static']
|
2011-10-11 01:23:39 +00:00
|
|
|
html_logo = 'salt.png'
|
2011-10-17 05:54:11 +00:00
|
|
|
html_favicon = 'favicon.ico'
|
2011-10-11 01:31:51 +00:00
|
|
|
html_style = ['base-salt.css']
|
|
|
|
html_use_smartypants = False
|
2011-05-23 06:51:31 +00:00
|
|
|
|
2011-11-17 02:52:51 +00:00
|
|
|
html_additional_pages = {
|
|
|
|
'index': 'index.html',
|
|
|
|
'404': '404.html',
|
|
|
|
}
|
2011-11-13 11:44:15 +00:00
|
|
|
|
|
|
|
html_default_sidebars = [
|
|
|
|
'localtoc.html',
|
|
|
|
'relations.html',
|
|
|
|
'sourcelink.html',
|
|
|
|
'searchbox.html']
|
|
|
|
|
|
|
|
html_sidebars = {
|
|
|
|
'ref/**/all/salt.*': ['autosummarysidebar.html'] + html_default_sidebars,
|
|
|
|
'index': ['indexsidebar.html', 'searchbox.html'],
|
|
|
|
}
|
|
|
|
|
2011-10-11 01:31:51 +00:00
|
|
|
html_context = {
|
2011-11-13 11:44:15 +00:00
|
|
|
'html_default_sidebars': html_default_sidebars,
|
2011-11-16 05:41:20 +00:00
|
|
|
'github_base': 'https://github.com/saltstack/salt',
|
|
|
|
'github_issues': 'https://github.com/saltstack/salt/issues',
|
|
|
|
'github_downloads': 'https://github.com/saltstack/salt/downloads',
|
2011-10-11 01:31:51 +00:00
|
|
|
}
|
2011-05-23 06:51:31 +00:00
|
|
|
|
2011-10-11 01:31:51 +00:00
|
|
|
html_use_index = False
|
2011-10-11 01:23:39 +00:00
|
|
|
html_last_updated_fmt = '%b %d, %Y'
|
|
|
|
html_show_sourcelink = False
|
|
|
|
html_show_sphinx = True
|
|
|
|
html_show_copyright = True
|
2011-05-23 06:51:31 +00:00
|
|
|
#html_use_opensearch = ''
|
|
|
|
|
|
|
|
|
2011-10-11 01:23:39 +00:00
|
|
|
### Latex options
|
2011-05-23 06:51:31 +00:00
|
|
|
latex_documents = [
|
2011-11-07 01:36:00 +00:00
|
|
|
('contents', 'Salt.tex', u'Salt Documentation',
|
2011-05-23 06:51:31 +00:00
|
|
|
u'Thomas Hatch', 'manual'),
|
|
|
|
]
|
|
|
|
|
2011-10-11 01:23:39 +00:00
|
|
|
latex_logo = '_static/salt.png'
|
2011-05-23 06:51:31 +00:00
|
|
|
|
|
|
|
|
2011-10-11 01:23:39 +00:00
|
|
|
### Manpage options
|
2011-05-23 06:51:31 +00:00
|
|
|
# One entry per manual page. List of tuples
|
|
|
|
# (source start file, name, description, authors, manual section).
|
|
|
|
authors = [
|
2011-05-30 22:24:23 +00:00
|
|
|
u'Thomas S. Hatch <thatch@gmail.com> and many others, please see the Authors file',
|
2011-05-23 06:51:31 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
man_pages = [
|
|
|
|
('ref/cli/salt', 'salt', u'salt', authors, 1),
|
2011-11-07 01:36:00 +00:00
|
|
|
('contents', 'salt', u'Salt Documentation', authors, 7),
|
2011-05-23 06:51:31 +00:00
|
|
|
('ref/cli/salt-master', 'salt-master', u'salt-master Documentation', authors, 1),
|
|
|
|
('ref/cli/salt-minion', 'salt-minion', u'salt-minion Documentation', authors, 1),
|
|
|
|
('ref/cli/salt-key', 'salt-key', u'salt-key Documentation', authors, 1),
|
|
|
|
('ref/cli/salt-cp', 'salt-cp', u'salt-cp Documentation', authors, 1),
|
2011-08-27 17:36:12 +00:00
|
|
|
('ref/cli/salt-call', 'salt-call', u'salt-call Documentation', authors, 1),
|
2011-08-27 17:30:32 +00:00
|
|
|
('ref/cli/salt-syndic', 'salt-syndic', u'salt-syndic Documentation', authors, 1),
|
2011-07-09 23:05:38 +00:00
|
|
|
('ref/cli/salt-run', 'salt-run', u'salt-run Documentation', authors, 1),
|
2011-05-23 06:51:31 +00:00
|
|
|
]
|
2011-11-07 02:16:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
### epub options
|
|
|
|
epub_title = u'Salt Documentation'
|
|
|
|
epub_author = u'Thomas S. Hatch'
|
|
|
|
epub_publisher = epub_author
|
|
|
|
epub_copyright = u'2011, Thomas S. Hatch'
|
|
|
|
|
|
|
|
epub_scheme = 'URL'
|
|
|
|
epub_identifier = 'http://saltstack.org/'
|
|
|
|
|
|
|
|
#epub_tocdepth = 3
|