Skip to content

Commit c3a53ce

Browse files
fix links
1 parent 279c443 commit c3a53ce

File tree

10 files changed

+45
-45
lines changed

10 files changed

+45
-45
lines changed

docs/configure/site/versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Versions set in this file are surfaced to the user via `applies_to` tags.
1616
:::{include} /contribute/_snippets/tag-processing.md
1717
:::
1818

19-
See [](../../contribute/cumulative-docs.md) for more information.
19+
See [](/contribute/cumulative-docs/index.md) for more information.

docs/contribute/_snippets/docs-intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ elastic.co/docs uses our new build system, also known as "Docs V3", which uses a
22

33
Docs for {{stack}} 9.x, {{ece}} 4.x, and {{eck}} 3.x can all be found on this site. All unversioned products, such as {{ech}} and {{serverless-full}}, are also documented on elastic.co/docs.
44

5-
This documentation is **cumulative**. This means that a new set of docs is not published for every minor release. Instead, each page stays valid over time and incorporates version-specific changes directly within the content. [Learn how to write cumulative documentation](/contribute/cumulative-docs.md).
5+
This documentation is **cumulative**. This means that a new set of docs is not published for every minor release. Instead, each page stays valid over time and incorporates version-specific changes directly within the content. [Learn how to write cumulative documentation](/contribute/cumulative-docs/index.md).

docs/contribute/add-repo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The new docs repository needs to satisfy these requirements:
1717

1818
Follow these instructions to add a new repository to the docs.
1919

20-
:::::{stepper}
20+
:::::{stepper}
2121

2222
::::{step} Add the repo to docs-infra
2323

