Skip to content

Commit

Permalink
chore: make it easier to generate changelog on release (#660)
Browse files Browse the repository at this point in the history
use jinja2 templates to allow for automatic generation
updated last 6 changelogs that were missing

Refs: ECALC-1630
  • Loading branch information
TeeeJay authored Oct 23, 2024
1 parent 68ef074 commit 66c7c10
Show file tree
Hide file tree
Showing 12 changed files with 122 additions and 190 deletions.
1 change: 1 addition & 0 deletions docs/config/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"current_index": -36}
Empty file removed docs/docs/changelog/meta.json
Empty file.
7 changes: 0 additions & 7 deletions docs/docs/changelog/separator.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/docs/changelog/v8-21.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
slug: v8.21-release
title: v8.21 (Latest)
title: v8.21
authors: ecalc-team
tags: [release, eCalc]
sidebar_position: -1001
sidebar_position: -30
---

# eCalc
Expand Down
30 changes: 9 additions & 21 deletions docs/docs/changelog/next.md → docs/docs/changelog/v8-22.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---
slug: latest
title: Next
slug: "v8.22-release"
title: "v8.22"
authors: ecalc-team
tags: [release, eCalc]
sidebar_position: -1002
sidebar_position: -31
---

# eCalc


# eCalc v8.22

## New Features

Expand All @@ -21,28 +19,18 @@ sidebar_position: -1002
is any downstream choking, this will happen between the outlet of the last compressor stage and the outlet of the
compressor train. This means that in a situation with downstream choking, the fluid stream leaving the compressor
train will have lower e.g. pressure and density than the fluid stream leaving the last compressor stage.
- `POWER_ADJUSTMENT_FACTOR` for models: Optional factor to adjust the power (MW). Previously only the
`POWER_ADJUSTMENT_CONSTANT` has been available for models, now it is possible to adjust/scale the power with a
constant and a factor. It can be used to calibrate equipment.

## Fixes

## Bug Fixes

- If a compressor train is not able to reach the requested inlet or outlet pressure, both the compressor stages and
the compressor train used to be reported as invalid. This is now changed. If the compressor stages are operating within
their capacity, they will now be reported as valid even if the compressor train as a whole is not able to reach
the requested inlet or outlet pressures.

- Emission intensities are no longer calculated and reported in the results, due to the following discrepancies:
CO2 intensity is defined as the total emission divided by the total HC export. eCalc only calculates the future data, so the correct CO2 intensity should be found by adding the historical to these future data. The hydrocarbon export rate is still reported to help the user calculate the CO2 intensity outside of eCalc.
Methane intensity was incorrectly calculated based on HC export. The common definition is the methane emission divided by the natural gas throughput of the wanted equipment- or installation level. This is safest done outside of eCalc to ensure proper definition.
## Breaking changes

- This version includes a rewrite of the yaml validation, which should catch more errors than before.

Main changes:
- Economics has been removed. TAX, PRICE and QUOTA keywords will now give an error.
- Misplaced keywords will now cause an error instead of being ignored.

- H2O is no longer supported in composition. Use 'water' instead.

- The CLI command `ecalc show results` has been removed. The reason being additional maintenance for something that did not seem to be used a lot.
- Economics has been removed. TAX, PRICE and QUOTA keywords will now give an error.
- Misplaced keywords will now cause an error instead of being ignored.

23 changes: 23 additions & 0 deletions docs/docs/changelog/v8-23.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
slug: "v8.23-release"
title: "v8.23"
authors: ecalc-team
tags: [release, eCalc]
sidebar_position: -32
---

# eCalc v8.23

## Features

- `POWER_ADJUSTMENT_FACTOR` for models: Optional factor to adjust the power (MW). Previously only the
`POWER_ADJUSTMENT_CONSTANT` has been available for models, now it is possible to adjust/scale the power with a
constant and a factor. It can be used to calibrate equipment.

## Bug Fixes

- Default pressure control was added to variable speed train, but missing for single speed and multiple streams.

## Breaking changes

- H2O is no longer supported in composition. Use 'water' instead.
17 changes: 17 additions & 0 deletions docs/docs/changelog/v8-24.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
slug: "v8.24-release"
title: "v8.24"
authors: ecalc-team
tags: [release, eCalc]
sidebar_position: -33
---

# eCalc v8.24

Security updates only.

## Features

## Bug Fixes

## Breaking changes
17 changes: 17 additions & 0 deletions docs/docs/changelog/v8-25.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
slug: "v8.25-release"
title: "v8.25"
authors: ecalc-team
tags: [release, eCalc]
sidebar_position: -34
---

# eCalc v8.25

## Features

## Bug Fixes

## Breaking changes

- The CLI command `ecalc show results` has been removed. The reason being additional maintenance for something that did not seem to be used a lot.
22 changes: 22 additions & 0 deletions docs/docs/changelog/v8-26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
slug: "v8.26-release"
title: "v8.26"
authors: ecalc-team
tags: [release, eCalc]
sidebar_position: -35
---

# eCalc v8.26

## Features

## Bug Fixes

- Emission intensities are no longer calculated and reported in the results, due to the following discrepancies:
CO2 intensity is defined as the total emission divided by the total HC export. eCalc only calculates the future data, so the correct CO2 intensity should be found by adding the historical to these future data. The hydrocarbon export rate is still reported to help the user calculate the CO2 intensity outside of eCalc.
Methane intensity was incorrectly calculated based on HC export. The common definition is the methane emission divided by the natural gas throughput of the wanted equipment- or installation level. This is safest done outside of eCalc to ensure proper definition.


## Breaking changes


15 changes: 15 additions & 0 deletions docs/drafts/next.draft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
slug: "{{ version_slug }}"
title: "{{ version_title }}"
authors: ecalc-team
tags: [release, eCalc]
sidebar_position: -36
---

# eCalc {{ version }}

## Features

## Bug Fixes

## Breaking changes
160 changes: 0 additions & 160 deletions docs/src/pages/versions.tsx

This file was deleted.

16 changes: 16 additions & 0 deletions docs/templates/next.md.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
slug: "{{ version_slug }}"
title: "{{ version_title }}"
authors: ecalc-team
tags: [release, eCalc]
sidebar_position: {{ index }}
---

# eCalc {{ version }}

## Features

## Bug Fixes

## Breaking changes

0 comments on commit 66c7c10

Please sign in to comment.