You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elastic.co/docs uses our new build system, also known as "Docs V3", which uses an extended version of markdown as its markup language. Refer to our [syntax guide](syntax.md) to learn more.
2
+
3
+
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.
4
+
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](cumulative-docs.md).
To contribute to elastic.co/guide, you must work with our [legacy documentation build system](https://github.com/elastic/docs). This system uses ASCIIDoc as its markup language.
2
+
3
+
Docs for {{stack}} 8.x, {{ece}} 3.x, and {{eck}} 2.x can all be found on this site.
Some repositories use a [tagged deployment model](deployment-models.md), which means that their docs are published from a branch that is not `main` or `master`. In these cases, documentation changes need to be made to `main` or `master`, and then backported to the relevant branches.
3
+
4
+
For detailed backporting guidance, refer to the example in [Choose the docs deployment model for a repository](/contribute/deployment-models.md#workflow-2-make-docs-updates-when-the-repo-is-publishing-docs-from-a-version-branch).
5
+
6
+
To determine the published branches for a repository, find the repository in [assembler.yml](https://github.com/elastic/docs-builder/blob/main/src/tooling/docs-assembler/assembler.yml).
The way that you contribute to the docs depends on the product version.
2
+
3
+
For a list of versions covered on [elastic.co/docs](https://www.elastic.co/docs), refer to [Find docs for your product version](/get-started/versioning-availability.md#find-docs-for-your-product-version). Versions prior to the versions listed on that page are documented on our legacy system, [elastic.co/guide](https://www.elastic.co/guide).
4
+
5
+
:::{tip}
6
+
Unversioned products, such as {{ech}} and {{serverless-full}}, are documented on [elastic.co/docs](https://www.elastic.co/docs).
Copy file name to clipboardExpand all lines: docs/contribute/deployment-models.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,12 @@ Once it’s been established that a repository should publish from a version bra
34
34
* 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).
35
35
* 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)
36
36
* Setting this branch to the next version branch in line is a good practice to preview docs change for an upcoming version.
37
-
* 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.
38
-
2. 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.
39
-
3. When these releases happen, create a PR against this file that defines the new `current` branch, to merge on release day.
37
+
* 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.
38
+
2.[Add new triggers to the `docs-build` CI integration](/configure/deployment-models.md#ci-configuration).
39
+
3. 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.
40
+
4. When these releases happen, create a PR against this file that defines the new `current` branch, to merge on release day.
41
+
42
+
For more information, refer to [](/configure/deployment-models.md).
40
43
41
44
## Workflow 1 (default): Make docs updates when the repo is publishing docs from `main`
42
45
@@ -56,7 +59,7 @@ When a repo publishes docs from its `main` branch, any merged changes are publis
56
59
| --- | --- | --- |
57
60
| 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. |
58
61
| 2 | You are documenting changes for a versioned product (any Stack components, ECE, ECK, etc.).<br><br>We have an automatic mechanism in place as part of the [cumulative docs strategy](#write-cumulative-documentation) that will show any changes published before its associated code or feature is available as `Planned`. | You have the choice between merging the PR as soon as it is approved, or merging it only on release day. |
59
-
| 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), you are in the same situation as Case 1. | The PR should only be merged on or after the release date of the feature in Serverless. Note that for versioned products, we have an automatic mechanism in place as part of the [cumulative docs strategy](#write-cumulative-documentation) that will show any changes published before its associated code or feature is available as `Planned`. |
62
+
|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), you are in the same situation as Case 1. | The PR should only be merged on or after the release date of the feature in Serverless. Note that for versioned products, we have an automatic mechanism in place as part of the [cumulative docs strategy](#write-cumulative-documentation) that will show any changes published before its associated code or feature is available as `Planned`. |
60
63
61
64
When a repo is publishing docs from its `main` branch, no backporting is needed.
62
65
@@ -88,7 +91,7 @@ The changes must then be backported to their relevant version branches, and no f
88
91
| --- | --- | --- |
89
92
| 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. |
90
93
| 2 | You are documenting changes for a versioned product (any Stack components, ECE, ECK, etc.).<br><br>We have an automatic mechanism in place as part of the [cumulative docs strategy](#write-cumulative-documentation) that will show any changes published before its associated code or feature is available as “Planned”. | 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. |
91
-
| 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), you are in the same situation as Case 1. | 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>Note that for versioned products, we have an automatic mechanism in place as part of the [cumulative docs strategy](#write-cumulative-documentation) that will show any changes published before its associated code or feature is available as `Planned`. |
94
+
| 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), you are in the same situation as Case 1. | 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>Note that for versioned products, we have an automatic mechanism in place as part of the [cumulative docs strategy](#write-cumulative-documentation) that will show any changes published before its associated code or feature is available as `Planned`. |
Copy file name to clipboardExpand all lines: docs/contribute/index.md
+6-15Lines changed: 6 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,32 +12,23 @@ Whether you're a technical writer or you've only edited Elastic docs once or twi
12
12
13
13
In April 2025, we released our new documentation site. This site includes documentation for our latest product versions, including {{stack}} 9.0+ and {{serverless-full}}.
14
14
15
-
The way that you contribute to the docs depends on the product version.
16
-
17
-
For a list of versions covered on [elastic.co/docs](https://www.elastic.co/docs), refer to [Find docs for your product version](/get-started/versioning-availability.md#find-docs-for-your-product-version). Versions previous to the versions listed on that page are documented on our legacy system, [elastic.co/guide](https://www.elastic.co/guide).
18
-
19
-
:::{tip}
20
-
Unversioned products, such as {{ech}} and {{serverless-full}}, are documented on [elastic.co/docs](https://www.elastic.co/docs).
15
+
:::{include} _snippets/two-systems.md
21
16
:::
22
17
23
18
### Contribute to elastic.co/guide
24
19
25
-
To contribute to elastic.co/guide, you must work with our [legacy documentation build system](https://github.com/elastic/docs). This system uses ASCIIDoc as its markup language.
26
-
27
-
Docs for {{stack}} 8.x, {{ece}} 3.x, and {{eck}} 2.x can all be found on this site.
20
+
:::{include} _snippets/guide-intro.md
21
+
:::
28
22
29
23
* For **simple bug fixes and enhancements**: [Contribute on the web](on-the-web.md)
30
24
* For **complex or multi-page updates**: See the [legacy documentation build guide](https://github.com/elastic/docs?tab=readme-ov-file#building-documentation)
31
25
32
26
### Contribute elastic.co/docs
33
27
34
-
elastic.co/docs uses our new build system, also known as "Docs V3", which uses an extended version of markdown as its markup language. Refer to our [syntax guide](syntax.md) to learn more.
35
-
36
-
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.
37
-
38
-
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](cumulative-docs.md).
28
+
:::{include} _snippets/docs-intro.md
29
+
:::
39
30
40
-
* For **simple bug fixes and enhancements**: [contribute on the web](on-the-web.md)
31
+
* For **simple bug fixes and enhancements**: [Contribute on the web](on-the-web.md)
41
32
* For **complex or multi-page updates**: [Contribute locally](locally.md)
Copy file name to clipboardExpand all lines: docs/contribute/locally.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ This guide uses the first option. If you'd like to clone the repository and buil
49
49
50
50
2.**Run docs-builder from a docs folder**
51
51
52
-
Use the `serve` command from any docs folder to start serving the documentation at http://localhost:3000:
52
+
Use the `serve` command from any docs folder to start serving the documentation at [http://localhost:3000](http://localhost:3000):
53
53
54
54
```sh
55
55
docs-builder serve
@@ -83,7 +83,7 @@ If you get a `Permission denied` error, make sure that you aren't trying to run
83
83
84
84
2.**Run docs-builder from a docs folder**
85
85
86
-
Use the `serve` command from any docs folder to start serving the documentation at http://localhost:3000:
86
+
Use the `serve` command from any docs folder to start serving the documentation at [http://localhost:3000](http://localhost:3000):
87
87
88
88
```sh
89
89
docs-builder serve
@@ -93,19 +93,19 @@ If you get a `Permission denied` error, make sure that you aren't trying to run
93
93
::::
94
94
95
95
96
-
## Clone a content repository [#step-two]
96
+
## Step 2: Clone a content repository [#step-two]
97
97
98
98
:::{tip}
99
-
Documentation lives in many repositories across Elastic. If you're unsure which repository to clone, you can use the "Edit this page" link on any documentation page to determine where the source file lives.
99
+
Documentation is hosted in many repositories across Elastic. If you're unsure which repository to clone, you can use the **Edit this page** link on any documentation page to determine where the source file is hosted.
100
100
:::
101
101
102
-
In this guide, we'll clone the [`docs-content`](https://github.com/elastic/docs-content) repository. The `docs-content` repository is the home for narrative documentation at Elastic. Clone this repo to a directory of your choice:
102
+
In this guide, we'll clone the [`docs-content`](https://github.com/elastic/docs-content) repository. The `docs-content` repository is the home for most narrative documentation at Elastic. Clone this repo to a directory of your choice:
Static-site generators like docs-builder can serve docs locally. This means you can edit the source and see the result in the browser in real time.
111
111
@@ -122,7 +122,7 @@ cd docs-content
122
122
123
123
:::::{step} Run docs-builder
124
124
125
-
Run the `docs-builder` binary with the `serve` command to build and serve the content set to http://localhost:3000. If necessary, specify the path to the `docset.yml` file that you want to build with `-p`.
125
+
Run the `docs-builder` binary with the `serve` command to build and serve the content set to [http://localhost:3000](http://localhost:3000). If necessary, specify the path to the `docset.yml` file that you want to build with `-p`.
Now you should be able to view the documentation locally by navigating to http://localhost:3000.
148
+
Now you should be able to view the documentation locally by navigating to [http://localhost:3000](http://localhost:3000).
149
149
:::::
150
150
::::::
151
151
152
152
## Step 4: Write the docs [#step-four]
153
153
154
154
We write docs in Markdown. Refer to our [syntax](../syntax/index.md) guide for the flavor of Markdown that we support and all of our custom directives that enable you to add a little extra pizzazz to your docs.
155
155
156
+
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](cumulative-docs.md).
157
+
158
+
:::{include} tagged-warning.md
159
+
:::
160
+
156
161
## Step 5: Push your changes [#step-five]
157
162
158
163
After you've made your changes locally:
159
164
160
165
*[Push your commits](https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository)
161
166
*[Open a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
162
167
163
-
## Step 5: View the preview
168
+
## Step 6: View the preview
164
169
165
170
You can open a docs preview from the Deployments page of the repository. For example, [https://github.com/elastic/docs-content/deployments](https://github.com/elastic/docs-content/deployments).
0 commit comments