Skip to content

Commit 27e4806

Browse files
committed
docs: align build-packages example with documentation style
1 parent 7b3a4ed commit 27e4806

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/how-to/crafting/manage-dependencies.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,18 @@ Use ``build-packages`` to specify system packages that are required to
9090
build a part and are not included in the resulting snap.
9191

9292
These packages are installed in the build environment before the part's
93-
build step runs.
93+
build step runs. For example:
9494

95-
Example::
96-
97-
parts:
98-
my-part:
99-
plugin: make
100-
source: .
101-
build-packages:
102-
- gcc
103-
- make
95+
.. code-block:: yaml
96+
:caption: Parts definition in snapcraft.yaml
97+
98+
parts:
99+
my-part:
100+
plugin: make
101+
source: .
102+
build-packages:
103+
- gcc
104+
- libyaml-dev
104105
105106
Packages listed under ``build-packages`` are available only during the
106107
build phase and are not included in the resulting snap. If a package is

0 commit comments

Comments
 (0)