openwebdocs / project

project documentation, policies & meeting minutes
http://openwebdocs.org
Creative Commons Zero v1.0 Universal
359 stars 42 forks source link

OWD project: Doc structures for WebIDL concepts #159

Open Elchi3 opened 1 year ago

Elchi3 commented 1 year ago

Problem statement

In MDN Web API reference docs, we've been using WebIDL to derive rules for how we want to structure and make the API docs most consistent and useful for web developers.

For example, we said:

For certain WebIDL concepts, or annotations, we are less clear how to consistently document things. For example,

Proposed solutions

Provide MDN authors (and readers) a clear structure for Web API docs by agreeing on how and where to document aspects of Web APIs like maplikes, jsonifiers, (async) iterables etc.

Ideal outcome: Any WebIDL fragment can be taken and it is clear what it will mean in terms of structure and docs on MDN and in BCD. This will make the docs predictable and also it will be easier to generate docs from tooling with consistent structures.

Task list

A good starting point is https://github.com/mdn/browser-compat-data/issues/6367

Priority assessment

More information

Open Web Docs (OWD) is a non-profit collective funded by corporate and individual donations.

In order for this project to happen, please consider donating to OWD on https://opencollective.com/open-web-docs. For more information on sponsorship and membership tiers, see https://openwebdocs.org/membership/

More information is available at https://openwebdocs.org/. For questions, please reach out to florian@openwebdocs.org.

Josh-Cena commented 1 year ago

See also https://github.com/mdn/content/issues/7844, https://github.com/mdn/content/issues/6891

teoli2003 commented 1 year ago

I used WebRef to start building a list of concepts to document, that is, concepts actually in use. Some will lead to significant work; others should be reasonably quick to deal with.

(This list is a WIP)

Extended attributes

Legacy extended attributes

Other extended attributes

Special types

Special operations

Special typedefs

Others

Elchi3 commented 1 month ago

The discussion for iterable, maplike, setlike has been started here: https://github.com/orgs/mdn/discussions/707