Skip to content

Commit d452ec3

Browse files
committed
Migrate to "callouts" extension in docs
1 parent b4cd428 commit d452ec3

7 files changed

Lines changed: 21 additions & 34 deletions

File tree

docs/extras.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,17 @@ In addition to the [usual admonition styles](https://squidfunk.github.io/mkdocs-
4141
}
4242
</style>
4343

44-
!!! todo
45-
`TODO: ` `!!! todo`
44+
TODO: `TODO: ` `!!! todo`
4645

47-
!!! note
48-
`NOTE: ` `!!! note`
46+
NOTE: `NOTE: ` `!!! note`
4947

50-
!!! bug
51-
`BUG: ` `!!! bug`
48+
BUG: `BUG: ` `!!! bug`
5249

53-
!!! fixme
54-
`FIXME: ` `!!! fixme`
50+
FIXME: `FIXME: ` `!!! fixme`
5551

56-
!!! deprecated
57-
`DEPRECATED: ` `!!! deprecated`
52+
DEPRECATED: `DEPRECATED: ` `!!! deprecated`
5853

59-
!!! optimize
60-
`OPTIMIZE: ` `!!! optimize`
54+
OPTIMIZE: `OPTIMIZE: ` `!!! optimize`
6155

6256
Both the default styles and the extra styles work with both the ["callouts" extension][] (write them in all-uppercase) and the ["admonition" extension][] (write them in all-lowercase).
6357

docs/quickstart/ci.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ You can build and publish the website automatically on push using GitHub Pages a
1111
* Do *not* disable the workflow for non-*master* branches or pull requests. It is nice to ensure that the site builds (there can be errors!), instead at the bottom we prevent only the actual *deploy* action from being executed on non-*master*/non-*pushes*.
1212
* Dependencies are installed from `requirements.txt`. Make sure you've [populated it](python-dependencies.md).
1313

14-
!!! tip
15-
You can freely have a "dev" branch for working on docs that aren't ready for release yet. Then just merge it into the main one when ready.
14+
TIP: You can freely have a "dev" branch for working on docs that aren't ready for release yet. Then just merge it into the main one when ready.
1615

17-
!!! tip
18-
Your docs don't have to be in the same repository as the main code. In fact, the doc site can span several projects! See "Multi-repo setup" [in Showcase](../showcase.md#athena-framework).
16+
TIP: Your docs don't have to be in the same repository as the main code. In fact, the doc site can span several projects! See "Multi-repo setup" [in Showcase](../showcase.md#athena-framework).

docs/quickstart/index.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ $ pip install mkdocs-material mkdocstrings-crystal
2323

2424
This assumes you have [Python][] installed, with `pip` available.
2525

26-
!!! tip
27-
You might want to install these in a [virtualenv][] (i.e. localized just to this project).
28-
29-
And check out how to **[manage Python dependencies](python-dependencies.md)** long-term.
26+
> TIP: You might want to install these in a [virtualenv][] (i.e. localized just to this project).
27+
>
28+
> And check out how to **[manage Python dependencies](python-dependencies.md)** long-term.
3029
3130
## Base config
3231

docs/quickstart/migrate.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ $ pip install mkdocs-material mkdocstrings-crystal mkdocs-gen-files mkdocs-liter
2323

2424
This assumes you have [Python][] installed, with `pip` available.
2525

26-
!!! tip
27-
You might want to install these in a [virtualenv][] (i.e. localized just to this project). Otherwise, they go to `~/.local/lib/python*`.
28-
29-
And check out how to **[manage Python dependencies](python-dependencies.md)** long-term.
26+
> TIP: You might want to install these in a [virtualenv][] (i.e. localized just to this project). Otherwise, they go to `~/.local/lib/python*`.
27+
>
28+
> And check out how to **[manage Python dependencies](python-dependencies.md)** long-term.
3029
3130
## Base config
3231

@@ -56,8 +55,7 @@ Let's configure [MkDocs][] with *mkdocstrings-crystal*. Add/merge this config as
5655
`extra_css`
5756
: Don't forget to copy and include the [recommended styles](../styling.md#recommended-styles).
5857

59-
!!! important
60-
The "literate-nav" plugin must appear *before* "section-index" in the list, because it overwrites the nav.
58+
IMPORTANT: The "literate-nav" plugin must appear *before* "section-index" in the list, because it overwrites the nav.
6159

6260
## Generate doc stub pages
6361

docs/quickstart/python-dependencies.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ There are countless ways to do it, but this document is nice for people not fami
44

55
This assumes you have [Python][] installed, with `pip` available.
66

7-
!!! note
8-
Of course, you can just always run a bare `pip install` (without versions), but dependencies can break from under you with upgrades.
7+
NOTE: Of course, you can just always run a bare `pip install` (without versions), but dependencies can break from under you with upgrades.
98

109
We suggest to *lock* all dependencies' versions (recursively), so the same ones are always used.
1110

@@ -22,8 +21,7 @@ Install the [pip-compile][] tool:
2221
$ pip install pip-tools
2322
```
2423

25-
!!! note
26-
This is needed only to manage the lock files; it won't be a permanent dependency.
24+
NOTE: This is needed only to manage the lock files; it won't be a permanent dependency.
2725

2826
And run it:
2927

@@ -46,11 +44,9 @@ Now anyone ([including automation](ci.md)) can install the exact same dependenci
4644
$ pip install -r requirements.txt
4745
```
4846

49-
!!! tip
50-
If you'll be maintaining several projects with different dependencies, you might want to install packages in a [virtualenv][] (effectively localized just to this project's folder).
47+
TIP: If you'll be maintaining several projects with different dependencies, you might want to install packages in a [virtualenv][] (effectively localized just to this project's folder).
5148

52-
!!! important
53-
Both `requirements.in` and `requirements.txt` should be checked into source control.
49+
IMPORTANT: Both `requirements.in` and `requirements.txt` should be checked into source control.
5450

5551
Depending on the layout of project, you have many options where to store those files:
5652

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ mkdocs-material>=7.1.4
33
mkdocs-section-index>=0.3.0
44
mkdocstrings>=0.15.0
55
pymdown-extensions>=8.2
6+
markdown-callouts>=0.2

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ markdown_extensions:
4141
- pymdownx.details
4242
- pymdownx.snippets:
4343
check_paths: true
44+
- callouts
4445
- admonition
4546
- def_list
4647
- toc:

0 commit comments

Comments
 (0)