Skip to content

Commit d068eb1

Browse files
committed
Merge documentation from edoddridge
2 parents 6536564 + 7fd30d4 commit d068eb1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+17609
-23
lines changed

doc/Makefile

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
12
#
2-
ALL = \
3-
devel_HOWTO.ps \
4-
devel_HOWTO.pdf \
5-
devel_HOWTO_multipage \
6-
devel_HOWTO_onepage
73

8-
all: $(ALL)
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = MITgcm
8+
SOURCEDIR = .
9+
BUILDDIR = _build
910

10-
install: all
11-
./install_devel_HOWTO
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1214

13-
devel_HOWTO.ps: devel_HOWTO.sgml
14-
docbook2ps -d ldp.dsl devel_HOWTO.sgml
15+
.PHONY: help Makefile
1516

16-
devel_HOWTO.pdf: devel_HOWTO.sgml
17-
docbook2pdf -d ldp.dsl devel_HOWTO.sgml
18-
19-
devel_HOWTO_multipage: devel_HOWTO.sgml
20-
docbook2html -o devel_HOWTO_multipage -d ./ldp.dsl devel_HOWTO.sgml
21-
( cd devel_HOWTO_multipage && cp -p t1.htm index.html )
22-
23-
devel_HOWTO_onepage: devel_HOWTO.sgml
24-
docbook2html -u -o devel_HOWTO_onepage -d ./ldp.dsl devel_HOWTO.sgml
25-
( cd devel_HOWTO_onepage && mv devel_HOWTO.html index.html )
26-
27-
clean:
28-
rm -rf $(ALL)
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

