Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API docs #248

Merged
merged 17 commits into from
Sep 12, 2024
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ Platypus.egg-info/
Platypus_Opt.egg-info/
build/
dist/
docs/_build/
.ipynb_checkpoints/
.idea
8 changes: 8 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ build:
os: ubuntu-lts-latest
tools:
python: latest
apt_packages:
- mpi
- mpich
- libmpich-dev
- libopenmpi-dev
jobs:
post_create_environment:
- pip install .[full]

sphinx:
configuration: docs/conf.py
6 changes: 6 additions & 0 deletions docs/api/platypus.algorithms.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
platypus.algorithms module
==========================

.. automodule:: platypus.algorithms
:members:

8 changes: 8 additions & 0 deletions docs/api/platypus.config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
platypus.config module
======================

.. automodule:: platypus.config
:members:
:private-members:

.. autoattribute:: platypus.config.PlatypusConfig
5 changes: 5 additions & 0 deletions docs/api/platypus.core.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.core module
====================

.. automodule:: platypus.core
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.distance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.distance module
========================

.. automodule:: platypus.distance
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.errors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.errors module
======================

.. automodule:: platypus.errors
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.evaluator.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.evaluator module
=========================

.. automodule:: platypus.evaluator
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.experimenter.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.experimenter module
============================

.. automodule:: platypus.experimenter
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.filters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.filters module
=======================

.. automodule:: platypus.filters
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.indicators.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.indicators module
==========================

.. automodule:: platypus.indicators
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.io.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.io module
==================

.. automodule:: platypus.io
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.mpipool.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.mpipool module
==========================

.. automodule:: platypus.mpipool
:members:
6 changes: 6 additions & 0 deletions docs/api/platypus.operators.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
platypus.operators module
=========================

.. automodule:: platypus.operators
:members:
:exclude-members: mutate, evolve, generate, select
7 changes: 7 additions & 0 deletions docs/api/platypus.problems.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
platypus.problems module
========================

.. automodule:: platypus.problems
:members:
:undoc-members:
:exclude-members: evaluate, random, LAM, LB, UB, M
21 changes: 21 additions & 0 deletions docs/api/platypus.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Platypus API
============

.. toctree::
:maxdepth: 2

platypus.algorithms
platypus.config
platypus.core
platypus.distance
platypus.errors
platypus.evaluator
platypus.experimenter
platypus.filters
platypus.indicators
platypus.io
platypus.mpipool
platypus.operators
platypus.problems
platypus.types
platypus.weights
5 changes: 5 additions & 0 deletions docs/api/platypus.types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.types module
=====================

.. automodule:: platypus.types
:members:
5 changes: 5 additions & 0 deletions docs/api/platypus.weights.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
platypus.weights module
=======================

.. automodule:: platypus.weights
:members:
9 changes: 8 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.imgmath',
'sphinx_rtd_theme',
]

templates_path = ['_templates']
Expand All @@ -27,5 +28,11 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']

# The initial api/ contents were created with:
# sphinx-apidoc --separate --remove-old --no-toc -o docs/api platypus "*test*"
#
# Build these docs locally with:
# sphinx-build -M html . _build
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ optimization.
getting-started
types
experimenter
api/platypus
Loading