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
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy Documentation

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install mkdocs mkdocs-material pymdown-extensions

- name: Build documentation
run: |
mkdocs build

- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
publish_branch: gh-pages
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# MkDocs build output
site/

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
ENV/
.venv

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db
88 changes: 87 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,87 @@
# fz.github.io
# FZ Documentation Website

This repository hosts the documentation website for [FZ - Parametric Scientific Computing Framework](https://github.com/Funz/fz).

## πŸ“š Documentation Site

Visit the live documentation at: **https://funz.github.io**

## πŸš€ Quick Links

- [Installation Guide](https://funz.github.io/getting-started/installation/)
- [Quick Start](https://funz.github.io/getting-started/quickstart/)
- [Core Functions](https://funz.github.io/user-guide/core-functions/fzr/)
- [Plugins](https://funz.github.io/plugins/)
- [Google Colab Notebooks](https://funz.github.io/examples/colab/)

## πŸ““ Google Colab Examples

Try FZ directly in your browser:

- [Perfect Gas Example](https://colab.research.google.com/github/Funz/fz.github.io/blob/main/notebooks/perfectgas_example.ipynb)
- [OpenModelica Integration](https://colab.research.google.com/github/Funz/fz.github.io/blob/main/notebooks/modelica_example.ipynb)

## πŸ”Œ FZ Plugins

- [FZ-Moret](https://github.com/Funz/fz-moret) - Moret model plugin
- [FZ-MCNP](https://github.com/Funz/fz-mcnp) - Monte Carlo N-Particle Transport
- [FZ-Cathare](https://github.com/Funz/fz-cathare) - Thermal-hydraulic system code
- [FZ-Cristal](https://github.com/Funz/fz-cristal) - Cristal simulation plugin
- [FZ-Scale](https://github.com/Funz/fz-scale) - Scale nuclear analysis code
- [FZ-Telemac](https://github.com/Funz/fz-telemac) - Hydrodynamics simulation system

## πŸ› οΈ Building the Documentation

This site is built with [MkDocs](https://www.mkdocs.org/) and the [Material theme](https://squidfunk.github.io/mkdocs-material/).

### Prerequisites

```bash
pip install mkdocs mkdocs-material pymdown-extensions
```

### Local Development

```bash
# Clone the repository
git clone https://github.com/Funz/fz.github.io.git
cd fz.github.io

# Serve locally with live reload
mkdocs serve

# Open http://127.0.0.1:8000 in your browser
```

### Build

```bash
# Build static site
mkdocs build

# Output in site/ directory
```

### Deploy

The documentation is automatically deployed to GitHub Pages when changes are pushed to the `main` branch via GitHub Actions.

## πŸ“ Contributing

Contributions to the documentation are welcome! Please:

1. Fork this repository
2. Create a feature branch
3. Make your changes
4. Test locally with `mkdocs serve`
5. Submit a pull request

### Adding Content

- Documentation pages are in `docs/`
- Notebooks are in `notebooks/`
- Configuration is in `mkdocs.yml`

## πŸ“„ License

BSD 3-Clause License - see the [FZ repository](https://github.com/Funz/fz) for details.
150 changes: 150 additions & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# FZ Documentation Website - Summary

## What Was Built

A comprehensive ReadTheDocs-like documentation website for the FZ parametric scientific computing framework.

## Key Features

### 1. MkDocs with Material Theme
- Professional, modern design
- Responsive layout for all devices
- Dark/light mode toggle
- Advanced search functionality
- Beautiful code highlighting

### 2. Comprehensive Documentation (34 Pages)

#### Getting Started
- Installation guide (multiple methods, OS-specific)
- Quick start with complete example
- Core concepts and fundamentals

#### User Guide
- Core functions: fzi, fzc, fzo, fzr
- Model definition
- Calculator types (shell, SSH, cache)
- Advanced features (parallel, caching, formulas, interrupts)

#### Plugins (6 Plugins)
- FZ-Moret - Moret model plugin
- FZ-MCNP - Monte Carlo N-Particle Transport
- FZ-Cathare - Thermal-hydraulic system code
- FZ-Cristal - Cristal simulation plugin
- FZ-Scale - Scale nuclear analysis code
- FZ-Telemac - Hydrodynamics simulation system

#### Examples
- Perfect Gas pressure study (complete)
- Modelica/OpenModelica integration
- Remote HPC execution
- Google Colab notebooks

#### Reference
- API reference
- Configuration
- Environment variables
- Troubleshooting

### 3. Google Colab Notebooks (2 Notebooks)

1. **perfectgas_example.ipynb**
- Basic parametric study
- Ideal gas law calculations
- Visualization with matplotlib
- Ready to run in browser

2. **modelica_example.ipynb**
- OpenModelica integration
- Dynamic system simulations
- Harmonic oscillator example
- Parameter sweep and analysis

### 4. GitHub Pages Deployment

- Automated deployment with GitHub Actions
- Builds on every push to main
- Published to https://funz.github.io
- Continuous integration/deployment

## File Structure

```
fz.github.io/
β”œβ”€β”€ .github/
β”‚ └── workflows/
β”‚ └── deploy.yml # GitHub Actions deployment
β”œβ”€β”€ docs/ # Documentation source
β”‚ β”œβ”€β”€ index.md # Homepage
β”‚ β”œβ”€β”€ getting-started/ # 3 pages
β”‚ β”œβ”€β”€ user-guide/ # 12 pages
β”‚ β”œβ”€β”€ plugins/ # 7 pages
β”‚ β”œβ”€β”€ examples/ # 4 pages
β”‚ β”œβ”€β”€ reference/ # 4 pages
β”‚ └── contributing/ # 2 pages
β”œβ”€β”€ notebooks/ # Google Colab notebooks
β”‚ β”œβ”€β”€ perfectgas_example.ipynb
β”‚ └── modelica_example.ipynb
β”œβ”€β”€ mkdocs.yml # MkDocs configuration
β”œβ”€β”€ .gitignore # Git ignore rules
└── README.md # Repository README
```

## Technologies Used

- **MkDocs**: Static site generator for documentation
- **Material for MkDocs**: Beautiful, responsive theme
- **Python Markdown Extensions**: Enhanced markdown features
- **GitHub Actions**: Automated deployment
- **GitHub Pages**: Free hosting
- **Jupyter Notebooks**: Interactive examples

## How to Use

### Local Development
```bash
pip install mkdocs mkdocs-material pymdown-extensions
mkdocs serve
# Open http://127.0.0.1:8000
```

### Build
```bash
mkdocs build
# Output in site/ directory
```

### Deploy
Automatically deployed via GitHub Actions when pushing to main branch.

## Success Metrics

βœ… 34 documentation pages created
βœ… 2 Google Colab notebooks
βœ… All plugins documented
βœ… Complete examples with code
βœ… Professional design with Material theme
βœ… Automated deployment configured
βœ… Mobile-responsive
βœ… Search functionality
βœ… Dark/light mode

## Next Steps (Optional Future Enhancements)

- Add more Google Colab notebooks for each plugin
- Create video tutorials
- Add interactive examples
- Expand API reference with auto-generated docs
- Add versioning support
- Create tutorials section
- Add FAQ page

## Links

- **Repository**: https://github.com/Funz/fz.github.io
- **Live Site**: https://funz.github.io (once deployed)
- **Main FZ Repo**: https://github.com/Funz/fz

## Contact

For questions or contributions, please open an issue in the repository.
3 changes: 3 additions & 0 deletions docs/contributing/development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Development

Contributing to FZ. See the [main FZ documentation](https://github.com/Funz/fz#development) for complete details.
3 changes: 3 additions & 0 deletions docs/contributing/testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Testing

Running FZ tests. See the [main FZ documentation](https://github.com/Funz/fz#running-tests) for complete details.
Loading