Skip to content

Commit

Permalink
Deployed df9328c with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kvanderwijst committed Mar 8, 2024
1 parent 12c5fbe commit 30b029e
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 714 deletions.
37 changes: 34 additions & 3 deletions assets/extra.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
:root {
--md-primary-fg-color: #89a041;
--md-primary-fg-color--light: #b3c675;
--md-primary-fg-color--dark: #6e832e;
--color-mimosa: #89a041;
--color-mimosa--light: #b3c675;
--color-mimosa--dark: #6e832e;

--md-primary-fg-color: var(--color-mimosa);
--md-primary-fg-color--light: var(--color-mimosa--light);
--md-primary-fg-color--dark: var(--color-mimosa--dark);

--md-accent-fg-color: #2297d5;
--md-accent-fg-color--light: #81c5e9;
Expand Down Expand Up @@ -37,4 +41,31 @@

.modebar {
display: none !important;
}

/********** Custom admonition **********/
:root {
--md-admonition-icon--parameter: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path d="M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-1.5 0a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z" /><path d="M12 1c.266 0 .532.009.797.028.763.055 1.345.617 1.512 1.304l.352 1.45c.019.078.09.171.225.221.247.089.49.19.728.302.13.061.246.044.315.002l1.275-.776c.603-.368 1.411-.353 1.99.147.402.349.78.726 1.128 1.129.501.578.515 1.386.147 1.99l-.776 1.274c-.042.069-.058.185.002.315.112.238.213.481.303.728.048.135.142.205.22.225l1.45.352c.687.167 1.249.749 1.303 1.512.038.531.038 1.063 0 1.594-.054.763-.616 1.345-1.303 1.512l-1.45.352c-.078.019-.171.09-.221.225-.089.248-.19.491-.302.728-.061.13-.044.246-.002.315l.776 1.275c.368.603.353 1.411-.147 1.99-.349.402-.726.78-1.129 1.128-.578.501-1.386.515-1.99.147l-1.274-.776c-.069-.042-.185-.058-.314.002a8.606 8.606 0 0 1-.729.303c-.135.048-.205.142-.225.22l-.352 1.45c-.167.687-.749 1.249-1.512 1.303-.531.038-1.063.038-1.594 0-.763-.054-1.345-.616-1.512-1.303l-.352-1.45c-.019-.078-.09-.171-.225-.221a8.138 8.138 0 0 1-.728-.302c-.13-.061-.246-.044-.315-.002l-1.275.776c-.603.368-1.411.353-1.99-.147-.402-.349-.78-.726-1.128-1.129-.501-.578-.515-1.386-.147-1.99l.776-1.274c.042-.069.058-.185-.002-.314a8.606 8.606 0 0 1-.303-.729c-.048-.135-.142-.205-.22-.225l-1.45-.352c-.687-.167-1.249-.749-1.304-1.512a11.158 11.158 0 0 1 0-1.594c.055-.763.617-1.345 1.304-1.512l1.45-.352c.078-.019.171-.09.221-.225.089-.248.19-.491.302-.728.061-.13.044-.246.002-.315l-.776-1.275c-.368-.603-.353-1.411.147-1.99.349-.402.726-.78 1.129-1.128.578-.501 1.386-.515 1.99-.147l1.274.776c.069.042.185.058.315-.002.238-.112.481-.213.728-.303.135-.048.205-.142.225-.22l.352-1.45c.167-.687.749-1.249 1.512-1.304C11.466 1.01 11.732 1 12 1Zm-.69 1.525c-.055.004-.135.05-.161.161l-.353 1.45a1.832 1.832 0 0 1-1.172 1.277 7.147 7.147 0 0 0-.6.249 1.833 1.833 0 0 1-1.734-.074l-1.274-.776c-.098-.06-.186-.036-.228 0a9.774 9.774 0 0 0-.976.976c-.036.042-.06.131 0 .228l.776 1.274c.314.529.342 1.18.074 1.734a7.147 7.147 0 0 0-.249.6 1.831 1.831 0 0 1-1.278 1.173l-1.45.351c-.11.027-.156.107-.16.162a9.63 9.63 0 0 0 0 1.38c.004.055.05.135.161.161l1.45.353a1.832 1.832 0 0 1 1.277 1.172c.074.204.157.404.249.6.268.553.24 1.204-.074 1.733l-.776 1.275c-.06.098-.036.186 0 .228.301.348.628.675.976.976.042.036.131.06.228 0l1.274-.776a1.83 1.83 0 0 1 1.734-.075c.196.093.396.176.6.25a1.831 1.831 0 0 1 1.173 1.278l.351 1.45c.027.11.107.156.162.16a9.63 9.63 0 0 0 1.38 0c.055-.004.135-.05.161-.161l.353-1.45a1.834 1.834 0 0 1 1.172-1.278 6.82 6.82 0 0 0 .6-.248 1.831 1.831 0 0 1 1.733.074l1.275.776c.098.06.186.036.228 0 .348-.301.675-.628.976-.976.036-.042.06-.131 0-.228l-.776-1.275a1.834 1.834 0 0 1-.075-1.733c.093-.196.176-.396.25-.6a1.831 1.831 0 0 1 1.278-1.173l1.45-.351c.11-.027.156-.107.16-.162a9.63 9.63 0 0 0 0-1.38c-.004-.055-.05-.135-.161-.161l-1.45-.353c-.626-.152-1.08-.625-1.278-1.172a6.576 6.576 0 0 0-.248-.6 1.833 1.833 0 0 1 .074-1.734l.776-1.274c.06-.098.036-.186 0-.228a9.774 9.774 0 0 0-.976-.976c-.042-.036-.131-.06-.228 0l-1.275.776a1.831 1.831 0 0 1-1.733.074 6.88 6.88 0 0 0-.6-.249 1.835 1.835 0 0 1-1.173-1.278l-.351-1.45c-.027-.11-.107-.156-.162-.16a9.63 9.63 0 0 0-1.38 0Z" /></svg>')
}

.md-typeset .admonition.parameter,
.md-typeset details.parameter {
border-color: rgba(120, 155, 43, 0.1);
}

.md-typeset .parameter>.admonition-title,
.md-typeset .parameter>summary {
background-color: rgba(120, 155, 43, 0.1);
}

.md-typeset .parameter>.admonition-title::before,
.md-typeset .parameter>summary::before {
background-color: var(--color-mimosa);
-webkit-mask-image: var(--md-admonition-icon--parameter);
mask-image: var(--md-admonition-icon--parameter);
}

.md-typeset .admonition.parameter:focus-within,
.md-typeset details.parameter:focus-within {
box-shadow: 0 0 0 .2rem rgba(120, 155, 43, 0.05)
}
35 changes: 35 additions & 0 deletions assets/plots/generate_plots.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
import sys
import json
import numpy as np
import pandas as pd
import plotly.express as px
from plotly.subplots import make_subplots

sys.path.insert(
Expand Down Expand Up @@ -72,3 +75,35 @@
title="Initial capital stock factor<br>(factor of GDP)"
).update_layout(height=300)
fig_init_capital_factor.write_json("docs/assets/plots/init_capital_factor.json")


## Regional definitions and map:

with open("mimosa/inputdata/regions/IMAGE26_regions.json") as fh:
regions = json.load(fh)

image_regions = list(params["regions"].keys())
region_df = (
pd.Series(dict(zip(image_regions, image_regions)), name="i")
.to_frame()
.reset_index()
.rename(columns={"index": "region"})
)
fig_regions = px.choropleth(
region_df,
geojson=regions,
color="region",
locations="region",
labels="region",
color_discrete_sequence=px.colors.qualitative.Bold,
)
fig_regions.update_geos(
projection_type="natural earth",
visible=False,
showframe=True,
framecolor="#AAA",
showland=True,
landcolor="#F5F5F5",
).update_layout(showlegend=False, height=350, margin={"l": 0, "r": 0, "t": 0, "b": 0})

fig_regions.write_json("docs/assets/plots/image_regions.json")
1 change: 1 addition & 0 deletions assets/plots/image_regions.json

Large diffs are not rendered by default.

Loading

0 comments on commit 30b029e

Please sign in to comment.