Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book outline #90

Merged
merged 4 commits into from
Feb 2, 2024
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
11 changes: 11 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install latest mdbook
run: |
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
mkdir bin
curl -sSL $url | tar -xz --directory=bin
echo "$(pwd)/bin" >> $GITHUB_PATH

- name: Build
run: cargo build --verbose --no-default-features
- name: Run tests
run: cargo test --no-default-features
- name: Run mdbook tests
run: mdbook test ./pywr-book
1 change: 1 addition & 0 deletions pywr-book/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
6 changes: 6 additions & 0 deletions pywr-book/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[book]
authors = ["James Tomlinson"]
language = "en"
multilingual = false
src = "src"
title = "The Pywr Book"
22 changes: 22 additions & 0 deletions pywr-book/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Summary

- [Introduction](./introduction.md)
- [Getting started](./getting_started.md)
- [Installation](./installation.md)
- [Licensing](./licensing.md)
- [Related projects](./related_projects.md)
- [Core concepts](./concepts/README.md)
- [The network](./concepts/the-network.md)
- [Parameters](./concepts/parameters.md)
- [Penalty costs](./concepts/penalty-costs.md)
- [Reservoirs](./concepts/reservoirs.md)
- [Abstraction licences](./concepts/abstraction-licences.md)
- [Scenarios](./concepts/scenarios.md)
- [Input data](./concepts/input-data.md)
- [Extending Pywr](./extending_pywr.md)
- [Multi-models](./multi_models.md)
- [Migration guide](./migration_guide.md)
- [Model management](./model-management/README.md)
- [Version control](./model-management/version-control.md)
- [Packaging](./model-management/packaging.md)
- [Deployment & Docker](./model-management/deployment.md)
1 change: 1 addition & 0 deletions pywr-book/src/concepts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Core concepts
1 change: 1 addition & 0 deletions pywr-book/src/concepts/abstraction-licences.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Abstraction licences
1 change: 1 addition & 0 deletions pywr-book/src/concepts/input-data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Input data
1 change: 1 addition & 0 deletions pywr-book/src/concepts/parameters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Parameters
1 change: 1 addition & 0 deletions pywr-book/src/concepts/penalty-costs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Penalty costs
1 change: 1 addition & 0 deletions pywr-book/src/concepts/reservoirs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Reservoirs
1 change: 1 addition & 0 deletions pywr-book/src/concepts/scenarios.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Scenarios
1 change: 1 addition & 0 deletions pywr-book/src/concepts/the-network.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# The network
1 change: 1 addition & 0 deletions pywr-book/src/extending_pywr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Getting started
1 change: 1 addition & 0 deletions pywr-book/src/getting_started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Getting started
1 change: 1 addition & 0 deletions pywr-book/src/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Installation
15 changes: 15 additions & 0 deletions pywr-book/src/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Introduction

Welcome to the Pywr book!
Pywr is an open-source network resource allocation model.
This book is a collection of documentation and tutorials for using Pywr.
It should be read alongside the Pywr API documentation.

# What is Pywr?

Pywr is a Rust crate and Python package for building and running water resource models.
It allows users to construct models of water systems using a network of nodes and links, and other data.
The model can then be used to simulate the operation of a water system, and to evaluate the performance of the system under different scenarios.

This version is a major update to the original Pywr model, which was written in Python and Cython.
The new version is written in Rust, and uses Python bindings to expose the functionality to Python.
1 change: 1 addition & 0 deletions pywr-book/src/licensing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Licensing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added pywr-book/src/multi_models.md
Empty file.
1 change: 1 addition & 0 deletions pywr-book/src/related_projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Related projects
Loading