Skip to content

Commit d17fb46

Browse files
committed
fix yaml blocks
1 parent c33f553 commit d17fb46

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/maintainer/knowledge_base.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,15 +1057,15 @@ Python package, perfectly eligible for ``noarch: python``, but on Windows it req
10571057
have something like:
10581058

10591059
.. code-block:: yaml
1060+
:caption: recipe/meta.yaml (original)
10601061
1061-
# recipe/meta.yaml
10621062
name: package
10631063
source:
1064-
...
1064+
# ...
10651065
build:
10661066
number: 0
10671067
requirements:
1068-
...
1068+
# ...
10691069
run:
10701070
- python
10711071
- numpy
@@ -1074,16 +1074,16 @@ have something like:
10741074
We can replace it with:
10751075

10761076
.. code-block:: yaml
1077+
:caption: recipe/meta.yaml (modified)
10771078
1078-
# recipe/meta.yaml
10791079
name: package
10801080
source:
1081-
...
1081+
# ...
10821082
build:
10831083
number: 0
10841084
noarch: python
10851085
requirements:
1086-
...
1086+
# ...
10871087
run:
10881088
- python
10891089
- numpy
@@ -1096,8 +1096,8 @@ Cool! Where does ``target_os`` come from? We need to define it in ``conda_build_
10961096
Note how the values have been chosen carefully so they match the virtual packages names:
10971097

10981098
.. code-block:: yaml
1099+
:caption: recipe/conda_build_config.yaml
10991100
1100-
# recipe/conda_build_config.yaml
11011101
target_os:
11021102
- unix # [unix]
11031103
- win # [win]
@@ -1107,8 +1107,8 @@ the ``target_os`` matrix would only provide the ``unix`` value (because the ``#
11071107
would never be true). Fortunately, we can change the default behaviour in ``conda-forge.yml``:
11081108

11091109
.. code-block:: yaml
1110+
:caption: conda-forge.yml
11101111
1111-
# conda-forge.yml
11121112
noarch_platforms:
11131113
- linux-64
11141114
- win-64
@@ -1120,16 +1120,16 @@ only one is true at a time. Perfect! All these changes require a feedstock reren
11201120
Last but not least, what if you need conditional dependencies on all three operating systems? Do it like this:
11211121

11221122
.. code-block:: yaml
1123+
:caption: recipe/meta.yaml
11231124
1124-
# recipe/meta.yaml
11251125
name: package
11261126
source:
1127-
...
1127+
# ...
11281128
build:
11291129
number: 0
11301130
noarch: python
11311131
requirements:
1132-
...
1132+
# ...
11331133
run:
11341134
- python
11351135
- numpy
@@ -1143,16 +1143,16 @@ Last but not least, what if you need conditional dependencies on all three opera
11431143
{% endif %}
11441144
11451145
.. code-block:: yaml
1146+
:caption: recipe/conda_build_config.yaml
11461147
1147-
# recipe/conda_build_config.yaml
11481148
target_os:
11491149
- linux # [linux]
11501150
- osx # [osx]
11511151
- win # [win]
11521152
11531153
.. code-block:: yaml
1154+
:caption: conda-forge.yml
11541155
1155-
# conda-forge.yml
11561156
noarch_platforms:
11571157
- linux-64
11581158
- osx-64

0 commit comments

Comments
 (0)