File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44from docutils import nodes
5+ from sphinx import addnodes
56from sphinx .util import logging
67from sphinx .util .docutils import SphinxDirective
78
89
910class Availability (SphinxDirective ):
10-
1111 has_content = True
1212 required_arguments = 1
1313 optional_arguments = 0
@@ -42,10 +42,14 @@ def run(self):
4242
4343 def parse_platforms (self ):
4444 """Parse platform information from arguments
45+
4546 Arguments is a comma-separated string of platforms. A platform may
4647 be prefixed with "not " to indicate that a feature is not available.
48+
4749 Example::
50+
4851 .. availability:: Windows, Linux >= 4.2, not WASI
52+
4953 Arguments like "Linux >= 3.17 with glibc >= 2.27" are currently not
5054 parsed into separate tokens.
5155 """
You can’t perform that action at this time.
0 commit comments