# Edit the right Docusaurus documentation version

Canonical: https://githtml.com/guides/docusaurus-versioned-docs-edit-target
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

Identify the Docusaurus version shown to readers before editing a page, then locate the source directory that produces that version. Current development docs and versioned snapshots can be separate. Verify the version label and route in a local production build, and do not assume that editing the main docs directory updates every published release.

## Start with the reader's versioned route

Copy the route and visible version label from the page that needs correction. Determine whether it represents the current development documentation, a released snapshot, or a customized version configuration. Inspect the project's version files and settings before modifying content. A typo fix may belong in several supported versions, while a new feature description may belong only in the upcoming version. Write down that scope explicitly. Otherwise a contributor can produce a correct edit in the wrong directory and leave the page users actually visit unchanged. Do not infer the source location solely from the displayed product version name.

## Plan the smallest consistent set of edits

The checklist below helps identify the target rather than invoking a version-creation command unnecessarily. Confirm whether the project intentionally maintains both current and released copies. Apply the correction to each applicable source with attention to behavior differences between versions; do not blindly copy a whole page across releases. If an example uses a feature introduced later, keep it out of older documentation even when the prose fix is otherwise shared. Review sidebar identifiers and links associated with the versioned page. A source edit can be correct while a cross-version link still sends readers to an incompatible reference.

````text
Version-edit checklist
- Reader route:
- Visible version label:
- Source directory:
- Other supported versions affected:
- Local build verification:
- Intentionally unchanged versions:
````

## Verify the built route and version selector

Run the local production build and open the exact route identified at the start. Check the visible version label, corrected paragraph, and links to nearby references. Use the version selector to confirm that other supported versions still reach their intended content. Do not create a new documentation snapshot merely to make an existing correction visible; version creation has broader maintenance consequences. Record which versions were intentionally changed and which were not. This gives reviewers evidence that the release-specific scope was considered. Keep future updates tied to the same version map so the documentation does not drift into a mixture of current and historical behavior. Include the version scope in the review description. This helps reviewers notice an omitted supported release before the correction is merged and users continue encountering the original mistake.

1. Record the affected route and visible version before editing source.
2. Map that route to its current or versioned source directory.
3. Apply only behavior-appropriate changes to each supported version.
4. Verify the exact built route and version-selector destinations after the local build.

## Sources and further reading

- [Docusaurus versioning](https://docusaurus.io/docs/versioning)

## Related guides

- [Generate Doxygen HTML from a deliberate source scope](https://githtml.com/guides/doxygen-html-input-scope-review)
- [Use go doc for a focused API check before creating a reading note](https://githtml.com/guides/go-doc-command-reference-not-html-export)
- [Check which Hugo drafts and future pages enter a build](https://githtml.com/guides/hugo-drafts-future-content-review)
- [Review Hugo's local output before sharing documentation](https://githtml.com/guides/hugo-local-build-output-review)

Editorial approach: https://githtml.com/guides/about
