|
@@ -1,9 +1,10 @@
|
|
|
# -*- coding: utf-8 -*-
|
|
|
#
|
|
|
-# PyGRASS documentation build configuration file, created by
|
|
|
-# sphinx-quickstart2 on Sat Jun 16 18:53:32 2012.
|
|
|
+# wxGUI documentation build configuration file, created by
|
|
|
+# sphinx-quickstart on Tue Jun 3 09:20:51 2014.
|
|
|
#
|
|
|
-# This file is execfile()d with the current directory set to its containing dir.
|
|
|
+# 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.
|
|
@@ -22,6 +23,12 @@ from shutil import copy
|
|
|
if not os.getenv('GISBASE'):
|
|
|
sys.exit("GISBASE not defined")
|
|
|
sys.path.insert(0, os.path.abspath(os.path.join(os.environ['GISBASE'], 'etc', 'python', 'grass')))
|
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(os.environ['GISBASE'], 'etc', 'python', 'grass', 'ctypes')))
|
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(os.environ['GISBASE'], 'etc', 'python', 'grass', 'imaging')))
|
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(os.environ['GISBASE'], 'etc', 'python', 'grass', 'pydispatch')))
|
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(os.environ['GISBASE'], 'etc', 'python', 'grass', 'pygrass')))
|
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(os.environ['GISBASE'], 'etc', 'python', 'grass', 'script')))
|
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(os.environ['GISBASE'], 'etc', 'python', 'grass', 'temporal')))
|
|
|
|
|
|
from grass.script import core
|
|
|
|
|
@@ -46,9 +53,18 @@ with open("_templates/layout.html", "a+b") as f:
|
|
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
|
#needs_sphinx = '1.0'
|
|
|
|
|
|
-# Add any Sphinx extension module names here, as strings. They can be extensions
|
|
|
-# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
|
|
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
|
|
|
+# Add any Sphinx extension module names here, as strings. They can be
|
|
|
+# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
+# ones.
|
|
|
+extensions = [
|
|
|
+ 'sphinx.ext.autodoc',
|
|
|
+ 'sphinx.ext.doctest',
|
|
|
+ 'sphinx.ext.todo',
|
|
|
+ 'sphinx.ext.coverage',
|
|
|
+ 'sphinx.ext.mathjax',
|
|
|
+ 'sphinx.ext.ifconfig',
|
|
|
+ 'sphinx.ext.viewcode',
|
|
|
+]
|
|
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
|
|
templates_path = ['_templates']
|
|
@@ -63,17 +79,17 @@ source_suffix = '.rst'
|
|
|
master_doc = 'index'
|
|
|
|
|
|
# General information about the project.
|
|
|
-project = u'PyGRASS'
|
|
|
-copyright = u'2012-2014, Pietro Zambelli'
|
|
|
+project = u'Python library documentation'
|
|
|
+copyright = u'2014, GRASS Development Team'
|
|
|
|
|
|
# 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 = '0.2'
|
|
|
+#version = '0.1'
|
|
|
# The full version, including alpha/beta/rc tags.
|
|
|
-#release = 'beta'
|
|
|
+#release = '0.1'
|
|
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
|
# for a list of supported languages.
|
|
@@ -89,7 +105,8 @@ language = 'python'
|
|
|
# directories to ignore when looking for source files.
|
|
|
exclude_patterns = ['_build']
|
|
|
|
|
|
-# The reST default role (used for this markup: `text`) to use for all documents.
|
|
|
+# The reST default role (used for this markup: `text`) to use for all
|
|
|
+# documents.
|
|
|
#default_role = None
|
|
|
|
|
|
# If true, '()' will be appended to :func: etc. cross-reference text.
|
|
@@ -109,15 +126,11 @@ pygments_style = 'sphinx'
|
|
|
# A list of ignored prefixes for module index sorting.
|
|
|
#modindex_common_prefix = []
|
|
|
|
|
|
-# If true, doctest flags (comments looking like # doctest: FLAG, ...)
|
|
|
-# at the ends of lines and <BLANKLINE> markers are removed for all code blocks
|
|
|
-# showing interactive Python sessions (i.e. doctests). Default is true.
|
|
|
-trim_doctest_flags = True
|
|
|
-
|
|
|
+# If true, keep warnings as "system message" paragraphs in the built documents.
|
|
|
+#keep_warnings = False
|
|
|
|
|
|
-intersphinx_mapping = {'python': ('http://docs.python.org/2.7', None)}
|
|
|
|
|
|
-# -- Options for HTML output ---------------------------------------------------
|
|
|
+# -- Options for HTML output ----------------------------------------------
|
|
|
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
|
# a list of builtin themes.
|
|
@@ -152,6 +165,11 @@ html_theme = 'traditional'
|
|
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
|
html_static_path = ['_static']
|
|
|
|
|
|
+# Add any extra paths that contain custom files (such as robots.txt or
|
|
|
+# .htaccess) here, relative to this directory. These files are copied
|
|
|
+# directly to the root of the documentation.
|
|
|
+#html_extra_path = []
|
|
|
+
|
|
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
|
|
# using the given strftime format.
|
|
|
#html_last_updated_fmt = '%b %d, %Y'
|
|
@@ -194,10 +212,10 @@ html_show_copyright = True
|
|
|
#html_file_suffix = None
|
|
|
|
|
|
# Output file base name for HTML help builder.
|
|
|
-htmlhelp_basename = 'PyGrassdoc'
|
|
|
+htmlhelp_basename = 'PythonLibdoc'
|
|
|
|
|
|
|
|
|
-# -- Options for LaTeX output --------------------------------------------------
|
|
|
+# -- Options for LaTeX output ---------------------------------------------
|
|
|
|
|
|
latex_elements = {
|
|
|
# The paper size ('letterpaper' or 'a4paper').
|
|
@@ -211,10 +229,11 @@ latex_elements = {
|
|
|
}
|
|
|
|
|
|
# Grouping the document tree into LaTeX files. List of tuples
|
|
|
-# (source start file, target name, title, author, documentclass [howto/manual]).
|
|
|
+# (source start file, target name, title,
|
|
|
+# author, documentclass [howto, manual, or own class]).
|
|
|
latex_documents = [
|
|
|
- ('index', 'PyGrass.tex', u'PyGRASS Documentation',
|
|
|
- u'Pietro Zambelli', 'manual'),
|
|
|
+ ('index', 'PythonLib.tex', u'Python Librart Documentation',
|
|
|
+ u'GRASS Development Team', 'manual'),
|
|
|
]
|
|
|
|
|
|
# The name of an image file (relative to this directory) to place at the top of
|
|
@@ -238,27 +257,27 @@ latex_documents = [
|
|
|
#latex_domain_indices = True
|
|
|
|
|
|
|
|
|
-# -- Options for manual page output --------------------------------------------
|
|
|
+# -- Options for manual page output ---------------------------------------
|
|
|
|
|
|
# One entry per manual page. List of tuples
|
|
|
# (source start file, name, description, authors, manual section).
|
|
|
man_pages = [
|
|
|
- ('index', 'pygrass', u'PyGRASS Documentation',
|
|
|
- [u'Pietro Zambelli'], 1)
|
|
|
+ ('index', 'PythonLib', u'Python Library Documentation',
|
|
|
+ [u'GRASS Development Team'], 1)
|
|
|
]
|
|
|
|
|
|
# If true, show URL addresses after external links.
|
|
|
#man_show_urls = False
|
|
|
|
|
|
|
|
|
-# -- Options for Texinfo output ------------------------------------------------
|
|
|
+# -- 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 = [
|
|
|
- ('index', 'PyGRASS', u'PyGRASS Documentation',
|
|
|
- u'Pietro Zambelli', 'PyGRASS', 'One line description of project.',
|
|
|
+ ('index', 'PythonLib', u'Python Library Documentation',
|
|
|
+ u'GRASS Development Team', 'PythonLib', 'One line description of project.',
|
|
|
'Miscellaneous'),
|
|
|
]
|
|
|
|
|
@@ -271,14 +290,26 @@ texinfo_documents = [
|
|
|
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
|
|
#texinfo_show_urls = 'footnote'
|
|
|
|
|
|
+# If true, do not generate a @detailmenu in the "Top" node's menu.
|
|
|
+#texinfo_no_detailmenu = False
|
|
|
+
|
|
|
|
|
|
-# -- Options for Epub output ---------------------------------------------------
|
|
|
+# -- Options for Epub output ----------------------------------------------
|
|
|
|
|
|
# Bibliographic Dublin Core info.
|
|
|
-epub_title = u'PyGRASS'
|
|
|
-epub_author = u'Pietro Zambelli'
|
|
|
-epub_publisher = u'Pietro Zambelli'
|
|
|
-epub_copyright = u'2012, Pietro Zambelli'
|
|
|
+epub_title = u'PythonLib'
|
|
|
+epub_author = u'GRASS Development Team'
|
|
|
+epub_publisher = u'GRASS Development Team'
|
|
|
+epub_copyright = u'2014, GRASS Development Team'
|
|
|
+
|
|
|
+# The basename for the epub file. It defaults to the project name.
|
|
|
+#epub_basename = u'wxGUI'
|
|
|
+
|
|
|
+# The HTML theme for the epub output. Since the default themes are not optimized
|
|
|
+# for small screen space, using the same theme for HTML and epub output is
|
|
|
+# usually not wise. This defaults to 'epub', a theme designed to save visual
|
|
|
+# space.
|
|
|
+#epub_theme = 'epub'
|
|
|
|
|
|
# The language of the text. It defaults to the language option
|
|
|
# or en if the language is not set.
|
|
@@ -297,6 +328,9 @@ epub_copyright = u'2012, Pietro Zambelli'
|
|
|
# A tuple containing the cover image and cover page html template filenames.
|
|
|
#epub_cover = ()
|
|
|
|
|
|
+# A sequence of (type, uri, title) tuples for the guide element of content.opf.
|
|
|
+#epub_guide = ()
|
|
|
+
|
|
|
# HTML files that should be inserted before the pages created by sphinx.
|
|
|
# The format is a list of tuples containing the path and title.
|
|
|
#epub_pre_files = []
|
|
@@ -306,10 +340,25 @@ epub_copyright = u'2012, Pietro Zambelli'
|
|
|
#epub_post_files = []
|
|
|
|
|
|
# A list of files that should not be packed into the epub file.
|
|
|
-#epub_exclude_files = []
|
|
|
+epub_exclude_files = ['search.html']
|
|
|
|
|
|
# The depth of the table of contents in toc.ncx.
|
|
|
#epub_tocdepth = 3
|
|
|
|
|
|
# Allow duplicate toc entries.
|
|
|
#epub_tocdup = True
|
|
|
+
|
|
|
+# Choose between 'default' and 'includehidden'.
|
|
|
+#epub_tocscope = 'default'
|
|
|
+
|
|
|
+# Fix unsupported image types using the PIL.
|
|
|
+#epub_fix_images = False
|
|
|
+
|
|
|
+# Scale large images.
|
|
|
+#epub_max_image_width = 0
|
|
|
+
|
|
|
+# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
|
|
+#epub_show_urls = 'inline'
|
|
|
+
|
|
|
+# If false, no index is generated.
|
|
|
+#epub_use_index = True
|