nixpkgs/doc: fix admonition syntax

Match admonition syntax in

https://nixos.org/manual/nixpkgs/unstable/#chap-contributing
This commit is contained in:
Ryan Mulligan 2022-11-08 07:30:20 -08:00
parent 962a810513
commit f3d0e1d5c3
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ This allows using Nix to build images which can be run on many recent Linux dist
The primary tool for interacting with Portable Services is `portablectl`, The primary tool for interacting with Portable Services is `portablectl`,
and they are managed by the `systemd-portabled` system service. and they are managed by the `systemd-portabled` system service.
:::{.note} ::: {.note}
Portable services are supported starting with systemd 239 (released on 2018-06-22). Portable services are supported starting with systemd 239 (released on 2018-06-22).
::: :::
@ -37,7 +37,7 @@ dependencies of the two derivations in the `units` list.
`units` must be a list of derivations, and their names must be prefixed with the service name (`"demo"` in this case). `units` must be a list of derivations, and their names must be prefixed with the service name (`"demo"` in this case).
Otherwise `systemd-portabled` will ignore them. Otherwise `systemd-portabled` will ignore them.
:::{.Note} ::: {.note}
The `.raw` file extension of the image is required by the portable services specification. The `.raw` file extension of the image is required by the portable services specification.
::: :::
@ -76,6 +76,6 @@ portablectl attach demo_1.0.raw
systemctl enable --now demo.socket systemctl enable --now demo.socket
systemctl enable --now demo.service systemctl enable --now demo.service
``` ```
:::{.Note} ::: {.note}
See the [man page](https://www.freedesktop.org/software/systemd/man/portablectl.html) of `portablectl` for more info on its usage. See the [man page](https://www.freedesktop.org/software/systemd/man/portablectl.html) of `portablectl` for more info on its usage.
::: :::

View File

@ -489,7 +489,7 @@ Preferred source hash type is sha256. There are several ways to get it.
in the package expression, attempt build and extract correct hash from error messages. in the package expression, attempt build and extract correct hash from error messages.
:::{.warning} ::: {.warning}
You must use one of these four fake hashes and not some arbitrarily-chosen hash. You must use one of these four fake hashes and not some arbitrarily-chosen hash.
See [](#sec-source-hashes-security). See [](#sec-source-hashes-security).