Skip to content

Commit

Permalink
Support read the docs (#55)
Browse files Browse the repository at this point in the history
* Fix docs and configure for read the docs

* Ignore virtual environments in doc build tree

* Trigger rtd hook

* Try using mamba to build faster

* Suggest version of sphinx to use (RTD will likely still override)
  • Loading branch information
mphoward authored Jan 6, 2022
1 parent 7fcc6b0 commit 09629b7
Show file tree
Hide file tree
Showing 47 changed files with 344 additions and 310 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ __pycache__
*.pyc
build*
doc/build
doc/source/reference/api
doc/env
**-checkpoint.ipynb
13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

sphinx:
configuration: doc/source/conf.py
fail_on_warning: true

build:
os: "ubuntu-20.04"
tools:
python: "mambaforge-4.10"

conda:
environment: doc/environment.yml
100 changes: 66 additions & 34 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Release notes
=============

Unreleased
----------
Upcoming
--------
*Other changes*

* Add a code of conduct for contributors.
Expand All @@ -11,14 +11,18 @@ Unreleased
* The default git branch is renamed ``main``. More
`information <https://sfconservancy.org/news/2020/jun/23/gitbranchname>`_ is available.

v0.10.1 (12 Jan 2021)
---------------------
v0.10.1
-------
Released 12 Jan 2021

*Bug fixes*

* Fix normalization of velocity in ``flow.FlowProfiler``.

v0.10.0 (27 Jul 2020)
---------------------
v0.10.0
-------
Released 27 Jul 2020

This is the first release of azplugins to include compilable documentation. The
``docs`` can be built using sphinx. Currently, only the APIs are thoroughly documented,
but we will be expanding the rest of the documentation in future releases with examples
Expand All @@ -38,8 +42,10 @@ and tutorials.

* The python unit tests have been updated to remove ``import *``.

v0.9.2 (3 Mar 2020)
-------------------
v0.9.2
------
Released 3 Mar 2020

*Bug fixes*

* Fix a compilation error on MacOS clang builds.
Expand All @@ -48,14 +54,18 @@ v0.9.2 (3 Mar 2020)

* Update copyright to 2020.

v0.9.1 (18 Dec 2019)
--------------------
v0.9.1
------
Released 18 Dec 2019

*Bug fixes*

* Fix a compilation error in CUDA-enabled builds.

v0.9.0 (15 Dec 2019)
--------------------
v0.9.0
------
Released 15 Dec 2019

*New features*

* ``flow.constant`` implements a constant flow along a vector.
Expand All @@ -71,24 +81,30 @@ v0.9.0 (15 Dec 2019)
New pair potential evaluators should derive from one of the convenience base classes.
* CI testing has been added for HOOMD 2.8.0 in addition to 2.6.0.

v0.8.0 (5 Nov 2019)
-------------------
v0.8.0
------
Released 5 Nov 2019

*New features*

* ``evaporate.implicit`` now supports evaporation in both film and droplet
geometries. The default geometry remains the film.
* ``restrain.plane`` allows particles to be harmonically restrained by their
distance relative to a plane.

v0.7.1 (20 Aug 2019)
--------------------
v0.7.1
------
Released 20 Aug 2019

*Bug fixes*

* Silence a warning in CMake >= 3.12.
* Fix a link error in compiled unit tests.

v0.7.0 (24 Jun 2019)
--------------------
v0.7.0
------
Released 24 Jun 2019

This version of the plugin **requires** HOOMD-blue v2.6.0 for compatibility
with the new streaming geometries in its MPCD component. HOOMD-blue **must**
be built with the MPCD component.
Expand All @@ -104,8 +120,10 @@ be built with the MPCD component.
numbers drawn for a given seed will change. New features using random
numbers should add a unique 32-bit identifier to ``RNGIdentifiers.h``.

v0.6.2 (25 Apr 2019)
--------------------
v0.6.2
------
Released 25 Apr 2019

All commits and pull requests are now automatically tested against HOOMD 2.5.1
on CircleCI. Unit tests are run for CPU-only build configurations. CUDA-enabled
builds are tested for compilation, but their unit tests cannot be run on CircleCI.
Expand All @@ -118,14 +136,18 @@ and tests for new code should be run locally on a GPU.
* Fix HOOMD version parsing in CMake for external builds.
* Fix CMake errors in testing for certain build configurations.

v0.6.1 (28 Mar 2019)
--------------------
v0.6.1
------
Released 28 Mar 2019

*Bug fixes*

* Fix thrust template parameters in ``mpcd.reverse_perturbation`` for CUDA 9 & 10.

v0.6.0 (25 Feb 2019)
--------------------
v0.6.0
------
Released 25 Feb 2019

This version of the plugin **requires** HOOMD-blue v2.3.0 for compatibility
with the embedded pybind11 library. Be sure to update your git submodules
when recompiling and installing HOOMD-blue.
Expand All @@ -145,8 +167,10 @@ GitHub (https://github.com/mphoward/azplugins).
* ``FindHOOMD.cmake`` has been improved to support ``find_package`` and detect
the installed version of HOOOMD.

v0.5.0 (11 Jun 2018)
--------------------
v0.5.0
------
Released 11 Jun 2018

This version of the plugin **requires** HOOMD-blue v2.2.2 in order to
ensure all necessary header files are available.

Expand All @@ -164,8 +188,10 @@ ensure all necessary header files are available.
external flow fields. Currently, the supported fields are ``flow.quiescent``
and ``flow.parabolic``, but additional fields can be included by templating.

v0.4.0 (16 Nov 2017)
--------------------
v0.4.0
------
Released 16 Nov 2017

This version of the plugin **requires** HOOMD-blue v2.2.1 in order
to ensure all necessary header files are available.

Expand Down Expand Up @@ -194,8 +220,10 @@ to ensure all necessary header files are available.
* CMake exits gracefully when the MD component is not available from hoomd.
* Plugins now compile with debug flags.

v0.3.0 (22 Aug 2017)
--------------------
v0.3.0
------
Released 22 Aug 2017

This version of the plugin is now tested against HOOMD-blue v2.1.9.
Users running older versions of HOOMD-blue are recommended to upgrade
their installations in order to ensure compatibility and the latest
Expand All @@ -218,8 +246,10 @@ bug fixes on the main code paths.
compilation errors with newer versions of hoomd where the header
was removed.

v0.2.0 (28 Feb 2017)
--------------------
v0.2.0
------
Released 28 Feb 2017

*New features*

* ``analyze.rdf`` implements a radial distribution function calculator
Expand All @@ -234,8 +264,10 @@ v0.2.0 (28 Feb 2017)
* Source code guidelines and a pull request checklist are discussed in a
new ``CONTRIBUTING.md``.

v0.1.0 (9 Feb 2017)
-------------------
v0.1.0
------
Released 9 Feb 2017

*New features*

* A framework is configured for developing pair potentials.
Expand Down
5 changes: 0 additions & 5 deletions azplugins/_azplugins.py

This file was deleted.

11 changes: 11 additions & 0 deletions azplugins/analyze.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
# Copyright (c) 2018-2020, Michael P. Howard
# Copyright (c) 2021, Auburn University
# This file is part of the azplugins project, released under the Modified BSD License.
"""
Analyzers
=========
.. autosummary::
:nosignatures:
rdf
.. autoclass:: rdf
"""
import numpy
import hoomd

Expand Down
16 changes: 16 additions & 0 deletions azplugins/bond.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# Copyright (c) 2018-2020, Michael P. Howard
# Copyright (c) 2021, Auburn University
# This file is part of the azplugins project, released under the Modified BSD License.
"""
Bond potentials
===============
.. autosummary::
:nosignatures:
double_well
fene
fene24
.. autoclass:: double_well
.. autoclass:: fene
.. autoclass:: fene24
"""

import math

Expand Down
12 changes: 12 additions & 0 deletions azplugins/dpd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# Copyright (c) 2018-2020, Michael P. Howard
# Copyright (c) 2021, Auburn University
# This file is part of the azplugins project, released under the Modified BSD License.
"""
DPD potentials
==============
.. autosummary::
:nosignatures:
general
.. autoclass:: general
"""

import hoomd
from hoomd import _hoomd
Expand Down
13 changes: 13 additions & 0 deletions azplugins/evaporate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# Copyright (c) 2018-2020, Michael P. Howard
# Copyright (c) 2021, Auburn University
# This file is part of the azplugins project, released under the Modified BSD License.
"""
Evaporation
===========
.. autosummary::
:nosignatures:
implicit
particles
.. autoclass:: implicit
.. autoclass:: particles
"""
import hoomd

from . import _azplugins
Expand Down
32 changes: 32 additions & 0 deletions azplugins/flow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
# Copyright (c) 2018-2020, Michael P. Howard
# Copyright (c) 2021, Auburn University
# This file is part of the azplugins project, released under the Modified BSD License.
"""
Flow
====
Flow fields and profilers
.. autosummary::
:nosignatures:
quiescent
constant
parabolic
reverse_perturbation
FlowProfiler
Flow integrators
.. autosummary::
:nosignatures:
brownian
langevin
.. autoclass:: quiescent
.. autoclass:: constant
.. autoclass:: parabolic
.. autoclass:: reverse_perturbation
.. autoclass:: FlowProfiler
.. autoclass:: brownian
.. autoclass:: langevin
"""

import numpy as np
import hoomd
Expand Down
14 changes: 14 additions & 0 deletions azplugins/integrate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# Copyright (c) 2018-2020, Michael P. Howard
# Copyright (c) 2021, Auburn University
# This file is part of the azplugins project, released under the Modified BSD License.
"""
Integrators
===========
Bounce-back integrators
.. autosummary::
:nosignatures:
slit
.. autoclass:: slit
"""

import hoomd
from hoomd.mpcd import _mpcd
Expand Down
13 changes: 13 additions & 0 deletions azplugins/mpcd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Copyright (c) 2018-2020, Michael P. Howard
# Copyright (c) 2021, Auburn University
# This file is part of the azplugins project, released under the Modified BSD License.
"""
MPCD methods
============
.. autosummary::
:nosignatures:
reverse_perturbation
.. autoclass:: reverse_perturbation
"""


import hoomd

Expand Down
Loading

0 comments on commit 09629b7

Please sign in to comment.