A customizable template for creating training materials on DesignSafe using Jupyter Book.
Maintained by Krishna Kumar, University of Texas at Austin
- Pre-configured Jupyter Book structure
- GitHub Pages integration
- DesignSafe-specific workflows
- Easy content authoring with Markdown/Jupyter Notebooks
- Customizable table of contents
- "Open in DesignSafe" button integration
-
Fork the Repository
Fork original repository -
Enable GitHub Pages
Go to Settings → Pages → Set source togh-pages
branch -
Clone Your Fork
git clone https://github.com/DesignSafe-CI/training-template.git
- Basic Settings (
_config.yml
)
title: "Your Training Title"
author: "Your Name"
url: "https://your-username.github.io/training-template"
- Table of Contents (
_toc.yml
)
format: jb-book
root: intro
chapters:
- file: path/to/chapter1
- file: path/to/chapter2
- DesignSafe Integration
To add "Open in DesignSafe" buttons:
Supported formats:
-
📝 Markdown (.md)
-
📓 Jupyter Notebooks (.ipynb)
-
🔄 MyST Markdown
├── content/
│ ├── intro.md
│ ├── chapter1/
│ │ ├── notebook.ipynb
│ │ └── images/
├── _toc.yml
└── _config.yml
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # Linux/macOS
# venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Build book
jupyter-book build .
python -m http.server --directory _build/html
Commit changes:
git add .
git commit -m "Update content"
git push origin main
GitHub Actions will automatically:
- Build book
- Deploy to GitHub Pages
- View at: https://<your-username>.github.io/training-template
BSD 3-Clause License - See LICENSE