Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
/ ot-drafts Public archive
generated from google/new-project

Drafts of proposed MDN pages for items in Chromium experimental phases.

License

Notifications You must be signed in to change notification settings

GoogleChromeLabs/ot-drafts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Origin trial drafts

Welcome to the origin trial drafts repo. If you're implementing a new spec, there's no one more qualified than you to write reference materials for it, and there's no one who can do it faster. But if a feature is in an origin trial, it can't be documented on MDN. Even if it could be, the style guide for a site like MDN is thick and you're an engineer, not a writer.

This repo helps you with these problems.

The puppy problem

Why are we asking you to help document features on MDN? Chrome is so robust at creating new web platform features that we have exceeded our capacity to document it.

Imagine that you are a dog breeder and that you believe fervently that the world needs more dogs. They're our best friends, after all. The world is better with more of them. So you start breeding them as fast as you can. But instead of finding loving homes for them, you push them out the door to fend for themselves. Metaphorically speaking, we're breeding puppies and failing to find homes for them. With a little help from you, we can stop doing this.

I'm preparing for a developer trial or origin trial

The documentation produced in this stage will be minimal, focusing on accuracy and prioritizing a code example over document depth. Follow the instructions behind the appropriate link below.

  • I am implementing one or more interfaces or events.

  • I am adding an interface member such as an event callback, a method, or a property: contact jmedley@.

  • I am shipping a stable version of a feature soon and expect no more changes to the API surface: please use the more complete boilerplates in the MDN Boilerplates repo. Contact jmedley@ for help.

Why are there only interface pages for many features?

This repo contains mostly interface pages and only API-related pages. The pages in this repo are autogenerated and there is currently only a process for autogenerating API docs.

On MDN a fully documented API has and overview page as well as individual pages for interfaces, constructors, events, event callbacks, methods and properties. If your feature is in an origin trial, the API surface is still in flux. Keeping a complete documentation set in sync with changes can be a burden. However, it's useful to provide at least something to participants in an origin trial. If a feature makes it to stable with little or no changes in its API surface, that says more about the design of the feature than it does the nature of origin trials. Hence the boilerplates in this repo are only for interfaces. They provide space for basic descriptions of the interface and its members, and a place for code examples.

A boilerplate is missing

If your boilerplate is missing from the drafts/ folder, file an issue with MDN Helper (the tool used to create the drafts). Missing boilerplates are often the result of misreading a Chromer IDL file during generation.

Note: If you recently merged a PR that enables your feature by default, the draft generation script will ignore your feature. In this case you should use the boilerplates in the MDN Boilerplates repo. Contact jmedley@ for help.

About

Drafts of proposed MDN pages for items in Chromium experimental phases.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published