- Notifications
You must be signed in to change notification settings - Fork1
Repo For decisioncurveanalysis.org
MSKCC-Epi-Bio/decisioncurveanalysis
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
| Python (PyPI) | R (CRAN) |
|---|---|
This repository contains the source code and materials used to build the Decision Curve Analysis website (decisioncurveanalysis.org).
# 1. Clean the site (remove generated files, especially cache)rmarkdown::clean_site(preview=FALSE)# 2. Render main site (this builds index.html and other core pages)rmarkdown::render_site()# Optional: Render language-specific versions of the tutorial# (Run this *after* render_site)languages<- c("r","stata","sas","python")for (langinlanguages) {rmarkdown::render("dca-tutorial.Rmd",output_file= paste0("dca-tutorial-",lang,".html"),params=list(language=lang))}
For a more streamlined development experience, you can use the includedbuild_site.sh script:
# Make the script executable (only needed once)chmod +x build_site.sh# Build and preview the entire site./build_site.sh
This script:
- Renders the tutorial for all languages (R, Stata, SAS, Python)
- Builds all site pages with proper navigation
- Keeps all output in the
_sitedirectory (keeps repo root clean) - Automatically cleans up temporary files
- Opens your browser to preview the site when done
It's the recommended way to preview the site locally during development as it closely matches how the site is built during deployment.
Here's a common workflow for contributing to this site:
- Make your changes (edit content, add examples, fix bugs)
- Run
./build_site.shto preview the changes - Check the site in your browser (automatically opened by the script)
- Make further adjustments if needed
- Commit your changes to your branch
- Create a pull request
The GitHub Actions workflow will automatically build and deploy the site when changes are merged to the main branch.
About
Repo For decisioncurveanalysis.org
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.