Skip to content

Commit 24e6c55

Browse files
committed
Added Sphinx Doc Files (WIP)
Added files and build system for Sphinx documentation. Work in progress, will add more documentation on functions and quickstart guide.
1 parent 3348605 commit 24e6c55

32 files changed

+3691
-0
lines changed

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13.7 KB
Binary file not shown.

docs/build/doctrees/index.doctree

4.7 KB
Binary file not shown.
6.49 KB
Binary file not shown.

docs/build/html/.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: c842b575b097273d14d04c5218d4d760
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/build/html/.buildinfo.bak

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 7c8d5b4037ca6b2820e899b7d2425c75
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. Pore2Chip documentation master file, created by
2+
sphinx-quickstart on Thu Jan 2 09:45:53 2025.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Pore2Chip Documentation
7+
=======================
8+
9+
**Pore2Chip** is a Python module designed to streamline the process of analyzing X-ray computed tomography (XCT)
10+
images of soil and creating 2D micromodel designs based on that analysis.
11+
It leverages the power of open-source libraries like OpenPNM, PoreSpy, and drawsvg to extract key information about the soil's
12+
porous structure and translate it into a blueprint for microfluidic simulations or physical "lab-on-a-chip" devices developed using additive manufacturing.
13+
14+
.. note::
15+
16+
This project is under active development.
17+
18+
.. toctree::
19+
:maxdepth: 2
20+
:caption: Contents:
21+
22+
install
23+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
.. Installation
3+
.. =======================
4+
5+
.. The OpenPNM and PoreSpy libraries are required to analyze XCT images. PoreSpy is used to generate a
6+
.. pore network that is used to extract pore size distribution, pore throat size distribution, and pore coordination numbers.
7+
.. OpenPNM is used to construct a new 2D pore network that will be used to create the micromodel design.
8+
9+
.. Install using PiP:
10+
11+
.. .. code-block:: console
12+
.. $ pip install pore2chip
13+
14+
Installation
15+
============
16+
17+
The OpenPNM and PoreSpy libraries are required to analyze XCT images. PoreSpy is used to generate a
18+
pore network that is used to extract pore size distribution, pore throat size distribution, and pore coordination numbers.
19+
OpenPNM is used to construct a new 2D pore network that will be used to create the micromodel design.
20+
21+
Install using PiP:
22+
23+
.. code-block:: console
24+
25+
$ pip install pore2chip
26+
27+
Install from source:
28+
29+
.. code-block:: console
30+
31+
$ git clone https://github.com/EMSL-Computing/Pore2Chip.git
32+
$ cd Pore2Chip
33+
$ python3 -m build
34+
$ python3 -m pip install pore2chip --no-index --find-links dist/
35+
36+
Creating a Conda environment:
37+
38+
.. code-block:: console
39+
40+
$ conda create -n pore2chip python=3.9
41+
$ conda activate pore2chip
42+
$ pip install pore2chip
43+
44+
Building a Docker Image with Jupyter Notebook:
45+
46+
.. code-block:: console
47+
48+
$ git clone https://github.com/EMSL-Computing/Pore2Chip.git
49+
$ cd Pore2Chip
50+
$ docker build -t pore2chip
51+
$ docker run -p 8888:8888 pore2chip

0 commit comments

Comments
 (0)