Skip to content

Commit bcd5ed8

Browse files
g-bauerprehner
andauthored
Documentation (feos-org#1)
* Added documentation from feos-core * add pcsaft equation of state * Added documentation from feos-core * Add index for examples * Restructured API docs * Fixed conf.py * Moved whole documentation to rst * update toc for DFT functionalities * further changes * add documentation workflow * Removed gc-pcsaft, added feature for blas/lapack, adjusted workflow Co-authored-by: Philipp Rehner <prehner@ethz.ch>
1 parent 10da0ee commit bcd5ed8

28 files changed

Lines changed: 8650 additions & 9 deletions
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Setup python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.9
21+
- name: Install openBLAS
22+
run: sudo apt-get install -y libopenblas-dev
23+
- name: Install python dependencies
24+
run: |
25+
pip install sphinx sphinx-bootstrap-theme nbsphinx
26+
- name: Build Wheels
27+
uses: messense/maturin-action@v1
28+
with:
29+
manylinux: auto
30+
command: build
31+
args: --release --out dist --no-sdist
32+
- name: Install module
33+
run: |
34+
pip install feos --no-index --find-links dist --force-reinstall
35+
- name: Build documentation
36+
run: sphinx-build docs/ public/ -b html
37+
- name: Upload artifacts
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: documentation
41+
path: public

Cargo.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@ crate-type = ["cdylib"]
1111
quantity = "0.3"
1212
feos-core = { git = "https://github.com/feos-org/feos-core", branch = "main" }
1313
feos-dft = { git = "https://github.com/feos-org/feos-dft", branch = "main" }
14-
feos-gc-pcsaft = { git = "https://github.com/feos-org/feos-gc-pcsaft", branch = "main", features = ["python", "openblas-system"] }
15-
feos-pcsaft = { git = "https://github.com/feos-org/feos-pcsaft", branch = "main", features = ["python", "openblas-system"] }
14+
feos-pcsaft = { git = "https://github.com/feos-org/feos-pcsaft", branch = "main", features = ["python"] }
1615

1716
[dependencies.pyo3]
1817
version = "0.14"
19-
features = ["extension-module", "abi3", "abi3-py36"]
18+
features = ["extension-module", "abi3", "abi3-py36"]
19+
20+
[features]
21+
default = ["openblas-system"]
22+
openblas-system = ["feos-pcsaft/openblas-system"]
23+
openblas-static = ["feos-pcsaft/openblas-static"]
24+
intel-mkl-system = ["feos-pcsaft/intel-mkl-system"]
25+
intel-mkl-static = ["feos-pcsaft/intel-mkl-static"]
26+
netlib-system = ["feos-pcsaft/netlib-system"]
27+
netlib-static = ["feos-pcsaft/netlib-static"]

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 = .
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)

0 commit comments

Comments
 (0)