X Tutup
Skip to content

Commit cf022df

Browse files
Remove :platform: doc, add .. availability:: (GH-1744)
1 parent c680660 commit cf022df

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

documentation/markup.rst

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,10 @@ module being documented. Each module should be documented in its own file.
357357
Normally this markup appears after the title heading of that file; a typical
358358
file might start like this::
359359

360-
:mod:`parrot` -- Dead parrot access
361-
===================================
360+
:mod:`!parrot` -- Dead parrot access
361+
====================================
362362

363363
.. module:: parrot
364-
:platform: Unix, Windows
365364
:synopsis: Analyze and reanimate dead parrots.
366365

367366
.. describe:: module
@@ -370,12 +369,6 @@ file might start like this::
370369
or submodule. The name should be fully qualified (that is, including the
371370
package name for submodules).
372371

373-
The ``platform`` option, if present, is a comma-separated list of the
374-
platforms on which the module is available (if it is available on all
375-
platforms, the option should be omitted). The keys are short identifiers;
376-
examples that are in use include "IRIX", "Mac", "Windows", and "Unix". It is
377-
important to use a key which has already been used when applicable.
378-
379372
The ``synopsis`` option should consist of one sentence describing the
380373
module's purpose -- it is currently only used in the Global Module Index.
381374

@@ -1030,6 +1023,17 @@ Paragraph-level markup
10301023
These directives create short paragraphs and can be used inside information
10311024
units as well as normal text:
10321025

1026+
.. describe:: availability
1027+
1028+
This directive documents the platforms on which a module or feature
1029+
is available. For example::
1030+
1031+
.. availability:: Unix, not WASI, not Android.
1032+
1033+
::
1034+
1035+
.. availability:: Linux >= 3.0 with glibc >= 2.14.
1036+
10331037
.. describe:: note
10341038

10351039
An especially important bit of information about an API that a user should be

0 commit comments

Comments
 (0)
X Tutup