node/doc/contributing/writing-docs.md
Sebastian Beltran b92f77a094
Some checks failed
Coverage Linux (without intl) / coverage-linux-without-intl (push) Has been cancelled
Coverage Linux / coverage-linux (push) Has been cancelled
Coverage Windows / coverage-windows (push) Has been cancelled
Test and upload documentation to artifacts / build-docs (push) Has been cancelled
Linters / lint-addon-docs (push) Has been cancelled
Linters / lint-cpp (push) Has been cancelled
Linters / format-cpp (push) Has been cancelled
Linters / lint-js-and-md (push) Has been cancelled
Linters / lint-py (push) Has been cancelled
Linters / lint-yaml (push) Has been cancelled
Linters / lint-sh (push) Has been cancelled
Linters / lint-codeowners (push) Has been cancelled
Linters / lint-pr-url (push) Has been cancelled
Linters / lint-readme (push) Has been cancelled
Notify on Push / Notify on Force Push on `main` (push) Has been cancelled
Notify on Push / Notify on Push on `main` that lacks metadata (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
V8 patch update / v8-update (push) Has been cancelled
OpenSSL update / openssl-update (push) Has been cancelled
Timezone update / timezone_update (push) Has been cancelled
License update / update_license (push) Has been cancelled
Find inactive collaborators / find (push) Has been cancelled
doc: fix typo in writing-docs
PR-URL: https://github.com/nodejs/node/pull/57776
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2025-04-08 19:30:54 +00:00

1.2 KiB

How to write documentation for the Node.js project

This document refers to the Node.js API documentation that gets deployed to nodejs.org/en/docs and consists in a general reference on how to write and update such documentation.

Style Guide

For a style guide on how to write or update the Node.js documentation refer to the doc/README document.

Building

There are a few different commands that you can use to build and view the documentation locally, the simplest one being:

make docserve

This command builds the documentation, spins up a local server and provides you with a URL to it that you can navigate to in order to view the built documentation.

For more build options refer to the documentation building documentation.

And for more details about the tooling used to build the documentation refer to the API Documentation Tooling document.

Linting and Formatting

To make sure that your changes pass linting run the following command:

make lint-md