Skip to content

Commit d5ac217

Browse files
committed
Fixed sphinx docs.
1 parent 26d001c commit d5ac217

20 files changed

+395
-550
lines changed

doc/conf.py

+20-297
Original file line numberDiff line numberDiff line change
@@ -1,309 +1,32 @@
1-
# -*- coding: utf-8 -*-
1+
# Configuration file for the Sphinx documentation builder.
22
#
3-
# hagelslag documentation build configuration file, created by
4-
# sphinx-quickstart on Thu Oct 1 17:36:49 2015.
5-
#
6-
# This file is execfile()d with the current directory set to its
7-
# containing dir.
8-
#
9-
# Note that not all possible configuration values are present in this
10-
# autogenerated file.
11-
#
12-
# All configuration values have a default; values that are commented out
13-
# serve to show the default.
14-
15-
import os
16-
import sys
17-
18-
from mock import Mock as MagicMock
19-
20-
21-
class Mock(MagicMock):
22-
@classmethod
23-
def __getattr__(cls, name):
24-
return Mock()
25-
26-
27-
MOCK_MODULES = ['numpy', 'scipy', 'pandas', 'skimage', 'netCDF4', 'basemap', 'matplotlib', "pyproj", "Nio",
28-
"scipy.spatial",
29-
"pygrib", "mpl_toolkits", "mpl_toolkits.axes_grid1", "mpl_toolkits.basemap",
30-
"mpl_toolkits.basemap.pyproj",
31-
"sklearn", 'skimage.morphology', "scipy.ndimage", "matplotlib.pyplot", "scipy.stats", "scipy.signal",
32-
"skimage.measure", "skimage.segmentation", "scipy.interpolate", "skimage.draw",
33-
"mpl_toolkits.axes_grid1.inset_locator", "glue", "sklearn.linear_model", "glue.viewers",
34-
"glue.viewers.custom",
35-
"glue.viewers.custom.qt", "glue.core", "shapefile", "ncepgrib2",
36-
"glue.config", "sklearn.decomposition", "sklearn.model_selection", "arrow"]
37-
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
385

39-
# If extensions (or modules to document with autodoc) are in another directory,
40-
# add these directories to sys.path here. If the directory is relative to the
41-
# documentation root, use os.path.abspath to make it absolute, like shown here.
42-
sys.path.insert(0, os.path.abspath('..'))
6+
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
438

44-
# -- General configuration ------------------------------------------------
9+
project = 'hagelslag'
10+
copyright = '2017-2024, David John Gagne'
11+
author = 'David John Gagne'
12+
release = '0.6'
4513

46-
# If your documentation needs a minimal Sphinx version, state it here.
47-
# needs_sphinx = '1.0'
14+
# -- General configuration ---------------------------------------------------
15+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
4816

49-
# Add any Sphinx extension module names here, as strings. They can be
50-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
51-
# ones.
52-
extensions = [
53-
'sphinx.ext.autodoc',
54-
'sphinx.ext.doctest',
55-
'sphinx.ext.coverage',
56-
'sphinx.ext.mathjax',
57-
'sphinx.ext.napoleon'
58-
]
17+
extensions = ['sphinx.ext.napoleon',
18+
'sphinx.ext.doctest',
19+
'sphinx.ext.coverage',
20+
'sphinx.ext.mathjax',
21+
]
5922

60-
# Add any paths that contain templates here, relative to this directory.
6123
templates_path = ['_templates']
24+
exclude_patterns = []
6225

63-
# The suffix(es) of source filenames.
64-
# You can specify multiple suffix as a list of string:
65-
# source_suffix = ['.rst', '.md']
66-
source_suffix = '.rst'
67-
68-
# The encoding of source files.
69-
# source_encoding = 'utf-8-sig'
70-
71-
# The master toctree document.
72-
master_doc = 'index'
73-
74-
# General information about the project.
75-
project = u'hagelslag'
76-
copyright = u'2017-2022, David John Gagne II'
77-
author = u'David John Gagne II'
78-
79-
# The version info for the project you're documenting, acts as replacement for
80-
# |version| and |release|, also used in various other places throughout the
81-
# built documents.
82-
#
83-
# The short X.Y version.
84-
version = '0.5'
85-
# The full version, including alpha/beta/rc tags.
86-
release = '0.5'
87-
88-
# The language for content autogenerated by Sphinx. Refer to documentation
89-
# for a list of supported languages.
90-
#
91-
# This is also used if you do content translation via gettext catalogs.
92-
# Usually you set "language" from the command line for these cases.
93-
language = None
94-
95-
# There are two options for replacing |today|: either, you set today to some
96-
# non-false value, then it is used:
97-
# today = ''
98-
# Else, today_fmt is used as the format for a strftime call.
99-
# today_fmt = '%B %d, %Y'
100-
101-
# List of patterns, relative to source directory, that match files and
102-
# directories to ignore when looking for source files.
103-
exclude_patterns = ['_build']
10426

