Skip to content

Commit fc123b3

Browse files
authored
Merge pull request #964 from PowerGridModel/feature/minor-format-docs2
Solve some markdownlint issues
2 parents f85ad48 + 8255abe commit fc123b3

File tree

37 files changed

+215
-233
lines changed

37 files changed

+215
-233
lines changed

.markdownlint.yaml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,3 @@ MD013: false
2626

2727
# MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
2828
MD024: false
29-
30-
# MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md033.md
31-
MD033: false
32-
33-
# MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md040.md
34-
MD040: false
35-
36-
# MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md041.md
37-
MD041: false
38-
39-
# MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md042.md
40-
MD042: false
41-
42-
# MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md045.md
43-
MD045: false
44-
45-
# MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md051.md
46-
MD051: false
47-
48-
# MD056/table-column-count : Table column counts should match : https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md056.md
49-
MD056: false

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"matepek.vscode-catch2-test-adapter",
2525
"cschlosser.doxdocgen",
2626
"fredericbonnet.cmake-test-adapter",
27-
"sonarsource.sonarlint-vscode"
27+
"sonarsource.sonarlint-vscode",
28+
"davidanson.vscode-markdownlint"
2829
]
2930
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridm
44
SPDX-License-Identifier: MPL-2.0
55
-->
66

7-
[![PyPI version](https://badge.fury.io/py/power-grid-model.svg?no-cache)](https://badge.fury.io/py/power-grid-model)
7+
[![PyPI version](https://badge.fury.io/py/power-grid-model.svg?no-cache)](https://badge.fury.io/py/power-grid-model) <!-- markdownlint-disable-line first-line-h1 -->
88
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/power-grid-model/badges/version.svg?no-cache)](https://anaconda.org/conda-forge/power-grid-model)
99
[![License: MPL2.0](https://img.shields.io/badge/License-MPL2.0-informational.svg)](https://github.com/PowerGridModel/power-grid-model/blob/main/LICENSE)
1010
[![Downloads](https://static.pepy.tech/badge/power-grid-model)](https://pepy.tech/project/power-grid-model)
@@ -24,7 +24,7 @@ SPDX-License-Identifier: MPL-2.0
2424

2525
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8054429.svg)](https://zenodo.org/record/8054429)
2626

27-
[![](https://github.com/PowerGridModel/.github/blob/main/artwork/svg/color.svg)](#)
27+
[![Power Grid Model logo](https://github.com/PowerGridModel/.github/blob/main/artwork/svg/color.svg)](#) <!-- markdownlint-disable-line no-empty-links -->
2828

2929
# Power Grid Model
3030

@@ -50,15 +50,15 @@ Want to be updated on the latest news and releases? Subscribe to the Power Grid
5050

5151
You can directly install the package from PyPI.
5252

53-
```
53+
```sh
5454
pip install power-grid-model
5555
```
5656

5757
### Install from Conda
5858

5959
If you are using `conda`, you can directly install the package from `conda-forge` channel.
6060

61-
```
61+
```sh
6262
conda install -c conda-forge power-grid-model
6363
```
6464

docs/advanced_documentation/native-data-interface.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ The pointers are passed into C++ code so that the C++ program can write results
115115

116116
The basic data types used in the interface between C++ and Python are shown in the table below.
117117

118-
| C++ type | `numpy.dtype` | null value | usage |
119-
| --- | --- | --- | --- |
120-
| `int32_t` | `'i4'` | - 2^31 | ids of physical components |
121-
| `int8_t` | `'i1'` | - 2^7 | enumeration types, boolean types, and small integers (e.g. tap position of transformer) |
122-
| `double` | `'f8'` | NaN ([IEEE 754](https://en.wikipedia.org/wiki/NaN)) | physical quantities (e.g. voltage) |
123-
| `double[3]` | `'(3, )f8'` | NaN ([IEEE 754](https://en.wikipedia.org/wiki/NaN)) | three-phase asymmetric physical quantities (e.g. voltage) |
118+
| C++ type | `numpy.dtype` | null value | usage |
119+
| ----------- | ------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------- |
120+
| `int32_t` | `'i4'` | - 2^31 | ids of physical components |
121+
| `int8_t` | `'i1'` | - 2^7 | enumeration types, boolean types, and small integers (e.g. tap position of transformer) |
122+
| `double` | `'f8'` | NaN ([IEEE 754](https://en.wikipedia.org/wiki/NaN)) | physical quantities (e.g. voltage) |
123+
| `double[3]` | `'(3, )f8'` | NaN ([IEEE 754](https://en.wikipedia.org/wiki/NaN)) | three-phase asymmetric physical quantities (e.g. voltage) |
124124

125125
*The [endianness](https://en.wikipedia.org/wiki/Endianness)
126126
of C++ and Python side is also matched. For `x86-64` platform the little endian is used, so that

docs/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this quick start a simple 10kV network as below is calculated.
1010
A line connects two nodes. One node has a source. The other node has a symmetric load.
1111
The full code for this section is provided in {{ "[quick_example.py]({}/scripts/quick_example.py)".format(gh_link_head_blob) }}.
1212

13-
```
13+
```txt
1414
node_1 ---line_3--- node_2
1515
| |
1616
source_5 sym_load_4
@@ -134,7 +134,7 @@ print(pd.DataFrame(result['node']))
134134

135135
The result data can then be viewed in tabular forms.
136136

137-
```
137+
```txt
138138
Node Input
139139
id u_rated
140140
0 1 10500.0

0 commit comments

Comments
 (0)