Skip to content

Commit

Permalink
Merge pull request #198 from dpploy/valmor
Browse files Browse the repository at this point in the history
Docs update.
  • Loading branch information
dealmeidavf authored Aug 2, 2019
2 parents 419e3c8 + c50edd4 commit f65005f
Show file tree
Hide file tree
Showing 31 changed files with 46 additions and 174 deletions.
26 changes: 1 addition & 25 deletions cortix/docs/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,14 @@ sed -i -e 1,3d readme_converted.rst
# Build docs for src directory
sphinx-apidoc -o src_rst ../src

# Build docs for src/utils subdirectory
sphinx-apidoc -o src_rst/utils_rst ../src/utils

# Build docs for support directory
sphinx-apidoc -o support_rst ../support

# Build docs for modulib directory
sphinx-apidoc -o modulib_rst ../modulib

# Build docs for pyplot subdirectory
sphinx-apidoc -o modulib_rst/pyplot_rst ../modulib/pyplot

# Build docs for examples directory
sphinx-apidoc -o examples_rst ../examples

# Build docs for console_run subdirectory
sphinx-apidoc -o examples_rst/console_run_rst ../examples/console_run

# Build docs for input subdirectory
sphinx-apidoc -o examples_rst/input_rst ..examples/input

# Build docs for modulib subdirectory
sphinx-apidoc -o examples_rst/modulib_rst ../examples/modulib

# Build docs for droplet subdirectory
sphinx-apidoc -o examples_rst/modulib_rst/droplet_rst ../examples/modulib/droplet

# Build docs for vortex subdirectory
sphinx-apidoc -o examples_rst/modulib_rst/vortex_rst ../examples/modulib/vortex

# Build docs for notebook_run subdirectory
#sphinx-apidoc -o examples_rst/notebook_run_rst ../examples/notebook_run
#sphinx-apidoc -o examples_rst/modulib_rst/vortex_rst ../examples/modulib/vortex

# Make documentation
make clean
Expand Down
12 changes: 11 additions & 1 deletion cortix/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,19 @@
#
todo_include_todos=True
#
# vfda Thu 01 Aug 2019 07:14:56 PM EDT
#
# For docstrings to be semi-automatically used, the docstrings must of course be written
# in correct reStructuredText. You can then use all of the usual Sphinx markup in the
# docstrings, and it will end up correctly in the documentation.
#
#If you prefer NumPy or Google style docstrings over reStructuredText, you can also
# enable the napoleon extension. napoleon is a preprocessor that converts your
# docstrings to correct reStructuredText before autodoc processes them.
#
napoleon_google_docstring = False
napoleon_numpy_docstring = True
napoleon_include_init_with_doc = False
napoleon_include_init_with_doc = False # include private functions "_func_name()"
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
Expand Down
1 change: 0 additions & 1 deletion cortix/docs/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ Cortix Documentation
:maxdepth: 2

src_rst/modules
modulib_rst/modules
examples_rst/modules
support_rst/modules
7 changes: 0 additions & 7 deletions cortix/docs/examples_rst/console_run_rst/main_executor.rst

This file was deleted.

7 changes: 0 additions & 7 deletions cortix/docs/examples_rst/console_run_rst/main_mpi.rst

This file was deleted.

7 changes: 0 additions & 7 deletions cortix/docs/examples_rst/console_run_rst/main_pthread.rst

This file was deleted.

10 changes: 0 additions & 10 deletions cortix/docs/examples_rst/console_run_rst/modules.rst

This file was deleted.

7 changes: 0 additions & 7 deletions cortix/docs/examples_rst/console_run_rst/wind_run.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
droplet\_run
============
dataplot module
===============

.. automodule:: droplet_run
.. automodule:: dataplot
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cortix\_driver
droplet module
==============

.. automodule:: cortix_driver
.. automodule:: droplet
:members:
:undoc-members:
:show-inheritance:
4 changes: 0 additions & 4 deletions cortix/docs/examples_rst/input_rst/cortix_config.rst

