This repository contains comprehensive documentation for the Samay time-series forecasting library.
View the documentation online: https://adityalab.github.io/SamayDocs/
Samay is a unified Python library that provides a consistent interface for multiple time-series foundational models including LPTM, MOMENT, TimesFM, Chronos, MOIRAI, and TinyTimeMixer.
To clone this repository along with the Samay submodule, use:
git clone --recurse-submodules https://github.com/AdityaLab/SamayDocs.git
cd SamayDocsThis project uses uv for dependency management. Install all dependencies with:
uv syncThis will install all dependencies including the Samay library from the workspace submodule.
To preview the documentation locally with live reload (changes will automatically refresh):
uv run mkdocs serveThe documentation will be available at http://127.0.0.1:8000 in your browser.
To build the static documentation site:
uv run mkdocs buildThe built site will be in the site/ directory.
To deploy the documentation to the gh-pages branch (which makes it available at the GitHub Pages URL):
uv run mkdocs gh-deployThis command will:
- Build the documentation site
- Commit the built site to the
gh-pagesbranch - Push the changes to GitHub
After deployment, the documentation will be available at the configured GitHub Pages URL (typically https://<username>.github.io/<repository-name>/).
Note: Ensure you have push access to the repository and that GitHub Pages is enabled in your repository settings.
This repository includes the Samay library as a submodule, so changes may involve updating both repositories. Follow these guidelines:
If you've made changes to the Samay library or need to pull the latest changes:
# Navigate to the submodule directory
cd Samay
# Pull latest changes from the Samay repository
git pull origin main # or the appropriate branch
# Return to the docs repository
cd ..Or update the submodule from the root directory:
git submodule update --remote Samay- Edit documentation files: Modify the Markdown files in the
docs/directory - Update API documentation: API docs are auto-generated from source code in
Samay/src/samay/. If you modify Samay source code, the API docs will automatically reflect those changes. - Preview changes: Use
uv run mkdocs serveto see your changes in real-time - Test the build: Run
uv run mkdocs buildto ensure everything builds correctly
When making changes that affect both repositories:
If you only modified documentation files:
# In the SamayDocs repository root
git add docs/
git commit -m "Update documentation"
git pushIf you modified both Samay and documentation:
-
First, commit and push Samay changes:
cd Samay git add . git commit -m "Update Samay code" git push cd ..
-
Then, update the submodule reference in SamayDocs:
git add Samay git commit -m "Update Samay submodule to latest version" git push
If you only need to update the submodule to point to a new commit:
# After pulling latest changes in Samay submodule
git add Samay
git commit -m "Update Samay submodule"
git pushTo get the latest changes from both repositories:
# Pull SamayDocs changes
git pull
# Update submodule to latest commit
git submodule update --init --recursive
# Or pull latest changes in the submodule
cd Samay
git pull
cd ..docs/index.md- Homepagedocs/getting-started.md- Installation guidedocs/models/- Model-specific documentationdocs/api/- API reference pages (auto-generated fromSamay/src/samay/)mkdocs.yml- Configuration fileSamay/src/samay/- Samay source code (submodule)
The documentation includes:
- Getting Started Guide - Installation and first forecasting example
- Model Guides - Detailed documentation for all 6 supported models
- API Reference - Auto-generated API documentation for models, datasets, and metrics
- Examples - Complete working examples for forecasting, anomaly detection, classification, and more
- Material theme with custom styling
- Full-text search functionality
- Auto-generated API documentation from source code
- Complete code examples with syntax highlighting
- External links automatically open in new tabs
- Mobile-responsive design
.
├── mkdocs.yml # MkDocs configuration
├── requirements.txt # Documentation dependencies
├── docs/
│ ├── index.md # Homepage
│ ├── getting-started.md # Installation and quick start
│ ├── examples.md # Complete examples
│ ├── models/ # Model-specific guides
│ │ ├── lptm.md
│ │ ├── timesfm.md
│ │ ├── moment.md
│ │ ├── chronos.md
│ │ ├── moirai.md
│ │ └── ttm.md
│ ├── api/ # API reference
│ │ ├── models.md
│ │ ├── datasets.md
│ │ └── metrics.md
│ └── javascripts/
│ └── external-links.js # External link handler
└── Samay/ # Source code
The main Samay library repository: github.com/AdityaLab/Samay
This documentation follows the same license as the Samay project.