Skip to content

Commit

Permalink
Merge pull request #23 from sedos-project/develop
Browse files Browse the repository at this point in the history
Implement workflow to deploy docs on gh-pages with push on main branch
  • Loading branch information
chrwm authored Mar 7, 2024
2 parents ab830a2 + ed379fa commit 666ac21
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: MkDocs Build and Deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install Dependencies
run: pip install --upgrade -r requirements.txt

- name: Build MkDocs
run: mkdocs build

- name: Archive MkDocs Build
uses: actions/upload-artifact@v2
with:
name: mkdocs-artifacts
path: ./built_docs_for_gh_pages # Change this to your MkDocs build directory
1 change: 1 addition & 0 deletions built_docs_for_gh_pages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This directory holds the deployed docs for GitHub pages
13 changes: 6 additions & 7 deletions docs/data_preface.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ This *data preface* provides additional information about the syntax of paramete
```python
| id | region | type | timeindex_start | timeindex_stop | timeindex_resolution | exo_pkm_road_mcar | version | method | source | comment |
|------|----------|--------|-----------------------|-----------------------|------------------------|---------------------|-----------|----------|----------|-----------|
| ---- | -------- | ------ | --------------------- | --------------------- | ---------------------- | ------------------- | --------- | -------- | -------- | --------- |
| 1 | DE | | 2021-01-01 00:00:00 | 2021-12-31 23:00:00 | 1h | [1,2,3,…,8760] | v1 | | | |
| 2 | DE | | 2024-01-01 00:00:00 | 2024-12-30 23:00:00 | 1h | [1,2,3,…,8760] | v1 | | | |
| 3 | DE | | 2027-01-01 00:00:00 | 2027-12-31 23:00:00 | 1h | [1,2,3,…,8760] | v1 | | | |
Expand All @@ -76,7 +75,7 @@ This *data preface* provides additional information about the syntax of paramete
2. `<sector>_timeseries` <br>
3. `<sector>_demand` <br>

This is explained below using the example of the transport sector.
The structure is exemplified on the transport sector below.
=== "`tra_scalars`"
The table collects all sector process-unspecific scalars. <br>
Expand Down Expand Up @@ -222,7 +221,7 @@ This *data preface* provides additional information about the syntax of paramete

**Upper and lower bound paramters have empty cells if unrestricted**. <br> This convention was made to avoid
high or low dummy values for upper or lower bounds.<br><br>
In the example above, new capacity invesments (`capacity_p_abs_new_max`) for the processes are not restricted: <br>
In the example above, new capacity investments (`capacity_p_abs_new_max`) for the processes are not restricted: <br>
```python
| id | region | year | type | capacity_p_abs_new_max |
|----|--------|------|--------------------------------------|------------------------|
Expand All @@ -242,7 +241,6 @@ This *data preface* provides additional information about the syntax of paramete
```python
| SEDOS parameter name | Recommended unit | Description |
|--------------------------|--------------------|--------------------------------------------------------------------------------------------|
| ------------------------ | ------------------ | ------------------------------------------------------------------------------------------ |
| capacity_p_abs_new_max | MW | Absolute upper bound on level of investment in new power output capacity for a period. |
| capacity_e_abs_new_max | MWh | Absolute upper bound on level of investment in new storage energy capacity for a period. |
| capacity_w_abs_new_max | Mt | Absolute upper bound on level of investment in new weight capacity for a period. |
Expand Down Expand Up @@ -301,8 +299,8 @@ This *data preface* provides additional information about the syntax of paramete
```

To avoid ambiguities in the data, the processes are specified as precisely as possible. <br> This means, for
example, for investment processes for all support years are given, even if an investment process is available from
later years, e.g 2035, as opposed to missing rows for 2021, 2024, 2027 and 2030.
example, for investment processes all years are specified in the data, even if an investment process is only
available from later years, e.g 2035, as opposed to missing rows for 2021, 2024, 2027 and 2030.
<br>
```python
| id | region | year | type | capacity_p_inst | capacity_p_abs_new_max | conversion_factor_sec_elec | lifetime | cost_inv_capacity_p | cb_coefficient | cv_coefficient | bandwidth_type | version | method | source | comment |
Expand All @@ -322,7 +320,8 @@ This *data preface* provides additional information about the syntax of paramete
Conversely, existing capacities are explicitly declared as 0 as soon as they are no longer in the system, as opposed to missing rows for 2060 and 2070.
<br>
```python
| id | region | year | type | capacity_p_inst | capacity_p_abs_new_max | conversion_factor_sec_elec | lifetime | cost_inv_capacity_p | cb_coefficient | cv_coefficient | bandwidth_type | version | method | source | comment |
| id | region | year | type | capacity_p_inst | capacity_p_abs_new_max | conversion_factor_sec_elec | lifetime | cost_inv_capacity_p | cb_coefficient | cv_coefficient | bandwidth_type | version | method | source | comment |
|----|--------|------|--------------------------------------|-----------------|------------------------|----------------------------|----------|---------------------|----------------|----------------|----------------|---------|--------|--------|---------|
| 21 | DE | 2021 | pow_combustion_gt_hydrogen_0 | 3500 | | 0.6 | 20 | 500 | | | | | | | |
| 22 | DE | 2024 | pow_combustion_gt_hydrogen_0 | 3500 | | 0.6 | 20 | 500 | | | | | | | |
| 23 | DE | 2027 | pow_combustion_gt_hydrogen_0 | 3500 | | 0.6 | 20 | 500 | | | | | | | |
Expand Down
2 changes: 1 addition & 1 deletion docs/how_to_contribute_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ In order to register your new data you have to:
* Enter new version string (at least one row in your table must be present with given string in column "version")
* Submit

Group name: SEDOS - <Sector> sector | e.g. SEDOS - Mobility sector | SEDOS - Industry sector
Group name: `SEDOS - <Sector> sector` | e.g. SEDOS - Mobility sector | SEDOS - Industry sector

Now, your data should be registered and available on the databus.
As the SEDOS pipeline regularly checks for updates on the databus,
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mkdocs-material==9.5.13
mkdocs==1.3.0
pymdown-extensions==9.6

0 comments on commit 666ac21

Please sign in to comment.