Skip to content

docs: documentation writing guidelines - #10796

Open
chrisgervang wants to merge 6 commits into
masterfrom
docs/documentation-guidelines
Open

chrisgervang wants to merge 6 commits into
masterfrom
docs/documentation-guidelines

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #10707

Background

The vis.gl developer process says which pages to update when behavior changes, but not how to write them, so new pages drift from the voice of the existing reference. Drafts that start from RFCs or PR descriptions tend to read like implementation notes. This PR documents the style existing pages already use, with examples from PathLayer, DataFilterExtension, FillStyleExtension and ToggleWidget, and before/after rewrites from the PathStyleExtension docs (#10584).

Change List

  • dev-docs/documentation-guidelines.md: page outline, voice, props, remarks, demos and figures
  • AGENTS.md: add "Documentation" section
  • CONTRIBUTING.md: link the guidelines
  • Link back to the vis.gl developer process

This description was drafted by an AI coding agent following the PR description guidelines.

@greptile-apps

greptile-apps Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] Adds documentation writing guidelines for contributors.

The PR appears safe to merge; no outstanding findings remain.

Summary

The PR adds documentation-writing guidelines and links them from contributor and agent guidance.

  • The changes since the previous review refine the description of the intended reader.
  • The earlier heading concern is addressed, and the Remarks thread is resolved.

Reviews (6) · Last reviewed commit: "docs: base reader background on maintain..."

Comment thread dev-docs/documentation-guidelines.md Resolved
Comment thread dev-docs/documentation-guidelines.md Resolved
@coveralls

coveralls commented Oct 4, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.6%. remained the same — docs/documentation-guidelines into master

Comment thread dev-docs/documentation-guidelines.md Resolved
Comment thread dev-docs/documentation-guidelines.md Resolved
Comment thread AGENTS.md
- Do not make up an issue number. Ask the contributor for it if it is not known, and remove the
line if there is none.

## Documentation

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't always followed by an agent but can certainly help in a lot of cases with AI prose/writing (which when produced by certain models is excruciating to read):

  • Use plain technical English: prefer concrete nouns and verbs, define only the one term the reader needs, keep claims qualified to their evidence, and use the shortest form that preserves the technical meaning. Plain does not mean vague, casual, or stripped of necessary detail.

@charlieforward9

Copy link
Copy Markdown
Member

If the ultimate goal is consistency, it would be great to have this centralized and pointed to by ALL the repos in the vis.gl org, such as the vis.gl/README.md, dev-tools repo, something similar?

@chrisgervang

Copy link
Copy Markdown
Collaborator Author

it would be great to have this centralized

Agreed, I'd like to push these up and share them too.

Might make sense to the dev-tools repo to publish a skills-like tool for developers that could pull the latest guides in too.

The TSC repo seems like a good place for these to live long term

@charlieforward9

Copy link
Copy Markdown
Member

dev-tools repo to publish a skills-like tool

I would really appreciate this... I have to keep reminding my agent that an 8 line diff does not need a Bible-length PR description

@Pessimistress

Copy link
Copy Markdown
Collaborator

Some agent instructions I use for my local dev:

  • Introduce an API by talking about its intention, not implementation. When possible, lead by user scenarios: "To do xx, use yy". Explain how an option/argument work by describing the intended effect of setting it. Do not narrate the implemented code flow. Do not mention any internal flag or method names that is not exposed to the user.
  • Focus on what the documented component/utility is or does. Avoid talking about what it is not or does not. Do not document argument against misconceptions, steps in handling error states, or stale legacy behavior unless explicitly instructed to do so.
  • The first time another component, terminology, or concept is mentioned in a page, make your best effort to link to either another documentation file in the repo, or an authoratative external source. You should not assume that the user already pocess certain domain knowledge, or have read the docs in order.
  • When talking about limitations, use a positive tone with actionable next steps. For example:
    • If the limitation is temporary: "currently only supports MapView. If you need to use it with GlobeView, file a feature request on GitHub."
    • If the limitation is external: "Downloading texture from another site is not supported due to security restriction in web browsers, see [link to W3C spec]."
    • If the limitation is intentional: "Nested changes in a data object at runtime is ignored to avoid unnecessary performance overheads. Use dataComparator to force a full update."
  • When talking about breaking changes, use a positive tone that emphasize on the gains. For example:
    • If an API behavior have changed: "Picking now returns a 3D point instead of 2D. This helps controllers to behave more predicatably. To disable it, set unproject3D: false."
    • If an API is removed: "@namespace/module no longer exports StaticMap class at the default endpoint. Import Map from @namespace/module/map instead. Exports have been reorganized to enable better code sharing and treeshaking, results in smaller bundle footprint."

@chrisgervang chrisgervang mentioned this pull request Oct 29, 2026
29 of 30 tasks

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants