---
title: 📝 Contributing to the Wiki
description: How to contribute to the Z-Shell wiki — writing MDX, localization via Crowdin, and local development workflow.
canonical_url: https://wiki.zshell.dev/community/contributing/contributing_docs
markdown_url: https://wiki.zshell.dev/community/contributing/contributing_docs/index.md
locale: en
source_path: community/00_contributing/04_contributing_docs.mdx
---

<!-- Generated from the canonical Z-Shell Wiki build. The linked human-facing page remains the editorial source of truth. -->

# 📝 Contributing to the Wiki

![](https://wiki.zshell.dev/img/svg/community/contributing-docs.svg)

The wiki is a [Docusaurus 3](https://docusaurus.io/) site. All source files are in the [`z-shell/wiki`](https://github.com/z-shell/wiki) repository. English is the source language; translations are managed via [Crowdin](https://translate.zshell.dev/).

<a id="prerequisites"></a>

## Prerequisites

-   [Node.js](https://nodejs.org/) 24 LTS
-   [pnpm](https://pnpm.io/) 11

<a id="local-development"></a>

## Local Development

```sh
git clone https://github.com/<your-username>/wiki.git
cd wiki
pnpm install          # install dependencies
pnpm start            # dev server at http://localhost:3000
```

Other useful commands:

<table><thead><tr><th>Command</th><th>Purpose</th></tr></thead><tbody><tr><td><code>pnpm build</code></td><td>Full production build</td></tr><tr><td><code>pnpm build:en</code></td><td>English-only build (faster for docs-only checks)</td></tr><tr><td><code>pnpm serve</code></td><td>Serve the production build locally</td></tr><tr><td><code>pnpm clear</code></td><td>Clear Docusaurus cache (use when the site behaves oddly)</td></tr><tr><td><code>pnpm lint</code></td><td>Run Trunk linters and formatting checks</td></tr><tr><td><code>pnpm lint:fix</code></td><td>Auto-fix linting issues</td></tr><tr><td><code>pnpm write-heading-ids</code></td><td>Regenerate heading IDs across all docs</td></tr></tbody></table>

<a id="content-roots"></a>

## Content Roots

The wiki has three independent docs roots:

<table><thead><tr><th>Directory</th><th>URL Prefix</th><th>Purpose</th></tr></thead><tbody><tr><td><code>docs/</code></td><td><code>/docs</code></td><td>Core documentation, getting started, guides</td></tr><tr><td><code>community/</code></td><td><code>/community</code></td><td>Community guides, Zsh plugin standard, tools</td></tr><tr><td><code>ecosystem/</code></td><td><code>/ecosystem</code></td><td>Annexes, packages, plugins</td></tr></tbody></table>

<a id="file-naming-conventions"></a>

## File Naming Conventions

-   **Numeric prefixes** control sidebar order: `01_first.mdx`, `02_second.mdx`
-   **Directories** need a `_category_.json` file (see below)
-   **All English source files only** — never edit files under `i18n/`

<a id="frontmatter"></a>

### Frontmatter

Every `.mdx` file requires these fields:

```mdx
---
id: unique_page_id
title: "Page Title"
sidebar_position: 1
image: /img/png/theme/z/320x320.png
description: One-sentence description for SEO.
keywords:
  - relevant
  - keywords
---
```

<a id="_category_json"></a>

### `_category_.json`

Required for every new directory:

```json
{
  "label": "📁 Section Name",
  "position": 1,
  "link": {
    "type": "generated-index"
  }
}
```

<a id="mdx-authoring-patterns"></a>

## MDX Authoring Patterns

<a id="choose-the-simplest-useful-presentation"></a>

### Choose the simplest useful presentation

Start with ordinary Markdown and add a richer element only when it improves comprehension or scanning.

<table><thead><tr><th>Need</th><th>Use</th></tr></thead><tbody><tr><td>Short comparison or reference matrix</td><td>GFM table with compact cells</td></tr><tr><td>Steps that must happen in order</td><td>Numbered list</td></tr><tr><td>Work readers can complete</td><td>GFM task list (<code>- [ ]</code>)</td></tr><tr><td>Advice, context, risk, or danger</td><td>Docusaurus admonition</td></tr><tr><td>Optional or advanced explanation</td><td><code>&lt;details&gt;</code> with a one-line <code>&lt;summary&gt;</code></td></tr><tr><td>Equivalent operating-system or tool instructions</td><td><code>&lt;Tabs&gt;</code> and <code>&lt;TabItem&gt;</code></td></tr><tr><td>Landing-page navigation</td><td><code>&lt;CardGrid&gt;</code> and <code>&lt;Card&gt;</code></td></tr></tbody></table>

Do not use tables for long prose or sequential procedures, tabs for sequential steps, task boxes as decorative bullets, or raw HTML for layout. Blockquotes are for attributed quotations; use admonitions for callouts.

<a id="admonitions"></a>

### Admonitions

Use Docusaurus admonitions for callouts instead of blockquotes:

```mdx
:::tip
Helpful hint.
:::

:::info
Neutral information.
:::

:::warning
Something to be cautious about.
:::

:::danger
Critical warning.
:::
```

<a id="global-mdx-components"></a>

### Global MDX Components

These components are available in every `.mdx` file without importing:

<table><thead><tr><th>Component</th><th>Usage</th></tr></thead><tbody><tr><td><code>&lt;Highlight color="..."&gt;text&lt;/Highlight&gt;</code></td><td>Colored text spans</td></tr><tr><td><code>&lt;Emoji symbol="🎉" label="party"/&gt;</code></td><td>Accessible emoji</td></tr><tr><td><code>&lt;GhRepoBadge repo="z-shell/zi"/&gt;</code></td><td>GitHub repo badge</td></tr><tr><td><code>&lt;ShellCodeCopy&gt;command&lt;/ShellCodeCopy&gt;</code></td><td>Copyable shell command</td></tr></tbody></table>

<a id="code-blocks"></a>

### Code Blocks

Use language identifiers and `showLineNumbers` when helpful:

````mdx
```zsh showLineNumbers
zi light z-shell/F-Sy-H
```
````

Add `title="path/to/file"` when a filename matters. Highlight only the lines being discussed, and reserve `showLineNumbers` for longer examples referenced by line number.

<a id="links"></a>

### Links

Prefer relative links between pages:

```mdx
See [Getting Started](../getting_started) for more details.
```

Use absolute URLs only for external resources.

<a id="branch-and-pr-workflow"></a>

## Branch and PR Workflow

1.  Branch from `main`: `git checkout -b feature-123 main`
2.  Make changes to English source files only
3.  Run `pnpm build:en` to catch broken links and MDX errors
4.  Open a PR targeting `main`

Never edit `i18n/` files directly

Translation files under `i18n/` are managed exclusively through [Crowdin](https://translate.zshell.dev/). Manual edits will be overwritten on the next sync.

<a id="localization"></a>

## Localization

The wiki supports multiple languages via Crowdin. To contribute a translation:

1.  Join the project at [translate.zshell.dev](https://translate.zshell.dev/)
2.  Translate strings in the Crowdin editor
3.  Approved translations are synced back to the repo automatically

Do **not** fork the repo and edit `i18n/` files manually.

<a id="style-guidelines"></a>

## Style Guidelines

-   Use sentence case for headings (e.g., `## Code of conduct`, not `## Code Of Conduct`)
-   Keep paragraphs short — aim for ≤ 5 sentences per paragraph
-   Prefer tables for structured comparisons
-   Use admonitions sparingly — only when the callout level genuinely matches the content
-   Formatting is enforced by Prettier (120-char print width, double quotes, 2-space indent)

<a id="see-also"></a>

## See Also

-   [Getting Started](https://wiki.zshell.dev/community/contributing/getting_started/index.md) — org-wide branch and commit conventions
-   [Project Management](https://wiki.zshell.dev/community/contributing/project_management/index.md) — how work is tracked
