Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
femtotrader committed Apr 28, 2024
1 parent 5017030 commit ee6a0ec
Show file tree
Hide file tree
Showing 10 changed files with 357 additions and 187 deletions.
7 changes: 6 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ makedocs(
sitename = "OnlinePortfolioAnalytics.jl",
format = Documenter.HTML(),
modules = [OnlinePortfolioAnalytics],
pages = ["Home" => "index.md", "Usage" => "usage.md", "API" => "api.md"],
pages = [
"Home" => "index.md",
"Usage" => "usage.md",
"Examples" => "examples.md",
"API" => "api.md",
],
)
deploydocs(; repo = "github.com/femtotrader/OnlinePortfolioAnalytics.jl")
31 changes: 31 additions & 0 deletions docs/src/examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Examples

## Sample notebook

### Random prices

![prices](screenshots/prices.png)

### Cumulative returns

![cum_returns](screenshots/cum_returns.png)

### Drawdowns

![drawdowns](screenshots/drawdowns.png)

### Returns

#### Yearly

![prices](screenshots/prices.png)

#### Monthly

![monthly_returns_heatmap](screenshots/monthly_returns_heatmap.png)

![monthly_returns_spiral](screenshots/monthly_returns_spiral.png)

### Download

- [Pluto notebook](https://github.com/femtotrader/OnlinePortfolioAnalytics.jl/blob/main/examples/notebooks/teardown.jl)
1 change: 1 addition & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ See [unit tests](https://github.com/femtotrader/OnlinePortfolioAnalytics.jl/tree
Pages = [
"index.md",
"usage.md",
"examples.md",
"api.md"
]
```
Binary file added docs/src/screenshots/cum_returns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/screenshots/drawdowns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/screenshots/monthly_returns_heatmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/screenshots/monthly_returns_spiral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/screenshots/prices.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/screenshots/yearly_returns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ee6a0ec

Please sign in to comment.