105-
# The reST default role (used for this markup: `text`) to use for all
106-
# documents.
107-
# default_role = None
10827

109-
# If true, '()' will be appended to :func: etc. cross-reference text.
110-
# add_function_parentheses = True
28+
# -- Options for HTML output -------------------------------------------------
29+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
11130

112-
# If true, the current module name will be prepended to all description
113-
# unit titles (such as .. function::).
114-
# add_module_names = True
115-
116-
# If true, sectionauthor and moduleauthor directives will be shown in the
117-
# output. They are ignored by default.
118-
# show_authors = False
119-
120-
# The name of the Pygments (syntax highlighting) style to use.
121-
pygments_style = 'sphinx'
122-
123-
# A list of ignored prefixes for module index sorting.
124-
# modindex_common_prefix = []
125-
126-
# If true, keep warnings as "system message" paragraphs in the built documents.
127-
# keep_warnings = False
128-
129-
# If true, `todo` and `todoList` produce output, else they produce nothing.
130-
todo_include_todos = False
131-
132-
# -- Options for HTML output ----------------------------------------------
133-
134-
# The theme to use for HTML and HTML Help pages. See the documentation for
135-
# a list of builtin themes.
136-
html_theme = 'nature'
137-
138-
# Theme options are theme-specific and customize the look and feel of a theme
139-
# further. For a list of options available for each theme, see the
140-
# documentation.
141-
html_theme_options = {'sidebarwidth': 375}
142-
143-
# Add any paths that contain custom themes here, relative to this directory.
144-
# html_theme_path = []
145-
146-
# The name for this set of Sphinx documents. If None, it defaults to
147-
# "<project> v<release> documentation".
148-
# html_title = None
149-
150-
# A shorter title for the navigation bar. Default is the same as html_title.
151-
# html_short_title = None
152-
153-
# The name of an image file (relative to this directory) to place at the top
154-
# of the sidebar.
155-
# html_logo = None
156-
157-
# The name of an image file (within the static path) to use as favicon of the
158-
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
159-
# pixels large.
160-
# html_favicon = None
161-
162-
# Add any paths that contain custom static files (such as style sheets) here,
163-
# relative to this directory. They are copied after the builtin static files,
164-
# so a file named "default.css" will overwrite the builtin "default.css".
31+
html_theme = 'sphinx_book_theme'
16532
html_static_path = ['_static']
166-
167-
# Add any extra paths that contain custom files (such as robots.txt or
168-
# .htaccess) here, relative to this directory. These files are copied
169-
# directly to the root of the documentation.
170-
# html_extra_path = []
171-
172-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
173-
# using the given strftime format.
174-
# html_last_updated_fmt = '%b %d, %Y'
175-
176-
# If true, SmartyPants will be used to convert quotes and dashes to
177-
# typographically correct entities.
178-
# html_use_smartypants = True
179-
180-
# Custom sidebar templates, maps document names to template names.
181-
# html_sidebars = {}
182-
183-
# Additional templates that should be rendered to pages, maps page names to
184-
# template names.
185-
# html_additional_pages = {}
186-
187-
# If false, no module index is generated.
188-
# html_domain_indices = True
189-
190-
# If false, no index is generated.
191-
# html_use_index = True
192-
193-
# If true, the index is split into individual pages for each letter.
194-
# html_split_index = False
195-
196-
# If true, links to the reST sources are added to the pages.
197-
# html_show_sourcelink = True
198-
199-
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
200-
# html_show_sphinx = True
201-
202-
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
203-
# html_show_copyright = True
204-
205-
# If true, an OpenSearch description file will be output, and all pages will
206-
# contain a <link> tag referring to it. The value of this option must be the
207-
# base URL from which the finished HTML is served.
208-
# html_use_opensearch = ''
209-
210-
# This is the file name suffix for HTML files (e.g. ".xhtml").
211-
# html_file_suffix = None
212-
213-
# Language to be used for generating the HTML full-text search index.
214-
# Sphinx supports the following languages:
215-
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
216-
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
217-
# html_search_language = 'en'
218-
219-
# A dictionary with options for the search language support, empty by default.
220-
# Now only 'ja' uses this config value
221-
# html_search_options = {'type': 'default'}
222-
223-
# The name of a javascript file (relative to the configuration directory) that
224-
# implements a search results scorer. If empty, the default will be used.
225-
# html_search_scorer = 'scorer.js'
226-
227-
# Output file base name for HTML help builder.
228-
htmlhelp_basename = 'hagelslagdoc'
229-
230-
# -- Options for LaTeX output ---------------------------------------------
231-
232-
latex_elements = {
233-
# The paper size ('letterpaper' or 'a4paper').
234-
# 'papersize': 'letterpaper',
235-
236-
# The font size ('10pt', '11pt' or '12pt').
237-
# 'pointsize': '10pt',
238-
239-
# Additional stuff for the LaTeX preamble.
240-
# 'preamble': '',
241-
242-
# Latex figure (float) alignment
243-
# 'figure_align': 'htbp',
244-
}
245-
246-
# Grouping the document tree into LaTeX files. List of tuples
247-
# (source start file, target name, title,
248-
# author, documentclass [howto, manual, or own class]).
249-
latex_documents = [
250-
(master_doc, 'hagelslag.tex', u'hagelslag Documentation',
251-
u'David John Gagne II', 'manual'),
252-
]
253-
254-
# The name of an image file (relative to this directory) to place at the top of
255-
# the title page.
256-
# latex_logo = None
257-
258-
# For "manual" documents, if this is true, then toplevel headings are parts,
259-
# not chapters.
260-
# latex_use_parts = False
261-
262-
# If true, show page references after internal links.
263-
# latex_show_pagerefs = False
264-
265-
# If true, show URL addresses after external links.
266-
# latex_show_urls = False
267-
268-
# Documents to append as an appendix to all manuals.
269-
# latex_appendices = []
270-
271-
# If false, no module index is generated.
272-
# latex_domain_indices = True
273-
274-
275-
# -- Options for manual page output ---------------------------------------
276-
277-
# One entry per manual page. List of tuples
278-
# (source start file, name, description, authors, manual section).
279-
man_pages = [
280-
(master_doc, 'hagelslag', u'hagelslag Documentation',
281-
[author], 1)
282-
]
283-
284-
# If true, show URL addresses after external links.
285-
# man_show_urls = False
286-
287-
288-
# -- Options for Texinfo output -------------------------------------------
289-
290-
# Grouping the document tree into Texinfo files. List of tuples
291-
# (source start file, target name, title, author,
292-
# dir menu entry, description, category)
293-
texinfo_documents = [
294-
(master_doc, 'hagelslag', u'hagelslag Documentation',
295-
author, 'hagelslag', 'One line description of project.',
296-
'Miscellaneous'),
297-
]
298-
299-
# Documents to append as an appendix to all manuals.
300-
# texinfo_appendices = []
301-
302-
# If false, no module index is generated.
303-
# texinfo_domain_indices = True
304-
305-
# How to display URL addresses: 'footnote', 'no', or 'inline'.
306-
# texinfo_show_urls = 'footnote'
307-
308-
# If true, do not generate a @detailmenu in the "Top" node's menu.
309-
# texinfo_no_detailmenu = False

doc/data_processing.rst

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ arguments for pyproj projections except for dx, dy, sw_lon, sw_lat, ne_lon, and
8686
to reconstruct the CAM grid. If you do not specify the map projection correctly, the created lat-lon and x-y grids
8787
may have a different number of grid dimensions than the data. Double check to be sure. The contents of an example
8888
map file are below::
89+
8990
proj=lcc # map projection
9091
a=6370000 # Major Radius of Earth in m. Note that WRF uses a spherical Earth.
9192
b=6370000 # Minor radius of Earth in m

0 commit comments

Comments
 (0)