Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit b280af9

Browse files
authored
Merge pull request #6 from StochasticTree/doc-update
Documentation overhaul
2 parents ff301b0 + 365b448 commit b280af9

35 files changed

+10
-5345
lines changed

.github/workflows/docs.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- name: Checkout repository
2424
uses: actions/checkout@v4
2525
with:
26+
repository: 'StochasticTree/stochtree'
2627
submodules: 'recursive'
2728

2829
- name: Setup Python 3.10
@@ -34,22 +35,22 @@ jobs:
3435
- name: Install Package with Relevant Dependencies
3536
run: |
3637
pip install --upgrade pip
37-
pip install -r docs/requirements.txt
38+
pip install -r python_docs/requirements.txt
3839
pip install .
3940
4041
- name: Build HTML
4142
run: |
42-
sphinx-build -M html docs/source/ docs/_build/
43+
sphinx-build -M html python_docs/source/ python_docs/_build/
4344
4445
- name: Upload Artifact
4546
uses: actions/upload-artifact@v4
4647
with:
4748
path:
48-
docs/_build/html/
49+
python_docs/_build/html/
4950

5051
- name: Deploy to GitHub Pages
5152
uses: peaceiris/actions-gh-pages@v4
5253
if: github.ref == 'refs/heads/main'
5354
with:
5455
github_token: ${{ secrets.GITHUB_TOKEN }}
55-
publish_dir: docs/_build/html
56+
publish_dir: python_docs/_build/html

.gitmodules

-7
This file was deleted.

CMakeLists.txt

-79
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 StochasticTree
3+
Copyright (c) 2024 stochtree authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+4-51
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,5 @@
1-
# StochasticTree Python Package
1+
# StochasticTree Python Package Documentation
22

3-
## Getting started
4-
5-
The python package can be installed from source. Before you begin, make sure you have [conda](https://www.anaconda.com/download) installed.
6-
Clone the repo recursively (including git submodules) by running
7-
8-
```{bash}
9-
git clone --recursive https://github.com/StochasticTree/stochtree-python.git
10-
```
11-
12-
### Conda-based installation
13-
14-
Conda provides a straightforward experience in managing python dependencies, avoiding version conflicts / ABI issues / etc.
15-
16-
To build stochtree using a `conda` based workflow, first create and activate a conda environment with the requisite dependencies
17-
18-
```{bash}
19-
conda create -n stochtree-dev -c conda-forge python=3.10 numpy scipy pytest pandas pybind11 scikit-learn matplotlib seaborn
20-
conda activate stochtree-dev
21-
pip install jupyterlab
22-
```
23-
24-
Then, navigate to the main `stochtree-python` project folder (i.e. `cd /path/to/stochtree-python`) and install the package locally via pip
25-
26-
```{bash}
27-
pip install .
28-
```
29-
30-
### Pip-based installation
31-
32-
If you would rather avoid installing and setting up conda, you can alternatively setup the dependencies and install `stochtree` using only `pip` (caveat: this has not been extensively tested
33-
across platforms and python versions).
34-
35-
First, navigate to the main `stochtree-python` project folder (i.e. `cd /path/to/stochtree-python`) and create and activate a virtual environment as a subfolder of the repo
36-
37-
```{bash}
38-
python -m venv venv
39-
source venv/bin/activate
40-
```
41-
42-
Install all of the package (and demo notebook) dependencies
43-
44-
```{bash}
45-
pip install numpy scipy pytest pandas scikit-learn pybind11 matplotlib seaborn jupyterlab
46-
```
47-
48-
Then install stochtree via
49-
50-
```{bash}
51-
pip install .
52-
```
3+
This is documentation repository, which builds and publishes
4+
docs for the [stochtree python package](https://stochastictree.github.io/stochtree-python/).
5+
The source code for the python (and R and C++) is available at https://github.com/StochasticTree/stochtree

0 commit comments

Comments
 (0)