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
The Beats documentation follows the tagging guidelines described in the [Docs HOWTO](https://github.com/elastic/docs/blob/master/README.asciidoc). However it extends these capabilities in a couple ways:
11
-
12
-
* The documentation makes extensive use of [AsciiDoc conditionals](https://docs.asciidoctor.org/asciidoc/latest/directives/conditionals/) to provide content that is reused across multiple books. This means that there might not be a single source file for each published HTML page. Some files are shared across multiple books, either as complete pages or snippets. For more details, refer to [Where to find the Beats docs source](#where-to-find-files).
13
-
* The documentation includes some files that are generated from YAML source or pieced together from content that lives in `_meta` directories under the code (for example, the module and exported fields documentation). For more details, refer to [Generated docs](#generated-docs).
14
-
15
-
16
-
## Where to find the Beats docs source [where-to-find-files]
17
-
18
-
Because the Beats documentation makes use of shared content, doc generation scripts, and componentization, the source files are located in several places:
19
-
20
-
| Documentation | Location of source files |
21
-
| --- | --- |
22
-
| Main docs for the Beat, including index files |`<beatname>/docs`|
23
-
| Shared docs and Beats Platform Reference |`libbeat/docs`|
24
-
| Processor docs |`docs` folders under processors in `libbeat/processors/`,`x-pack/<beatname>/processors/`, and `x-pack/libbeat/processors/`|
25
-
| Output docs |`docs` folders under outputs in `libbeat/outputs/`|
26
-
| Module docs |`_meta` folders under modules and datasets in `libbeat/module/`,`<beatname>/module/`, and `x-pack/<beatname>/module/`|
27
-
28
-
The [conf.yaml](https://github.com/elastic/docs/blob/master/conf.yaml) file in the `docs` repo shows all the resources used to build each book. This file is used to drive the classic docs build and is the source of truth for file locations.
29
-
30
-
::::{tip}
31
-
If you can’t find the source for a page you want to update, go to the published page at www.elastic.co and click the Edit link to navigate to the source.
32
-
::::
33
-
34
-
35
-
The Beats documentation build also has dependencies on the following files in the [docs](https://github.com/elastic/docs) repo:
36
-
37
-
*`shared/versions/stack/<version>.asciidoc`
38
-
*`shared/attributes.asciidoc`
8
+
# Contributing to the docs
39
9
10
+
The Beats documentation is written in Markdown and is built using [elastic/docs-builder](https://github.com/elastic/docs-builder). Most Markdown files should be edited directly, but some Markdown files are generated.
40
11
41
12
## Generated docs [generated-docs]
42
13
43
-
After updating `docs.asciidoc` files in `_meta` directories, you must run the doc collector scripts to regenerate the docs.
14
+
After updating `docs.md` files in `_meta` directories, you must run the doc collector scripts to regenerate the docs.
44
15
45
16
Make sure you [set up your Beats development environment](./index.md#setting-up-dev-environment) and use the correct Go version. The Go version is listed in the `version.asciidoc` file for the branch you want to update.
46
17
@@ -52,7 +23,6 @@ To run the docs collector scripts, change to the beats directory and run:
52
23
The `make update` command overwrites files in the `docs` directories **without warning**. If you accidentally update a generated file and run `make update`, your changes will be overwritten.
53
24
::::
54
25
55
-
56
26
To format your files, you might also need to run this command:
57
27
58
28
`make fmt`
@@ -61,24 +31,24 @@ The make command calls the following scripts to generate the docs:
0 commit comments