|
| 1 | +# Contributing to nodejs/learn |
| 2 | + |
| 3 | +Thank you for your interest in contributing! This repository contains the |
| 4 | +Node.js learning guides published at [learn.nodejs.org](https://learn.nodejs.org). |
| 5 | + |
| 6 | +## Content structure |
| 7 | + |
| 8 | +All articles live under `pages/`, organized into topic sections: |
| 9 | + |
| 10 | +| Directory | Topics covered | |
| 11 | +| --------------------- | ------------------------------------------------------- | |
| 12 | +| `getting-started/` | Introduction, V8 engine, dev vs production, WebAssembly | |
| 13 | +| `asynchronous-work/` | Event loop, callbacks, promises, streams | |
| 14 | +| `command-line/` | REPL, environment variables, CLI I/O | |
| 15 | +| `diagnostics/` | Debugging, profiling, memory, performance | |
| 16 | +| `file-system/` | File paths, stats, reading, writing, folders | |
| 17 | +| `http/` | HTTP transactions, fetch, WebSockets, proxies | |
| 18 | +| `package-management/` | npm, publishing packages, Node-API modules | |
| 19 | +| `security/` | Security best practices | |
| 20 | +| `testing/` | Test runner, mocking, code coverage | |
| 21 | +| `typescript/` | TypeScript with Node.js | |
| 22 | + |
| 23 | +## Making changes |
| 24 | + |
| 25 | +### Editing an existing article |
| 26 | + |
| 27 | +1. Find the relevant `.md` file under `pages/`. |
| 28 | +2. Edit the content (standard GitHub-flavored Markdown). |
| 29 | +3. Open a pull request — no build step required to review prose changes. |
| 30 | + |
| 31 | +### Adding a new article |
| 32 | + |
| 33 | +1. Choose the most relevant section directory, or propose a new one in your PR. |
| 34 | +2. Create a new `.md` file with a descriptive kebab-case name. |
| 35 | +3. Include frontmatter at the top of the file if required by `doc-kit`. |
| 36 | + |
| 37 | +### Adding a new section |
| 38 | + |
| 39 | +Open an issue first to discuss the proposed section before adding files. |
| 40 | +Refer to the [Card Sort results](https://github.com/nodejs/nodejs.org/issues/8234) |
| 41 | +for prior user-research context on content organisation. |
| 42 | + |
| 43 | +## Building locally |
| 44 | + |
| 45 | +```bash |
| 46 | +npm install |
| 47 | +npm run build |
| 48 | +# Output is written to out/ |
| 49 | +``` |
| 50 | + |
| 51 | +## Code of Conduct |
| 52 | + |
| 53 | +This project follows the |
| 54 | +[Node.js Code of Conduct](https://github.com/nodejs/admin/blob/main/CODE_OF_CONDUCT.md). |
0 commit comments