Skip to content

Commit

Permalink
Add page types for the WebAssembly section (#27737)
Browse files Browse the repository at this point in the history
* Add page-type entries for WebAssembly/

* Add metadocs for page-type specific to WebAssembly

---------

Co-authored-by: wbamberg <will@bootbonnet.ca>
  • Loading branch information
teoli2003 and wbamberg authored Nov 3, 2023
1 parent 4e32a88 commit c681ed8
Show file tree
Hide file tree
Showing 118 changed files with 156 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,19 @@ This section lists `page-type` values for pages under [Web/API](/en-US/docs/Web/
- `webgl-extension`: a WebGL extension, like [`WEBGL_draw_buffers`](/en-US/docs/Web/API/WEBGL_draw_buffers).
- `webgl-extension-method`: a WebGL extension method, like [`OES_vertex_array_object.bindVertexArrayOES()`](/en-US/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES).

### WebDriver
### WebAssembly page types

This section lists `page-type` values for pages under [WebAssembly/](/en-US/docs/WebAssembly). Every page in that part of the tree must have a `page-type`, and its value must be one of those listed below or one of the generic page type values.

- `webassembly-function`: a global function, that is a method directly under the `WebAssembly` object that acts as a namespace, like [`WebAssembly.instantiate()`](WebAssembly/JavaScript_interface/instantiate).
- `webassembly-constructor`: a constructor, like [`WebAssembly.Exception()`](WebAssembly/JavaScript_interface/Exception/Exception).
- `webassembly-interface`: a WebAssembly interface, like [`WebAssembly.LinkError`](WebAssembly/JavaScript_interface/LinkError).
- `webassembly-instance-property`: an instance property, like [`WebAssembly.Instance.exports`](WebAssembly/JavaScript_interface/Instance/exports).
- `webassembly-instance-method`: an instance method, like [`WebAssembly.Exception.getArg()`](WebAssembly/JavaScript_interface/Exception/getArg).
- `webassembly-static-method`: a static method, like [`WebAssembly.Module.exports()`](WebAssembly/JavaScript_interface/Module/exports).
- `webassembly-instruction`: an instruction, or a set of instructions, like [`Wrap`](WebAssembly/Reference/Numeric/Wrap).

### WebDriver page types

This section lists `page-type` values for pages under [Web/WebDriver](/en-US/docs/Web/WebDriver). Every page in that part of the tree must have a `page-type`, and its value must be one of those listed below or one of the [generic page type](#generic_page_types) values.

Expand Down
1 change: 1 addition & 0 deletions files/en-us/webassembly/c_to_wasm/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Compiling a New C/C++ Module to WebAssembly
slug: WebAssembly/C_to_Wasm
page-type: guide
---

{{WebAssemblySidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/webassembly/concepts/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly Concepts
slug: WebAssembly/Concepts
page-type: guide
---

{{WebAssemblySidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/webassembly/existing_c_to_wasm/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Compiling an Existing C Module to WebAssembly
slug: WebAssembly/existing_C_to_Wasm
page-type: guide
---

{{WebAssemblySidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/webassembly/exported_functions/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Exported WebAssembly functions
slug: WebAssembly/Exported_functions
page-type: guide
---

{{WebAssemblySidebar}}
Expand Down
1 change: 1 addition & 0 deletions files/en-us/webassembly/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly
slug: WebAssembly
page-type: landing-page
browser-compat: javascript.builtins.WebAssembly
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.compile()
slug: WebAssembly/JavaScript_interface/compile
page-type: webassembly-function
browser-compat: javascript.builtins.WebAssembly.compile
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.CompileError() constructor
slug: WebAssembly/JavaScript_interface/CompileError/CompileError
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.CompileError.CompileError
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.CompileError
slug: WebAssembly/JavaScript_interface/CompileError
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.CompileError
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.compileStreaming()
slug: WebAssembly/JavaScript_interface/compileStreaming
page-type: webassembly-function
browser-compat: javascript.builtins.WebAssembly.compileStreaming
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Exception constructor
slug: WebAssembly/JavaScript_interface/Exception/Exception
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.Exception.Exception
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Exception.prototype.getArg()
slug: WebAssembly/JavaScript_interface/Exception/getArg
page-type: webassembly-instance-method
browser-compat: javascript.builtins.WebAssembly.Exception.getArg
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Exception
slug: WebAssembly/JavaScript_interface/Exception
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.Exception
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Exception.prototype.is()
slug: WebAssembly/JavaScript_interface/Exception/is
page-type: webassembly-instance-method
browser-compat: javascript.builtins.WebAssembly.Exception.is
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Exception.prototype.stack
slug: WebAssembly/JavaScript_interface/Exception/stack
page-type: webassembly-instance-property
status:
- non-standard
browser-compat: javascript.builtins.WebAssembly.Exception.stack
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Global() constructor
slug: WebAssembly/JavaScript_interface/Global/Global
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.Global.Global
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Global
slug: WebAssembly/JavaScript_interface/Global
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.Global
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/webassembly/javascript_interface/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly
slug: WebAssembly/JavaScript_interface
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Instance.prototype.exports
slug: WebAssembly/JavaScript_interface/Instance/exports
page-type: webassembly-instance-property
browser-compat: javascript.builtins.WebAssembly.Instance.exports
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Instance
slug: WebAssembly/JavaScript_interface/Instance
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.Instance
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Instance() constructor
slug: WebAssembly/JavaScript_interface/Instance/Instance
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.Instance.Instance
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.instantiate()
slug: WebAssembly/JavaScript_interface/instantiate
page-type: webassembly-function
browser-compat: javascript.builtins.WebAssembly.instantiate
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.instantiateStreaming()
slug: WebAssembly/JavaScript_interface/instantiateStreaming
page-type: webassembly-function
browser-compat: javascript.builtins.WebAssembly.instantiateStreaming
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.LinkError
slug: WebAssembly/JavaScript_interface/LinkError
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.LinkError
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.LinkError() constructor
slug: WebAssembly/JavaScript_interface/LinkError/LinkError
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.LinkError.LinkError
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Memory.prototype.buffer
slug: WebAssembly/JavaScript_interface/Memory/buffer
page-type: webassembly-instance-property
browser-compat: javascript.builtins.WebAssembly.Memory.buffer
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Memory.prototype.grow()
slug: WebAssembly/JavaScript_interface/Memory/grow
page-type: webassembly-instance-method
browser-compat: javascript.builtins.WebAssembly.Memory.grow
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Memory
slug: WebAssembly/JavaScript_interface/Memory
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.Memory
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Memory() constructor
slug: WebAssembly/JavaScript_interface/Memory/Memory
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.Memory.Memory
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
title: WebAssembly.Module.customSections()
slug: WebAssembly/JavaScript_interface/Module/customSections
page-type: webassembly-static-method
browser-compat: javascript.builtins.WebAssembly.Module.customSections
---

{{WebAssemblySidebar}}

The **`WebAssembly.customSections()`** function returns a copy
The **`WebAssembly.Module.customSections()`** function returns a copy
of the contents of all custom sections in the given module with the given string name.

## Syntax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Module.exports()
slug: WebAssembly/JavaScript_interface/Module/exports
page-type: webassembly-static-method
browser-compat: javascript.builtins.WebAssembly.Module.exports
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
title: WebAssembly.Module.imports()
slug: WebAssembly/JavaScript_interface/Module/imports
page-type: webassembly-static-method
browser-compat: javascript.builtins.WebAssembly.Module.imports
---

{{WebAssemblySidebar}}

The **`WebAssembly.imports()`** function returns an array
The **`WebAssembly.Module.imports()`** function returns an array
containing descriptions of all the declared imports of the given `Module`.

## Syntax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Module
slug: WebAssembly/JavaScript_interface/Module
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.Module
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Module() constructor
slug: WebAssembly/JavaScript_interface/Module/Module
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.Module.Module
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.RuntimeError
slug: WebAssembly/JavaScript_interface/RuntimeError
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.RuntimeError
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.RuntimeError() constructor
slug: WebAssembly/JavaScript_interface/RuntimeError/RuntimeError
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.RuntimeError.RuntimeError
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Table.prototype.get()
slug: WebAssembly/JavaScript_interface/Table/get
page-type: webassembly-instance-method
browser-compat: javascript.builtins.WebAssembly.Table.get
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Table.prototype.grow()
slug: WebAssembly/JavaScript_interface/Table/grow
page-type: webassembly-instance-method
browser-compat: javascript.builtins.WebAssembly.Table.grow
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Table
slug: WebAssembly/JavaScript_interface/Table
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.Table
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Table.prototype.length
slug: WebAssembly/JavaScript_interface/Table/length
page-type: webassembly-instance-property
browser-compat: javascript.builtins.WebAssembly.Table.length
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Table.prototype.set()
slug: WebAssembly/JavaScript_interface/Table/set
page-type: webassembly-instance-method
browser-compat: javascript.builtins.WebAssembly.Table.set
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Table() constructor
slug: WebAssembly/JavaScript_interface/Table/Table
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.Table.Table
---

Expand Down
1 change: 1 addition & 0 deletions files/en-us/webassembly/javascript_interface/tag/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Tag
slug: WebAssembly/JavaScript_interface/Tag
page-type: webassembly-interface
browser-compat: javascript.builtins.WebAssembly.Tag
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Tag() constructor
slug: WebAssembly/JavaScript_interface/Tag/Tag
page-type: webassembly-constructor
browser-compat: javascript.builtins.WebAssembly.Tag.Tag
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.Tag.prototype.type()
slug: WebAssembly/JavaScript_interface/Tag/type
page-type: webassembly-instance-method
browser-compat: javascript.builtins.WebAssembly.Tag.type
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: WebAssembly.validate()
slug: WebAssembly/JavaScript_interface/validate
page-type: webassembly-function
browser-compat: javascript.builtins.WebAssembly.validate
---

Expand Down
Loading

0 comments on commit c681ed8

Please sign in to comment.