api-007 must API docs Apply the same brand voice principles (clear, concise, helpful) to developer and API documentation as to other content types.
These rules apply across every API reference page, whether hand-written or generated from source comments. A reference page has a fixed shape, and each part has its own page of rules:
api-007 must API docs Apply the same brand voice principles (clear, concise, helpful) to developer and API documentation as to other content types.
Examples
Rationale
API reference documentation is still read by people, so the same clarity and helpfulness that guide other content apply here.
api-001 should API docs Include a code example in each reference article illustrating how to use the programming element.
Examples
copyFile(src, dest): Copies a file. Example: await copyFile('report.txt', 'backup/report.txt')copyFile(src, dest): Copies a file.Rationale
A working example shows how the element is actually called, which the signature alone does not convey.
api-009 should API docs Introduce a code example by stating what it accomplishes and in what situation, not by naming the call it makes.
Examples
create() method when initializing a Component object.create() method.Rationale
On a reference page the reader already knows which element the example is about. The introduction earns its place by saying what the example achieves and when a reader needs it, which is what decides whether they read the code. code-003 requires the introduction; this rule says what it contains on a reference page.
api-003 should API docs Review auto-generated documentation comments for quality; remove internal implementation details not appropriate for end users, and supplement missing information important to developers.
Examples
_displayName field populated by UserCacheImpl.Rationale
Auto-generated reference carries internal detail and gaps, so review keeps the published docs accurate and useful to callers.
api-002 should API docs When an element is deprecated, put the notice first on the page, before the intro. State that the element is deprecated, the version in which it was deprecated if version tracking is used, the replacement with a link, and what developers must do to update their code. Use the form This [kind] is deprecated followed by Use the [replacement] instead.
Examples
listUsers() method instead, and update callers to handle its paginated response.Rationale
A developer who hits a deprecated element needs to know what replaces it and how to migrate, before they read anything else on the page; a notice at the end is read after the work is done.
api-006 should API docs Use lowercase, hyphen-separated filenames for documentation files; use only standard ASCII alphanumeric characters.
Examples
get-started-auth.mdGetStarted_Auth (v2).mdRationale
Lowercase, hyphenated, ASCII filenames are portable across systems and produce clean, predictable URLs.
api-008 should GuidesAPI docsMarketingBlog Don’t use API reference alone as the noun for the documentation, and don’t pluralize it as API references. Give it a head noun: API reference documentation, API reference content, API reference docs. As a label or a modifier it stays fine: an “API reference” heading, an API reference page.
Examples
Rationale
Reference names what the documentation is for, not what it is. Used bare, it reads as trade jargon and gets pluralized into something no reader would say. The head noun makes the phrase concrete.
inline-001 should code-009 should code-012 should placeholder-001 should timeless-001 should code-003 should code-010 should api-005 (retired 2026-09-13): “Use gender-neutral pronouns and a diverse
set of names when depicting people in documentation examples, and avoid
reinforcing stereotypes about job roles.” It restated incl-001, incl-008,
and incl-009, which apply to API reference documentation as they do to
every content type, and its example pair showed a pronoun violation, not
a naming one. The ID stays reserved and is never reused.