doc/conf.py

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# MITgcm documentation build configuration file, created by
4+
# sphinx-quickstart on Tue Jun 6 11:04:04 2017.
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+
# If extensions (or modules to document with autodoc) are in another directory,
16+
# add these directories to sys.path here. If the directory is relative to the
17+
# documentation root, use os.path.abspath to make it absolute, like shown here.
18+
#
19+
# import os
20+
# import sys
21+
# sys.path.insert(0, os.path.abspath('.'))
22+
23+
24+
# -- General configuration ------------------------------------------------
25+
26+
# If your documentation needs a minimal Sphinx version, state it here.
27+
#
28+
# needs_sphinx = '1.0'
29+
30+
# Add any Sphinx extension module names here, as strings. They can be
31+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32+
# ones.
33+
extensions = ['sphinx.ext.autodoc',
34+
'sphinx.ext.mathjax',
35+
'sphinx.ext.viewcode',
36+
'sphinxcontrib.bibtex']
37+
38+
# Add any paths that contain templates here, relative to this directory.
39+
templates_path = ['_templates']
40+
41+
# The suffix(es) of source filenames.
42+
# You can specify multiple suffix as a list of string:
43+
#
44+
# source_suffix = ['.rst', '.md']
45+
source_suffix = '.rst'
46+
47+
# The master toctree document.
48+
master_doc = 'index'
49+
50+
# General information about the project.
51+
project = u'MITgcm'
52+
copyright = u'2017, Alistair Adcroft, Jean-Michel Campin, Stephanie Dutkiewicz, Constantinos Evangelinos, David Ferreira, Mick Follows, Gael Forget, Baylor Fox-Kemper, Patrick Heimbach, Chris Hill, Ed Hill, Helen Hill, Oliver Jahn, Martin Losch, John Marshall, Guillaume Maze, Dimitris Menemenlis and Andrea Molod'
53+
author = u'Alistair Adcroft, Jean-Michel Campin, Stephanie Dutkiewicz, Constantinos Evangelinos, David Ferreira, Mick Follows, Gael Forget, Baylor Fox-Kemper, Patrick Heimbach, Chris Hill, Ed Hill, Helen Hill, Oliver Jahn, Martin Losch, John Marshall, Guillaume Maze, Dimitris Menemenlis and Andrea Molod'
54+
55+
# The version info for the project you're documenting, acts as replacement for
56+
# |version| and |release|, also used in various other places throughout the
57+
# built documents.
58+
#
59+
# The short X.Y version.
60+
version = u'1.0'
61+
# The full version, including alpha/beta/rc tags.
62+
release = u'1.0'
63+
64+
# The language for content autogenerated by Sphinx. Refer to documentation
65+
# for a list of supported languages.
66+
#
67+
# This is also used if you do content translation via gettext catalogs.
68+
# Usually you set "language" from the command line for these cases.
69+
language = None
70+
71+
# List of patterns, relative to source directory, that match files and
72+
# directories to ignore when looking for source files.
73+
# This patterns also effect to html_static_path and html_extra_path
74+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
75+
76+
# The name of the Pygments (syntax highlighting) style to use.
77+
pygments_style = 'sphinx'
78+
79+
# If true, `todo` and `todoList` produce output, else they produce nothing.
80+
todo_include_todos = False
81+
82+
83+
# number figures
84+
85+
numfig_format = {'figure': 'Figure %s',
86+
'table': 'Table %s',
87+
'code-block': 'Code %s',
88+
}
89+
90+
numfig = True
91+
92+
# number figures within section
93+
numfig_secnum_depth = 1
94+
95+
math_number_all = True
96+
97+
numfig_format = {'figure': 'Figure %s', 'table': 'Table %s', 'code-block': 'Listing %s', 'section': 'Section %s'}
98+
99+
# -- Options for HTML output ----------------------------------------------
100+
101+
# The theme to use for HTML and HTML Help pages. See the documentation for
102+
# a list of builtin themes.
103+
#
104+
#html_theme = 'alabaster'
105+
106+
import sphinx_rtd_theme
107+
108+
html_theme = "sphinx_rtd_theme"
109+
110+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
111+
112+
# Theme options are theme-specific and customize the look and feel of a theme
113+
# further. For a list of options available for each theme, see the
114+
# documentation.
115+
#
116+
# html_theme_options = {}
117+
118+
# Add any paths that contain custom static files (such as style sheets) here,
119+
# relative to this directory. They are copied after the builtin static files,
120+
# so a file named "default.css" will overwrite the builtin "default.css".
121+
html_static_path = ['_static']
122+
123+
124+
# -- Options for HTMLHelp output ------------------------------------------
125+
126+
# Output file base name for HTML help builder.
127+
htmlhelp_basename = 'MITgcmdoc'
128+
129+
130+
# -- Options for LaTeX output ---------------------------------------------
131+
132+
latex_elements = {
133+
# The paper size ('letterpaper' or 'a4paper').
134+
#
135+
# 'papersize': 'letterpaper',
136+
137+
# The font size ('10pt', '11pt' or '12pt').
138+
#
139+
# 'pointsize': '10pt',
140+
141+
# Additional stuff for the LaTeX preamble.
142+
#
143+
# 'preamble': '',
144+
145+
# Latex figure (float) alignment
146+
#
147+
# 'figure_align': 'htbp',
148+
}
149+
150+
# Grouping the document tree into LaTeX files. List of tuples
151+
# (source start file, target name, title,
152+
# author, documentclass [howto, manual, or own class]).
153+
latex_documents = [
154+
(master_doc, 'MITgcm.tex', u'MITgcm Documentation',
155+
u'Alistair Adcroft, Jean-Michel Campin, Stephanie Dutkiewicz, \\and Constantinos Evangelinos, David Ferreira, Mick Follows, \\and Gael Forget, Baylor Fox-Kemper, Patrick Heimbach, Chris Hill, \\and Ed Hill, Helen Hill, Oliver Jahn, Martin Losch, John Marshall, \\and Guillaume Maze, Dimitris Menemenlis and Andrea Molod', 'manual'),
156+
]
157+
158+
159+
# -- Options for manual page output ---------------------------------------
160+
161+
# One entry per manual page. List of tuples
162+
# (source start file, name, description, authors, manual section).
163+
man_pages = [
164+
(master_doc, 'mitgcm', u'MITgcm Documentation',
165+
[author], 1)
166+
]
167+
168+
169+
# -- Options for Texinfo output -------------------------------------------
170+
171+
# Grouping the document tree into Texinfo files. List of tuples
172+
# (source start file, target name, title, author,
173+
# dir menu entry, description, category)
174+
texinfo_documents = [
175+
(master_doc, 'MITgcm', u'MITgcm Documentation',
176+
author, 'MITgcm', 'A highly configurable general circulation model.',
177+
'Miscellaneous'),
178+
]
179+
180+
181+

0 commit comments

Comments
 (0)