<a id="update-sphinx-stacks"></a>

# Update your Sphinx Stack

The Sphinx Stack is updated frequently. After you copy its code and it becomes the
documentation system in your project, you must manually maintain it.

There are special pathways to bring in the latest features and improvements from the
Sphinx Stack repository.

## Determine your current version

There are two versions of the Sphinx Stack that entail different update processes:

- the **new**, or **extension-based** Sphinx Stack
- the **legacy**, or **pre-extension** Sphinx Stack

### New Sphinx Stack

If your `conf.py` file includes `canonical_sphinx` under the `extensions` list,
you are using the new Sphinx Stack.

To update a new Sphinx Stack project to the latest version, see:

- [Update the new Sphinx Stack](https://documentation.ubuntu.com/sphinx-stack/latest/how-to/update-sphinx-stack/new-sphinx-stack/index.html.md#update-new-sphinx-stack)

#### NOTE
New Sphinx Stack releases use a semantic versioning scheme for minor and patch
versions, which can be found in your project’s `_dev/version` file.

### Legacy Sphinx Stack

If your `conf.py` file does \_not_ include `canonical_sphinx` you are using the
legacy Sphinx Stack.

To update a legacy Sphinx Stack project to the latest version of the new Sphinx Stack:

- [Update the legacy Sphinx Stack](https://documentation.ubuntu.com/sphinx-stack/latest/how-to/update-sphinx-stack/legacy-sphinx-stack/index.html.md#update-legacy-sphinx-stack)
