Skip to content

Commit d2aac67

Browse files
committed
more fixes
1 parent 0129f7f commit d2aac67

File tree

10 files changed

+84
-58
lines changed

10 files changed

+84
-58
lines changed

docs/_docset.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ subs:
1313
serverless-short: Serverless
1414
ece: "Elastic Cloud Enterprise"
1515
eck: "Elastic Cloud on Kubernetes"
16+
ech: "Elastic Cloud Hosted"
17+
serverless-full: "Elastic Cloud Serverless"
1618

1719
features:
1820
primary-nav: false
@@ -33,7 +35,6 @@ toc:
3335
- file: redirects.md
3436
- file: cumulative-docs.md
3537
- file: deployment-models.md
36-
- file: releasing.md
3738
- folder: migration
3839
children:
3940
- file: index.md
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
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).
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
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.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:::{caution}
2+
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).
7+
:::
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
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).
7+
:::

docs/contribute/deployment-models.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ Once it’s been established that a repository should publish from a version bra
3434
* 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).
3535
* 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)
3636
* 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).
4043

4144
## Workflow 1 (default): Make docs updates when the repo is publishing docs from `main`
4245

@@ -56,7 +59,7 @@ When a repo publishes docs from its `main` branch, any merged changes are publis
5659
| --- | --- | --- |
5760
| 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. |
5861
| 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`. |
6063

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

@@ -88,7 +91,7 @@ The changes must then be backported to their relevant version branches, and no f
8891
| --- | --- | --- |
8992
| 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. |
9093
| 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`. |
9295

9396
#### Example
9497

docs/contribute/index.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,23 @@ Whether you're a technical writer or you've only edited Elastic docs once or twi
1212

1313
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}}.
1414

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
2116
:::
2217

2318
### Contribute to elastic.co/guide
2419

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+
:::
2822

2923
* For **simple bug fixes and enhancements**: [Contribute on the web](on-the-web.md)
3024
* For **complex or multi-page updates**: See the [legacy documentation build guide](https://github.com/elastic/docs?tab=readme-ov-file#building-documentation)
3125

3226
### Contribute elastic.co/docs
3327

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+
:::
3930

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)
4132
* For **complex or multi-page updates**: [Contribute locally](locally.md)
4233

4334
#### Branches in V3

docs/contribute/locally.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This guide uses the first option. If you'd like to clone the repository and buil
4949

5050
2. **Run docs-builder from a docs folder**
5151

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):
5353

5454
```sh
5555
docs-builder serve
@@ -83,7 +83,7 @@ If you get a `Permission denied` error, make sure that you aren't trying to run
8383

8484
2. **Run docs-builder from a docs folder**
8585

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):
8787

8888
```sh
8989
docs-builder serve
@@ -93,19 +93,19 @@ If you get a `Permission denied` error, make sure that you aren't trying to run
9393
::::
9494

9595

96-
## Clone a content repository [#step-two]
96+
## Step 2: Clone a content repository [#step-two]
9797

9898
:::{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.
100100
:::
101101

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:
103103

104104
```sh
105105
git clone https://github.com/elastic/docs-content.git
106106
```
107107

108-
## Serve the documentation [#step-three]
108+
## Step 3: Serve the documentation [#step-three]
109109

110110
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.
111111

@@ -122,7 +122,7 @@ cd docs-content
122122

123123
:::::{step} Run docs-builder
124124

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`.
126126

127127
For example:
128128

@@ -145,22 +145,27 @@ docs-builder serve -p .\migration-test
145145
:::::
146146

147147
:::::{step} Open the documentation in the browser
148-
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).
149149
:::::
150150
::::::
151151

152152
## Step 4: Write the docs [#step-four]
153153

154154
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.
155155

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+
156161
## Step 5: Push your changes [#step-five]
157162

158163
After you've made your changes locally:
159164

160165
* [Push your commits](https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository)
161166
* [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)
162167

163-
## Step 5: View the preview
168+
## Step 6: View the preview
164169

165170
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).
166171

0 commit comments

Comments
 (0)