Platform versions
Decide which platform versions a page covers, name and link the page of another version, and add a version in preview or end one.
The documentation covers three versions of the Azion Platform. API v4 is the current version. API v6 is the next version, and it is in preview. API v3 is deprecated. These rules decide which pages exist in each version and how to name and link the page of a version other than the current one. They also set how a version enters and leaves the documentation. The version select, the banner, and the frontmatter fields that render them are in Components.
Decide which versions a page covers
Most pages hold for every version and declare no version. Write one page per version only when the content differs between the versions.
API v6 is opt-in: a page covers it only when its versions field, or its tree’s, lists v6. The trees of the developer tools, such as GraphQL, Azion CLI, MCP, Runtime, and Azion Lib, declare versions: [v3, v4, v6]. A page with no versions field anywhere covers API v3 and API v4, so the select shows v4.x on it even when the reader chose API v6. The menu of API v6 still lists the page.
| The content | Pages | Frontmatter |
|---|---|---|
| Holds for every version, such as a concept, a Functions code sample, or a Platform Resource that did not change | One page | No versions field |
| Differs between versions for the same resource: the API model, a Console path, a field, or a name | One page per version that differs | versions on each page, and counterpart naming the page of each other version |
| Exists in only one version, such as Domains in API v3 or Environments in API v6 | One page | versions with that version, and counterpart naming the closest page of each other version |
- Never copy a page into another version so that each version has one. A page that holds for every version stays one page.
- A page that differs in one version only needs two pages, not three. Certificate Manager holds for API v3 and API v4 and differs in API v6. Its API v4 page declares
versions: [v3, v4], and its API v6 page declaresversions: [v6]. - Declare
versionson the navigation tree when every page of a product shares it, as the Domains tree does. A page then declares only what differs from its tree. - A guide follows the same rule. When any step of a guide differs between versions, write one guide per version, each with every step the reader of that version follows, including the steps that do not differ. Never hold the steps of two versions in one guide, and never ask the reader which version their account runs on.
Name and place the page of another version
Some resources exist in more than one version under the same name. The page of such a resource in API v3 or API v6 takes the identity of its API v4 page, with a version marker:
| Field | Rule | Example |
|---|---|---|
permalink |
The permalink of the API v4 page, followed by the version and a slash | /documentation/platform/applications/v3/, /documentation/platform/applications/v6/ |
namespace |
The namespace of the API v4 page, followed by _ and the version |
documentation_products_edge_applications_v3, documentation_products_edge_applications_v6 |
title |
The title of the API v4 page, with no version suffix. When that title names a resource that the version calls by another name, the title names the resource of the version | Applications; Configure mTLS on a domain, from Configure mTLS on a workload |
| File | Next to the API v4 page, in its folder or in a folder named for the version inside it | edge-application/v3/edge-application-v3.mdx |
The Brazilian Portuguese page follows the same rules: its permalink is the permalink of the Brazilian Portuguese API v4 page followed by the version, and its namespace is identical to the US English page.
- Keep a deprecated name from Documentation terminology out of the title in every version. An API v3 page about applications is titled Applications, not Edge Application.
- The page of a resource that has its own name in one version, or that exists only in one version, keeps its own title and permalink, with no marker. Domains, the API v3 equivalent of Workloads, is at
/documentation/platform/domains/. Environments, which exists only in API v6, takes a permalink of its own in the same way. - Register the page of a resource that also exists in API v4 in the navigation tree of its API v4 counterpart, in a row with
"hidden": true. The row appears in place of the API v4 row when the reader selects that version. - Register the page of a resource that exists only in one version in a visible row. The sidebar shows the row only in that version.
- The page declares
versionswith its version,stagewith the stage of the version, andcounterpart. - Some API v3 pages end in
-v3/instead of/v3/. Write the version as its own segment on every page you create. Moving an existing page to/v3/changes its URL, so it needs a redirect in the same change, as Frontmatter requires.
Link between versions
Each version reads as documentation of its own. The counterpart field is the only link from a page to its equivalent in another version. The version select and the banner render it.
- Never write an aside, a sentence, or a snippet that announces another version, such as “An earlier version of this page exists” or “This page has a new version in preview”. The notice of a gap in a version in preview is the one exception.
- Link inside the version. A page of API v3 or API v6 links to pages of the same version or to pages that hold for every version. A page that declares only API v4 never links to a page of another version.
- A page that holds for every version can link to an API v6 page in prose, such as from a fundamentals page to the API v6 concept page. It never links to an API v3 page.
- A page about the move between versions is the exception: API v4 Migration and Migrate from provider v1.x to v2.0 link to API v3 and API v4 pages in prose. A page about what changes in API v6 links to API v4 and API v6 pages in the same way.
- On such a page, a link to a page that holds for every version can carry
?api=and the version, such as?api=v6. The link stores that version as the reader’s choice, and the menu follows it. The select shows the version only on a page that covers it. A link to a page of a single version needs no parameter, because that page opens in its own version.
Mark deprecated content
The stage of a version or a feature comes from the stage field, never from the body. The stages and what each one commits Azion to are in section 1.3 of the Terms of Service.
- A deprecated version. Every page of the version carries
stage: deprecated, from its navigation tree or from its own frontmatter when it sits in a tree of another version. - A deprecated feature inside the current version. When the feature has its own page, that page carries
stage: deprecated. When the feature is a field or an option on a reference page, its entry names the replacement in one sentence, with no date. - The content of a deprecated page. Correct what is wrong on it, and document no addition to it. A deprecated version receives no updates.
- The shutdown date. The date when a version shuts down appears only on API v4 Migration, as Numbers sets out.
Document a version in preview
A version that the documentation covers before it reaches General Availability follows the rules above, with a stage of its own. API v6 is such a version: API v4 stays the current version, and API v6 pages sit beside the API v4 pages.
-
The stage. Every page of the version carries
stage: preview, orstage: experimentalfor a version at that stage. The stage comes from the field, never from a sentence in the body. -
The permalinks. The pages of the current version keep their permalinks with no marker. The page of the preview version takes the marker, as in Name and place the page of another version.
-
The source. The API specification of the version is the source of truth. A feature that the specification does not carry stays out of the documentation until it does.
-
The API examples. Every API example on a page of the version uses the base URL of the version, such as
https://api.azion.com/v6. A page that holds for every version keeps the examples of the current version. -
A resource or a feature the version lacks. When a resource has no page in the version, its page declares only the versions it covers. The menu leaves the page out when the reader selects the preview version.
-
The notice of a gap. This is the one aside about a version. When the preview version lacks a resource or a feature that a page documents, the page carries one
:::noteaside where the gap applies. The aside says that the resource or the feature is not available in the preview version, names the version where it is, and carries no date:MDXThe aside leaves when the version gains the feature.
-
No dates. Never write when the version reaches General Availability or replaces the current version.
-
The name. Write the version as API and its number, such as API v6. A stage name can also name a Platform Resource, such as an environment named Preview. When a page must name the stage, such as the page about what changes in API v6, write “the preview stage”, so the reader never confuses the two.
Adding a version is a code change before it is a content change. The code declares every version a page can carry, and a page that declares any other version fails the build. It also sets which versions the select lists, and which versions are opt-in. A version that is declared but not listed builds its pages, but the select and the menu leave it out, and a reader reaches its pages only through a link. API v6 is declared, listed, and opt-in.
End support for a version
When a version reaches its end of life, its pages leave the documentation in one change, in US English and in Brazilian Portuguese:
- Remove every page of the version.
- Add a redirect for each removed permalink in the highest-numbered file of
apps/docs/redirects/en/andapps/docs/redirects/pt-br/. The redirect goes to the page thatcounterpartnames. A page withoutcounterpartredirects to the page of the same resource in a remaining version, or to its parent page. Never redirect to the documentation home. - Remove the version from the list of platform versions in the code. Remove it also from every
versionsandcounterpartfield in the navigation trees and the frontmatter. - Leave changelog entries and dated agreements as they are. They keep the version they shipped with, as Documentation terminology explains.