Skip to content

Commit

Permalink
for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-luo committed Aug 10, 2023
1 parent d9f20d5 commit 5ed1555
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the "doc/" directory with Sphinx
sphinx:
configuration: doc/conf.py

# Additional dependencies
python:
install:
- requirements: doc/requirements.txt
34 changes: 30 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,34 @@
- PETSc dependencies: `parmetis`, `scotch`, `suitesparse`, `superlu_dist`, `ml`, `hypre`
- (optional): `gmsh`, `mshr`, `jupyter`

## Recommended installation procedures using conda
1. Install `FEniCS` with appropriate dependencies

## Recommended installation using Anaconda
### Installation with pip
1. Create an environment with `FEniCS` and appropriate dependencies and activate environment
```
conda create -n soupy -c conda-forge fenics==2019.1.0 matplotlib scipy jupyter
conda activate soupy
```

2. Install `hIPPYlib` via pip
```
pip install hippylib
```

3. Install `SOUPy` via pip
```
pip install soupy@git+https://github.com/hippylib/soupy
```

4. Clone the `SOUPy` directory to access examples
```
git clone https://github.com/hippylib/soupy.git
```

Examples in the `applications` directory can now be run. We refer to the full `FEniCS` [installation instructions](https://hippylib.readthedocs.io/en/3.0.0/installation.html) from `hIPPYlib` for more detail.

### Installation for developers
1. Create an environment with `FEniCS` with appropriate dependencies
```
conda create -n soupy -c conda-forge fenics==2019.1.0 matplotlib scipy jupyter
```
Expand All @@ -34,8 +60,8 @@ conda env config vars set HIPPYLIB_PATH=path/to/hippylib
conda env config vars set SOUPY_PATH=path/to/soupy
```

Examples in the `applications` directory can now be run. We refer to the full `FEniCS` [installation instructions](https://hippylib.readthedocs.io/en/3.0.0/installation.html) from `hIPPYlib` for more detail.
Examples in the `examples` directory can now be run.

## Build the SOUPy documentation using Sphinx

Documentation for `SOUPy` can be built using `sphinx`, along with extensions
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![Build Status](https://github.com/hippylib/soupy/actions/workflows/ci.yml/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/hippylibsoupy/badge/?version=latest)](https://hippylibsoupy.readthedocs.io/en/latest/?badge=latest)

# Stochastic Optimization under high-dimensional Uncertainty in Python

Expand Down
2 changes: 2 additions & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx
myst_parser

0 comments on commit 5ed1555

Please sign in to comment.