@@ -55,7 +55,7 @@ references:
5555
```
5656

5757
:::{tip}
58-
In this file, you can optionally specify custom branches to deploy docs from, depending on your preferred [branching strategy](branching-strategy.md). You might want to change your branching strategy so you can have more control over when content added for a specific release is published.
58+
In this file, you can optionally specify custom branches to deploy docs from, depending on your preferred [branching strategy](/contribute/branching-strategy.md). You might want to change your branching strategy so you can have more control over when content added for a specific release is published.
5959
:::
6060

6161
Then, edit the [`navigation.yml`](https://github.com/elastic/docs-builder/blob/main/config/navigation.yml) file to add the repository to the navigation. Refer to [navigation.yml](../configure/site/navigation.md) for more information.
@@ -98,5 +98,5 @@ For example, to add version 13.5 of yadda-docs:
9898
For a more comfortable local `docs-builder` experience, add the following line to the `.gitignore` file of the repo:
9999

100100
```
101-
docs/.artifacts
101+
docs/.artifacts
102102
```

docs/contribute/branching-strategy.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@ navigation_title: Choose a branching strategy
44

55
# Choose the docs branching strategy for a repository
66

7-
With Docs V3 (elastic.co/docs), a single branch is published per repository. This branch is set to `main` by default. This is known as the continuous deployment branching strategy. However, it is possible to instead publish a different branch, also known as the tagged branching strategy.
7+
With Docs V3 (elastic.co/docs), a single branch is published per repository. This branch is set to `main` by default. This is known as the continuous deployment branching strategy. However, it is possible to instead publish a different branch, also known as the tagged branching strategy.
88

99
On this page, you'll learn how to choose the right branching strategy for your repository, and how to change the branching strategy. You'll also learn about the workflows for working with each branching strategy.
1010

1111
## Why is `main` the default publication branch?
1212

1313
The main reasons for this choice are:
1414

15-
* With Docs V3, there is no longer a different version of each page for each minor release. Instead, the same page [covers all versions](cumulative-docs.md), and any changes are indicated throughout the content.
15+
* With Docs V3, there is no longer a different version of each page for each minor release. Instead, the same page [covers all versions](/contribute/cumulative-docs/index.md), and any changes are indicated throughout the content.
1616
* More and more products are released from `main` branches, making these branches the most up to date at any given time. This is especially true for {{serverless-full}} and {{ecloud}}.
1717

18-
18+
1919
## Why would we want to publish a different branch instead?
2020

2121
Publishing from the main branch isn’t the best option for all repositories.
2222

23-
* `main` can contain code and docs for unreleased versions that we don’t want to publish yet.
23+
* `main` can contain code and docs for unreleased versions that we don’t want to publish yet.
2424
* The versioning scheme and release cadence of the product associated with a repository can vary, and it can be inconsistent to have the docs associated with a certain version live in a different branch than the code.
2525

2626
If you choose this publication model for your repository AND that repository includes {{serverless-short}} or {{ecloud}} documentation, you will need to make sure that {{serverless-short}}- and {{ecloud}}-related changes are also backported to the branch that is publishing to the public docs site.
2727

28-
You **don't** need to change your branching strategy to enable writing docs about future versions. Review the [continuous deployment workflow](#workflow-1-default-continuous-deployment) and [](cumulative-docs.md) to learn more.
28+
You **don't** need to change your branching strategy to enable writing docs about future versions. Review the [continuous deployment workflow](#workflow-1-default-continuous-deployment) and [](/contribute/cumulative-docs/index.md) to learn more.
2929

30-
Note that regardless of the publication branch that is set, the documentation must still flag all changes introduced so far since the last major release. This is NOT an alternative to [writing docs cumulatively](cumulative-docs.md).
30+
Note that regardless of the publication branch that is set, the documentation must still flag all changes introduced so far since the last major release. This is NOT an alternative to [writing docs cumulatively](/contribute/cumulative-docs/index.md).
3131

3232
## How to change the published branch
3333

@@ -39,10 +39,10 @@ After it has been established that a repository should publish from a version br
3939

4040
1. [Add new triggers to the `docs-build` CI integration](/configure/content-sources.md#ci-configuration). Merge these changes to `main` or `master` and the intended version branches.
4141
2. Open a PR to trigger the CI integration and confirm that the docs build.
42-
3. Open a PR updating the [`assembler.yml`](https://github.com/elastic/docs-builder/blob/main/config/assembler.yml):
43-
* Specify which is the `current` branch for the repository. This branch is the branch from which docs are deployed to production at [elastic.co/docs](http://elastic.co/docs).
44-
* Specify which is the `next` branch for the repository. The branch defined as `next` publishes docs internally to [staging-website.elastic.co/docs](http://staging-website.elastic.co/docs)
45-
* Setting this branch to the next version branch in line is a good practice to preview docs change for an upcoming version.
42+
3. Open a PR updating the [`assembler.yml`](https://github.com/elastic/docs-builder/blob/main/config/assembler.yml):
43+
* Specify which is the `current` branch for the repository. This branch is the branch from which docs are deployed to production at [elastic.co/docs](http://elastic.co/docs).
44+
* Specify which is the `next` branch for the repository. The branch defined as `next` publishes docs internally to [staging-website.elastic.co/docs](http://staging-website.elastic.co/docs)
45+
* Setting this branch to the next version branch in line is a good practice to preview docs change for an upcoming version.
4646
* Otherwise, keeping it set to `main` is also an option since this is where the content is initially developed and merged. This is the default.
4747
4. In the assembler PR, add the `ci` label. After CI runs, confirm that the intended version branches are publishing to the link service. When links are being published as intended, they can be found at the following URL, where `repo` is your repo name and `branch` is your newly configured branch:
4848

@@ -58,12 +58,12 @@ After these steps are completed, the docs engineering team needs to release a ne
5858

5959
When you publish from specific version branches, you need to bump the version branch as part of the release process.
6060

61-
Add an action as part of that repo’s release process for the release manager to update this same assembler file and bump the `current` branch with each release, as appropriate. The `next` branch also needs to be bumped if it is not set to `main`.
61+
Add an action as part of that repo’s release process for the release manager to update this same assembler file and bump the `current` branch with each release, as appropriate. The `next` branch also needs to be bumped if it is not set to `main`.
6262

6363
When these releases happen, create a PR against the [`assembler.yml`](https://github.com/elastic/docs-builder/blob/main/config/assembler.yml) that defines the new `current` branch, to merge on release day.
6464

6565
:::{tip}
66-
Regardless of the branching strategy, you also need to update the current version in [`versions.yml`](https://github.com/elastic/docs-builder/blob/main/config/versions.yml) as part of your release process. This version number is used in documentation variables and drives our [dynamic version badge logic](/contribute/cumulative-docs.md#how-do-these-tags-behave-in-the-output).
66+
Regardless of the branching strategy, you also need to update the current version in [`versions.yml`](https://github.com/elastic/docs-builder/blob/main/config/versions.yml) as part of your release process. This version number is used in documentation variables and drives our [dynamic version badge logic](/contribute/cumulative-docs/index.md#how-do-these-tags-behave-in-the-output).
6767
:::
6868

6969

@@ -77,7 +77,7 @@ Initiate the changes by opening a PR against the `main` branch of the repo.
7777

7878
### How to write those changes [write-changes-cd]
7979

80-
In elastic.co/docs (Docs V3), we [write docs cumulatively](cumulative-docs.md) regardless of the branching strategy selected.
80+
In elastic.co/docs (Docs V3), we [write docs cumulatively](/contribute/cumulative-docs/index.md) regardless of the branching strategy selected.
8181

8282
### Merging and backporting [merge-backport-cd]
8383

@@ -86,8 +86,8 @@ When a repo publishes docs from its `main` branch, any merged changes are publis
8686
| | Case | Approach |
8787
| --- | --- | --- |
8888
| 1 | You are documenting changes for an unversioned product (typically Serverless or Elastic Cloud), and the changes should only go live when the corresponding code or feature is available to users. | The PR should be merged on or after the release date of the feature. |
89-
| 2 | You are documenting changes for a versioned product (any Stack components, ECE, ECK, etc.). | You have the choice between merging the PR as soon as it is approved, or merging it only on release day.<br><br>We have an automatic mechanism in place as part of the [cumulative docs strategy](cumulative-docs.md) that will show any changes published before its associated code or feature is available as `Planned`. |
90-
| 3 | You are documenting changes that apply to both versioned and unversioned products (typically a change that is being released for both Serverless and an upcoming Stack release). | The PR should only be merged on or after the release date of the feature in Serverless.<br><br>For versioned products, we have an automatic mechanism in place as part of the [cumulative docs strategy](cumulative-docs.md) that will show any changes published before its associated code or feature is available as `Planned`. |
89+
| 2 | You are documenting changes for a versioned product (any Stack components, ECE, ECK, etc.). | You have the choice between merging the PR as soon as it is approved, or merging it only on release day.<br><br>We have an automatic mechanism in place as part of the [cumulative docs strategy](/contribute/cumulative-docs/index.md) that will show any changes published before its associated code or feature is available as `Planned`. |
90+
| 3 | You are documenting changes that apply to both versioned and unversioned products (typically a change that is being released for both Serverless and an upcoming Stack release). | The PR should only be merged on or after the release date of the feature in Serverless.<br><br>For versioned products, we have an automatic mechanism in place as part of the [cumulative docs strategy](/contribute/cumulative-docs/index.md) that will show any changes published before its associated code or feature is available as `Planned`. |
9191

9292
When a repo is publishing docs from its `main` branch, no backporting is needed.
9393

@@ -97,15 +97,15 @@ If you don’t want to hold on too many PRs to publish on release day, merge the
9797

9898
## Workflow 2: Tagged
9999

100-
Learn how to make updates in the continuous deployment branching strategy, where the repo is publishing docs from a specific version branch.
100+
Learn how to make updates in the continuous deployment branching strategy, where the repo is publishing docs from a specific version branch.
101101

102102
### Where to make docs changes [make-changes-td]
103103

104104
Initiate the changes by opening a PR against the `main` branch of the repo, and backport the changes to the relevant version branches as detailed below.
105105

106106
### How to write those changes [write-changes-td]
107107

108-
In elastic.co/docs (Docs V3), we [write docs cumulatively](cumulative-docs.md) regardless of the branching strategy selected.
108+
In elastic.co/docs (Docs V3), we [write docs cumulatively](/contribute/cumulative-docs/index.md) regardless of the branching strategy selected.
109109

110110
### Merging and backporting [merge-backport-td]
111111

@@ -116,19 +116,19 @@ The changes must then be backported to their relevant version branches, and no f
116116
| | Case | Approach |
117117
| --- | --- | --- |
118118
| 1 | You are documenting changes for an unversioned product (typically Serverless or Elastic Cloud), the changes should go live when the corresponding code or feature is available to users. | The PR should be backported to the docs `current` branch, and any intermediate version branches that already exist between `current` and `main`. Merge the backport PR for `current` only when you’re sure the corresponding feature is released. |
119-
| 2 | You are documenting changes for a versioned product (any Stack components, ECE, ECK, etc.). | Backport the PR to the relevant version branch and to any intermediate version branch that already exists. The changes will go live whenever these branches become the `current` docs branch.<br><br>We have an automatic mechanism in place as part of the [cumulative docs strategy](cumulative-docs.md) that will show any changes published before its associated code or feature is available as `Planned`. |
120-
| 3 | You are documenting changes that apply to both versioned and unversioned products (typically a change that is being released for both Serverless and an upcoming Stack release). | The PR should be backported to the docs `current` branch, and any intermediate version branches that already exist between `current` and `main`. Merge the backport PR for `current` only when you’re sure the corresponding feature is released. <br><br>For versioned products, we have an automatic mechanism in place as part of the [cumulative docs strategy](cumulative-docs.md) that will show any changes published before its associated code or feature is available as `Planned`. |
119+
| 2 | You are documenting changes for a versioned product (any Stack components, ECE, ECK, etc.). | Backport the PR to the relevant version branch and to any intermediate version branch that already exists. The changes will go live whenever these branches become the `current` docs branch.<br><br>We have an automatic mechanism in place as part of the [cumulative docs strategy](/contribute/cumulative-docs/index.md) that will show any changes published before its associated code or feature is available as `Planned`. |
120+
| 3 | You are documenting changes that apply to both versioned and unversioned products (typically a change that is being released for both Serverless and an upcoming Stack release). | The PR should be backported to the docs `current` branch, and any intermediate version branches that already exist between `current` and `main`. Merge the backport PR for `current` only when you’re sure the corresponding feature is released. <br><br>For versioned products, we have an automatic mechanism in place as part of the [cumulative docs strategy](/contribute/cumulative-docs/index.md) that will show any changes published before its associated code or feature is available as `Planned`. |
121121

122122
#### Example [example-td]
123123

124124
For example, in a situation where 9.0, 9.1, and 9.2 are already released, and the 9.3 branch has already been cut:
125125

126-
* The branch set as `current` in the [`assembler.yml`](https://github.com/elastic/docs-builder/blob/main/config/assembler.yml) is 9.2.
127-
* The branch set as `next` (where the content development first happens), is `main`.
128-
* 9.4 changes are only done on the `main` branch.
129-
* 9.3 changes are done on the `main` branch and backported to the 9.3 branch.
130-
* 9.1 changes are done on the `main` branch and backported to the 9.3 and 9.2 branches. Since 9.2 is the current docs branch, no need to go further.
131-
* Serverless changes are done on the `main` branch. They are backported to the `current` docs branch and any intermediate branches. In this case: 9.3 and 9.2.
126+
* The branch set as `current` in the [`assembler.yml`](https://github.com/elastic/docs-builder/blob/main/config/assembler.yml) is 9.2.
127+
* The branch set as `next` (where the content development first happens), is `main`.
128+
* 9.4 changes are only done on the `main` branch.
129+
* 9.3 changes are done on the `main` branch and backported to the 9.3 branch.
130+
* 9.1 changes are done on the `main` branch and backported to the 9.3 and 9.2 branches. Since 9.2 is the current docs branch, no need to go further.
131+
* Serverless changes are done on the `main` branch. They are backported to the `current` docs branch and any intermediate branches. In this case: 9.3 and 9.2.
132132
* Changes not specific to a version are done on the `main` branch and backported to all branches down to the `current` docs branch. In this case: 9.3 and 9.2.
133133

134134
:::{note}

docs/contribute/cumulative-docs/best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Depending on what you're trying to communicate, you can use the following patter
1414
Instead, contributors should be able to add them anywhere they need, and the system should
1515
be in charge of rendering them clearly.
1616

17-
* Always put the newest version first when [listing multiple versions]().
17+
* Always put the newest version first when listing multiple versions.
1818

1919
% Reference: https://github.com/elastic/kibana/pull/229485/files#r2231876006
2020
* Avoid using version numbers in prose adjacent to `applies_to` badge to prevent

docs/contribute/cumulative-docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This page explains our cumulative documentation philosophy, paired with examples. Component guidance for reference purposes goes in syntax/applies.md.
55
-->
66

7-
In elastic.co/docs (Docs V3), we write docs cumulatively regardless of the [branching strategy](branching-strategy.md) selected.
7+
In elastic.co/docs (Docs V3), we write docs cumulatively regardless of the [branching strategy](/contribute/branching-strategy.md) selected.
88

99
**What does this mean?**
1010

@@ -123,7 +123,7 @@ For this case, no specific version tagging is necessary.
123123
**A new feature is added to {{serverless-short}} or {{ecloud}}. How do I tag it?**
124124
Cumulative documentation is not meant to replace release notes. If a feature becomes available in {{serverless-short}} and doesn’t have a particular lifecycle state to call out (preview, beta, deprecated…), it does not need specific tagging.
125125

126-
However, in this scenario, it is important to consider carefully [when the change is going to be published](branching-strategy.md).
126+
However, in this scenario, it is important to consider carefully [when the change is going to be published](/contribute/branching-strategy.md).
127127

128128
We do not do date-based tagging for unversioned products.
129129

0 commit comments

Comments
 (0)