Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ images/management/analysis_pipeline.pdf
/src/.jupyter_cache

/.quarto/

**/*.quarto_ipynb
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,48 @@ git push origin main

The GitHub Actions workflow will automatically build and publish to GitHub Pages.

## Server Deployment (Stanford)

To build and deploy on the Stanford server without compiling locally:

### One-time setup

1. Create a conda environment with Quarto:

```bash
conda create -n mlhp python=3.11 quarto=1.5.56 -c conda-forge
conda activate mlhp
pip install -r requirements.txt
```

2. Clone the repository to the server:

```bash
cd /lfs/skampere2/0/sttruong
git clone https://github.com/sangttruong/mlhp
```

### Deploying updates

Run the deploy script:

```bash
./deploy.sh
```

This will pull the latest changes, build the HTML, and sync to `/afs/cs/group/koyejolab/mlhp/www/`.

Alternatively, run the steps manually:

```bash
source /lfs/local/0/sttruong/miniconda3/etc/profile.d/conda.sh
conda activate mlhp
cd /lfs/skampere2/0/sttruong/mlhp
git pull
quarto render --to html --profile html
rsync -av --delete _book/ /afs/cs/group/koyejolab/mlhp/www/
```

## Troubleshooting

- **Quarto version issues:** Ensure you have Quarto >= 1.5.56. Check with `quarto --version`.
Expand Down
Empty file removed _book/.nojekyll
Empty file.
1 change: 0 additions & 1 deletion _book/CNAME

This file was deleted.

1,072 changes: 0 additions & 1,072 deletions _book/index.html

This file was deleted.

402 changes: 0 additions & 402 deletions _book/search.json

This file was deleted.

This file was deleted.

This file was deleted.

2,078 changes: 0 additions & 2,078 deletions _book/site_libs/bootstrap/bootstrap-icons.css

This file was deleted.

Binary file removed _book/site_libs/bootstrap/bootstrap-icons.woff
Binary file not shown.
7 changes: 0 additions & 7 deletions _book/site_libs/bootstrap/bootstrap.min.js

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 0 additions & 7 deletions _book/site_libs/clipboard/clipboard.min.js

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions _book/site_libs/quarto-html/anchor.min.js

This file was deleted.

6 changes: 0 additions & 6 deletions _book/site_libs/quarto-html/popper.min.js

This file was deleted.

Loading
Loading