This file was deleted.

7 changes: 0 additions & 7 deletions cortix/docs/examples_rst/input_rst/modules.rst

This file was deleted.

11 changes: 7 additions & 4 deletions cortix/docs/examples_rst/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ examples
========

.. toctree::
:maxdepth: 2
:maxdepth: 4

console_run_rst/modules
input_rst/modules
modulib_rst/modules
dataplot
droplet
dummy_module
plot_data
run_droplet
vortex

This file was deleted.

9 changes: 0 additions & 9 deletions cortix/docs/examples_rst/modulib_rst/droplet_rst/droplet.rst

This file was deleted.

8 changes: 0 additions & 8 deletions cortix/docs/examples_rst/modulib_rst/droplet_rst/modules.rst

This file was deleted.

6 changes: 0 additions & 6 deletions cortix/docs/examples_rst/modulib_rst/modules.rst

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions cortix/docs/examples_rst/modulib_rst/vortex_rst/modules.rst

This file was deleted.

7 changes: 7 additions & 0 deletions cortix/docs/examples_rst/run_droplet.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
run\_droplet module
===================

.. automodule:: run_droplet
:members:
:undoc-members:
:show-inheritance:
File renamed without changes.
7 changes: 0 additions & 7 deletions cortix/docs/modulib_rst/modules.rst

This file was deleted.

9 changes: 0 additions & 9 deletions cortix/docs/modulib_rst/pyplot_rst/modules.rst

This file was deleted.

7 changes: 0 additions & 7 deletions cortix/docs/modulib_rst/pyplot_rst/pyplot.rst

This file was deleted.

7 changes: 0 additions & 7 deletions cortix/docs/modulib_rst/pyplot_rst/time_sequence.rst

This file was deleted.

4 changes: 2 additions & 2 deletions cortix/docs/src_rst/module.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module
======
module module
=============

.. automodule:: module
:members:
Expand Down
2 changes: 1 addition & 1 deletion cortix/docs/src_rst/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ src
===

.. toctree::
:maxdepth: 2
:maxdepth: 4

cortix_main
module
Expand Down
8 changes: 4 additions & 4 deletions cortix/examples/droplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class Droplet(Module):
'''
Droplet Cortix module used to model very simple fluid-particle interactions.
Ports
=====
external-flow: this is a port that exchanges data with any other module that
Note
----
`external-flow`: this is a `port` that exchanges data with any other module that
provides information about the flow outside the droplet.
visualization: this is a port that sends data to a visualization module.
`visualization`: this is a `port` that sends data to a visualization module.
'''

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion cortix/examples/plot_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from cortix.src.module import Module
from cortix.src.port import Port
from cortix.util.dataplot import DataPlot
from cortix.examples.dataplot import DataPlot
from cortix.src.cortix_main import Cortix

class PlotData(Module):
Expand Down
6 changes: 3 additions & 3 deletions cortix/examples/vortex.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Vortex(Module):
'''
Vortex module used to model fluid flow using Cortix.
Ports
=====
Any port name and any number of ports are allowed.
Note
----
Any `port` name and any number of ports are allowed.
'''

def __init__(self):
Expand Down
7 changes: 4 additions & 3 deletions cortix/support/phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def has_time_stamp(self, try_time_stamp):
Parameters
----------
try_time_stamp:
Returns
-------
Expand All @@ -161,8 +162,8 @@ def __get_time_unit(self):
'''
Returns the time unit of the `Phase.`
Paramers
--------
Parameters
----------
empty
Returns
Expand Down Expand Up @@ -732,7 +733,7 @@ def WriteHTML(self, fileName):
'''
Convert the `Phase` container into an HTML file.
Paramters
Parameters
---------
fileName: str
Expand Down

0 comments on commit f65005f

Please sign in to comment.