Skip to content

Commit e839aca

Browse files
authored
Merge pull request #77 from nextsimdg/docs
Docs
2 parents 83f2bfb + c46d539 commit e839aca

File tree

11 files changed

+201
-8
lines changed

11 files changed

+201
-8
lines changed

docs/Doxyfile

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ GENERATE_LATEX = NO
55
GENERATE_MAN = NO
66
GENERATE_RTF = NO
77
CASE_SENSE_NAMES = NO
8-
GENERATE_HTML = YES
98
GENERATE_XML = YES
109
RECURSIVE = YES
1110
QUIET = YES
@@ -17,6 +16,44 @@ EXCLUDE_SYMBOLS = detail
1716
GENERATE_TREEVIEW = YES
1817
SOURCE_BROWSER = YES
1918
# WARN_IF_UNDOCUMENTED = YES
19+
#---------------------------------------------------------------------------
20+
# Configuration options related to the dot tool
21+
#---------------------------------------------------------------------------
22+
CLASS_DIAGRAMS = YES
23+
MSCGEN_PATH =
24+
DIA_PATH =
25+
HIDE_UNDOC_RELATIONS = YES
26+
HAVE_DOT = YES
27+
DOT_NUM_THREADS = 0
28+
DOT_FONTNAME = Helvetica
29+
DOT_FONTSIZE = 10
30+
DOT_FONTPATH =
31+
CLASS_GRAPH = YES
32+
COLLABORATION_GRAPH = YES
33+
GROUP_GRAPHS = YES
34+
UML_LOOK = YES
35+
UML_LIMIT_NUM_FIELDS = 50
36+
TEMPLATE_RELATIONS = YES
37+
INCLUDE_GRAPH = YES
38+
INCLUDED_BY_GRAPH = YES
39+
CALL_GRAPH = YES
40+
CALLER_GRAPH = YES
41+
GRAPHICAL_HIERARCHY = YES
42+
DIRECTORY_GRAPH = YES
43+
DOT_IMAGE_FORMAT = png
44+
INTERACTIVE_SVG = NO
45+
DOT_PATH =
46+
DOTFILE_DIRS =
47+
MSCFILE_DIRS =
48+
DIAFILE_DIRS =
49+
PLANTUML_JAR_PATH =
50+
PLANTUML_INCLUDE_PATH =
51+
DOT_GRAPH_MAX_NODES = 100
52+
MAX_DOT_GRAPH_DEPTH = 0
53+
DOT_TRANSPARENT = YES
54+
DOT_MULTI_TARGETS = NO
55+
GENERATE_LEGEND = YES
56+
DOT_CLEANUP = YES
2057

2158
#---------------------------------------------------------------------------
2259
# Configuration options related to the dot tool

docs/api/class.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. Copyright (c) 2021, Nansen Environmental and Remote Sensing Center
2+
3+
Classes
4+
-------
5+
6+
.. doxygenclass:: nextsim::model
7+
:project: nextsimdg
8+
:members:

docs/api/counttimercpp.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. Copyright (c) 2021, Nansen Environmental and Remote Sensing Center
2+
3+
CountTimer.cpp
4+
--------------
5+
6+
7+
.. doxygenfile:: CountTimer.cpp
8+
:project: nextsimdg
9+
:members:

docs/api/function.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. Copyright (c) 2021, Nansen Environmental and Remote Sensing Center
2+
3+
Functions
4+
---------
5+
6+
.. doxygenfunction::

docs/api/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. Copyright (c) 2021, Nansen Environmental and Remote Sensing Center
2+
3+
Index
4+
-----
5+
6+
.. doxygenindex::
7+
:project: nextsimdg
8+
:outline:
9+
:no-link:

docs/api/num.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. Copyright (c) 2021, Nansen Environmental and Remote Sensing Center
2+
3+
Enumerator
4+
----------
5+
6+
.. doxygenenum::

docs/api/structure.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. Copyright (c) 2021, Nansen Environmental and Remote Sensing Center
2+
3+
Structure
4+
---------
5+
6+
.. doxygenstruct::

docs/api/typedef.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. Copyright (c) 2021, Nansen Environmental and Remote Sensing Center
2+
3+
Typedef
4+
-------
5+
6+
.. doxygentypedef::

docs/getting_started.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.. Copyright (c) 2021, Nansen Environmental and Remote Sensing Center
2+
3+
.. raw:: html
4+
5+
Getting Started
6+
===============
7+
8+
This short guide explains how to get started with nextsimdg once you have installed it with one of the methods described in the installation section.
9+
10+
Simple Example
11+
--------------
12+
13+
Control of nextsimdg is done using configuration files. One or more of these can be specified on the command line using the `--config-file` (for a single file) or `--config-files` (for several files) options. These files specify the configuration of the model, including the initial restart file (`model.init_file`) and the start (`model.start`), stop (`model.stop`) and time step (`model.time_step`) values, formatted as simple integers. The configuration of parts of the model can also be changed, but this is beyond the scope of a simple example.
14+
15+
As part of the 0.1.0 release, the model operates on a simple fixed 10x10 grid of data. The restart file can be generated using the Python script `dev_res.py`. This generates an initial restart file of the correct format, which is a netCDF file of the correct structure. The desired data can be provided by editing the python script.
16+
17+
With the value of the `model.init_file` variable set to the name of the correct initialization file, add the name of the configuration file as a `config-file` argument to the command line and execute. The model will produce a restart file named `restart.nc`. The results of applying the model physics to the initial data over the specified number of time steps will be found here.
18+
19+
An example config file (`dev1.cfg`) and shell script (`dev1.sh`) to run the model can be found in the `run` directory.
20+
21+
First Example
22+
-------------
23+
24+
In this first example, we are going to ...

docs/index.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ limitations under the License.
4141

4242

4343
.. toctree::
44-
:caption: API REFERENCE
44+
:caption: API Documentation
4545
:maxdepth: 2
4646

47-
html/index.html
47+
api/library_root
48+
api/index
49+
50+
51+
All `Doxygen documentation`_
52+
53+
.. _Doxygen documentation : https://nextsimdg.github.io/nextsimdg/index.html

0 commit comments

Comments
 (0)