Skip to content

Commit 27f70c2

Browse files
authored
Enable and use GitHub Alert syntax for admonitions (#275)
This allows admonitions/callouts/alerts to be rendered properly both in GitHub and `mkdocs`. On the downside, GitHub syntax is less flexible than `mkdocs`, so we can't have the admonitions be rendered *inline end* any more. Because of this we only use the GitHub syntax for the README, as it is more important that the README is rendered correctly in GitHub than having it look a bit nicer in `mkdocs`.
2 parents 058da4e + a921927 commit 27f70c2

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@ channels](https://tour.golang.org/concurrency/2) but it also borrows ideas from
2828

2929
<!-- supported-platforms -->
3030

31-
!!! Note inline end
32-
33-
Newer Python versions and other operating systems and architectures might
34-
work too, but they are not automatically tested, so we cannot guarantee it.
35-
3631
The following platforms are officially supported (tested):
3732

3833
- **Python:** 3.11
3934
- **Operating System:** Ubuntu Linux 20.04
4035
- **Architectures:** amd64, arm64
4136

37+
> [!NOTE]
38+
> Newer Python versions and other operating systems and architectures might
39+
> work too, but they are not automatically tested, so we cannot guarantee it.
40+
4241
<!-- /supported-platforms -->
4342

4443
## Quick Start
@@ -47,17 +46,16 @@ The following platforms are officially supported (tested):
4746

4847
<!-- quick-start-installing -->
4948

50-
!!! Tip inline end
51-
52-
For more details please read the [Installation
53-
Guide](docs/user-guide/installation.md).
54-
5549
Assuming a [supported](#supported-platforms) working Python environment:
5650

5751
```sh
5852
python3 -m pip install frequenz-channels
5953
```
6054

55+
> [!TIP]
56+
> For more details please read the [Installation
57+
> Guide](docs/user-guide/installation.md).
58+
6159
<!-- /quick-start-installing -->
6260

6361
### Examples

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ markdown_extensions:
6868
- attr_list
6969
- def_list
7070
- footnotes
71+
- github-callouts
7172
- markdown_svgbob:
7273
min_char_width: 0
7374
- pymdownx.details

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dev-mkdocs = [
4848
"Markdown == 3.5.2",
4949
"black == 24.2.0",
5050
"frequenz-repo-config[lib] == 0.9.1",
51+
"markdown-callouts == 0.4.0",
5152
"markdown-svgbob == 202112.1022",
5253
"mike == 2.0.0",
5354
"mkdocs-gen-files == 0.5.0",

0 commit comments

Comments
 (0)