Skip to content

Commit

Permalink
Allow non-first-child table cells to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Nov 2, 2023
1 parent f7dd4ed commit d3d2b3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
4 changes: 4 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend {
/*color of nav at top when the window is narrow*/
background: #43B02A;
}

.wy-table-responsive table td:not(:first-child), .wy-table-responsive table th:not(:first-child) {
white-space: normal;
}
24 changes: 9 additions & 15 deletions docs/source/resources/package-spec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,15 @@ parts:
three parts, the second part must be the exact version.

.. list-table:: Version Special Characters
:widths: 10, 40, 40
:widths: 10 40 40
:header-rows: 1

* - Symbol
- Meaning
- Example

* - <, >, <=, >=
- Relational operators on versions,

which are compared using `PEP-440 <https://www.python.org/dev/peps/pep-0440/>`_.
- Relational operators on versions, which are compared using `PEP-440 <https://www.python.org/dev/peps/pep-0440/>`_.
- ``<=1.0`` matches 0.9, 0.9.1, and 1.0, but not 1.0.1.

* - ==, and !=
Expand All @@ -315,16 +313,12 @@ parts:
- ``1.0|1.2`` matches version 1.0 or 1.2.

* - \*
- Matches 0 or more characters in the version string.

In terms of regular expressions, it is the same as ``r'.*'``.
- Matches 0 or more characters in the version string. In terms of regular expressions, it is the same as ``r'.*'``.
- ``1.0|1.4*`` matches 1.0, 1.4 and 1.4.1b2, but not 1.2.

* - ,
- AND
- ``>=2,<3`` matches all packages in the 2 series.

2.0, 2.1, and 2.9 all match, but 3.0 and 1.0 do not.
- ``>=2,<3`` matches all packages in the 2 series. 2.0, 2.1, and 2.9 all match, but 3.0 and 1.0 do not.

.. hint::
``,`` has higher precedence than \|, so >=1,<2|>3 means greater than or equal to 1 AND less than 2 or greater than 3, which matches 1, 1.3 and 3.0, but not 2.2.
Expand Down Expand Up @@ -380,17 +374,17 @@ the following characters: <, >, \*, or \|.
* - Example
- Meaning

* - conda install numpy=1.11
* - ``conda install numpy=1.11``
- The fuzzy constraint numpy=1.11 matches 1.11, 1.11.0, 1.11.1, 1.11.2, 1.11.18, and so on.

* - conda install numpy==1.11
* - ``conda install numpy==1.11``
- The exact constraint numpy==1.11 matches 1.11, 1.11.0, 1.11.0.0, and so on.

* - conda install "numpy=1.11.1|1.11.3"
* - ``conda install "numpy=1.11.1|1.11.3"``
- The OR constraint "numpy=1.11.1|1.11.3" matches with 1.11.1 or 1.11.3.

* - conda install "numpy>1.11"
* - ``conda install "numpy>1.11"``
- Any numpy version 1.12.0a or greater.

* - conda install "numpy>=1.8,<2"
* - ``conda install "numpy>=1.8,<2"``
- The AND constraint "numpy>=1.8,<2" matches with 1.8 and 1.9 but not 2.0.

0 comments on commit d3d2b3d

Please sign in to comment.