mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)
Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Michael Droettboom <mdboom@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
parent
75a6441718
commit
e3b6ff19aa
46 changed files with 322 additions and 105 deletions
|
@ -143,11 +143,11 @@ class Availability(Directive):
|
|||
known_platforms = frozenset({
|
||||
"AIX", "Android", "BSD", "DragonFlyBSD", "Emscripten", "FreeBSD",
|
||||
"Linux", "NetBSD", "OpenBSD", "POSIX", "Solaris", "Unix", "VxWorks",
|
||||
"WASI", "Windows", "macOS",
|
||||
# libc
|
||||
"BSD libc", "glibc", "musl",
|
||||
# POSIX platforms with pthreads
|
||||
"pthreads",
|
||||
"WASI", "Windows", "macOS",
|
||||
# libc
|
||||
"BSD libc", "glibc", "musl",
|
||||
# POSIX platforms with pthreads
|
||||
"pthreads",
|
||||
})
|
||||
|
||||
def run(self):
|
||||
|
@ -159,9 +159,7 @@ class Availability(Directive):
|
|||
n, m = self.state.inline_text(self.arguments[0], self.lineno)
|
||||
pnode.extend(n + m)
|
||||
if self.content:
|
||||
content = " " + " ".join(self.content)
|
||||
n, m = self.state.inline_text(content, self.content_offset)
|
||||
pnode.extend(n + m)
|
||||
self.state.nested_parse(self.content, self.content_offset, pnode)
|
||||
|
||||
self.parse_platforms()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue