Skip to content

Commit 24f351b

Browse files
[9.0] [docs] Fix image paths for docs-assembler (#218344) (#218359)
# Backport This will backport the following commits from `main` to `9.0`: - [[docs] Fix image paths for docs-assembler (#218344)](#218344) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Colleen McGinnis","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-15T21:59:57Z","message":"[docs] Fix image paths for docs-assembler (#218344)\n\nFixes image paths to work with docs-assembler.\n\nNotes for the reviewer:\n* I was not able to get images in reference, extend, or release-notes to\nwork using the `:::{image}` syntax because it seems to resolve\ndifferently than the Markdown `![]()` syntax. We should address this in\ndocs-builder, but in order to get images working as soon as possible,\nI've used Markdown syntax and left us a `TO DO` in a code comment to add\nback the `screenshot` class where applicable.\n* Can you please add the appropriate labels needed for backporting?","sha":"907cd5904b3328d5c89da31fb19c0528a6acdd50","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","v9.0.0","docs","documentation","backport:version","v9.1.0","v9.0.1"],"title":"[docs] Fix image paths for docs-assembler","number":218344,"url":"https://github.com/elastic/kibana/pull/218344","mergeCommit":{"message":"[docs] Fix image paths for docs-assembler (#218344)\n\nFixes image paths to work with docs-assembler.\n\nNotes for the reviewer:\n* I was not able to get images in reference, extend, or release-notes to\nwork using the `:::{image}` syntax because it seems to resolve\ndifferently than the Markdown `![]()` syntax. We should address this in\ndocs-builder, but in order to get images working as soon as possible,\nI've used Markdown syntax and left us a `TO DO` in a code comment to add\nback the `screenshot` class where applicable.\n* Can you please add the appropriate labels needed for backporting?","sha":"907cd5904b3328d5c89da31fb19c0528a6acdd50"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218344","number":218344,"mergeCommit":{"message":"[docs] Fix image paths for docs-assembler (#218344)\n\nFixes image paths to work with docs-assembler.\n\nNotes for the reviewer:\n* I was not able to get images in reference, extend, or release-notes to\nwork using the `:::{image}` syntax because it seems to resolve\ndifferently than the Markdown `![]()` syntax. We should address this in\ndocs-builder, but in order to get images working as soon as possible,\nI've used Markdown syntax and left us a `TO DO` in a code comment to add\nback the `screenshot` class where applicable.\n* Can you please add the appropriate labels needed for backporting?","sha":"907cd5904b3328d5c89da31fb19c0528a6acdd50"}}]}] BACKPORT--> Co-authored-by: Colleen McGinnis <[email protected]>
1 parent b0f9319 commit 24f351b

34 files changed

+227
-481
lines changed

docs/extend/interpreting-ci-failures.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ Clicking the link next to the check in the conversation tab of a pull request wi
2121

2222
To view the results of a job execution in Buildkite, either click the link in the comment left by `@elasticmachine` or search for the `kibana-ci` check in the list at the bottom of the PR. This link will take you to the top-level page for the specific job execution that failed.
2323

24-
:::{image} images/job_view.png
25-
:alt: Buildkite pipeline view showing a few test failures
26-
:::
24+
![Buildkite pipeline view showing a few test failures](images/job_view.png)
2725

2826
1. **Git commit:** the git commit that caused this build.
2927
2. **Test Results:** A link to the test results screen, and shortcuts to the logs and jobs of the failed tests. Functional tests capture and store the log output from each specific test, and make it visible at these links.
@@ -34,9 +32,7 @@ To view the results of a job execution in Buildkite, either click the link in th
3432

3533
The logs in Pipeline Steps contain `Info` level logging. To debug Functional UI tests it’s usually helpful to see the debug logging. You can go to the test failure details by clicking on the **logs** (1).
3634

37-
:::{image} images/test_results.png
38-
:alt: Buildkite build screenshot
39-
:::
35+
![Buildkite build screenshot](images/test_results.png)
4036

4137
Looking at the failure, we first look at the Error and stack trace. In the example below, this test failed to find an element within the timeout; `Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createSpace"])`
4238

@@ -69,15 +65,11 @@ Just above the `✖ fail:` line, there is a line `info Taking screenshot ...` wh
6965

7066
Clicking the `[Download]` link for that png shows this image:
7167

72-
:::{image} images/a11y_screenshot.png
73-
:alt: Kibana spaces page meets a11y validations a11y test for click on create space page.png
74-
:::
68+
![Kibana spaces page meets a11y validations a11y test for click on create space page.png](images/a11y_screenshot.png)
7569

7670
If we use a running Kibana instance and inspect elements, we find that the `createSpace` data-test-subj attribute is on this button in the Spaces page in Stack Management:
7771

78-
:::{image} images/inspect_element.png
79-
:alt: Kibana screenshot of Spaces page with developer tools open
80-
:::
72+
![Kibana screenshot of Spaces page with developer tools open](images/inspect_element.png)
8173

8274
We know the test was not on the correct page to find the element to click. We see in the debug log the repeated attempts to find the element. If we scroll to the start of those repeated attempts, we see that the first thing the test did was this attempt to click on the `createSpace` element.
8375

docs/extend/kibana-debugging.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ With an application as varied and complex as Kibana has become, it’s not pract
2121

2222
For example, say you implement a brand new feature, plugin or service but don’t quite know how it will impact Kibana’s performance as a whole. APM allows us to not only spot that something is slow, but also hints at why it might be performing slowly. For example, if a function is slow on specific types of inputs, we can see where the time is spent by viewing the trace for that function call in the APM UI.
2323

24-
:::{image} images/apm_example_trace.png
25-
:alt: apm example trace
26-
:::
24+
![apm example trace](images/apm_example_trace.png)
2725

2826
The net of metrics captured by APM are both a wide and deep because the entire application is instrumented at runtime and we simply take a sample of these metrics. This means that we don’t have to know what we need to measure ahead of time, we’ll instead just get (most) of the data we’re likely going to need by default.
2927

@@ -103,9 +101,7 @@ The easiest and recommended way of running Kibana with the APM agent locally is
103101
104102
9. After Kibana starts up, navigate to the APM app, where you should see some transactions.
105103
106-
:::{image} images/apm_ui_transactions.png
107-
:alt: apm ui transactions
108-
:::
104+
![apm ui transactions](images/apm_ui_transactions.png)
109105
110106
You can now continue doing what you want to in Kibana (e.g. install sample data sets, issue queries in dashboards, build new visualizations etc). Once you’re finished, you can stop Kibana normally, then stop the {{es}} and APM servers in the apm-integration-testing clone with the following script:
111107

docs/extend/kibana-expressions-plugin.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ filters
3434
[/source]
3535
```
3636

37-
:::{image} images/expressions_plugin.png
38-
:alt: Rendered metric
39-
:class: screenshot
40-
:::
37+
% TO DO: Use `:class: screenshot`
38+
![Rendered metric](images/expressions_plugin.png)
4139

4240

docs/extend/sharing-saved-objects.md

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ From 8.7.0, as a step towards *zero downtime upgrades*, plugins are no longer al
1313

1414
[Saved objects](/extend/saved-objects-service.md) (hereinafter "objects") are used to store all sorts of things in {{kib}}, from Dashboards to Index Patterns to Machine Learning Jobs. The effort to make objects shareable can be summarized in a single picture:
1515

16-
:::{image} images/sharing-saved-objects-overview.png
17-
:alt: Sharing Saved Objects overview
18-
:::
16+
![Sharing Saved Objects overview](images/sharing-saved-objects-overview.png)
1917

2018
Each plugin can register different object types to be used in {{kib}}. Historically, objects could be *isolated* (existing in a single [space](docs-content://deploy-manage/manage-spaces.md)) or *global* (existing in all spaces), there was no in-between. As of the 7.12 release, {{kib}} now supports two additional types of objects:
2119

@@ -57,9 +55,7 @@ External plugins can also convert their objects, but [they don’t have to do so
5755

5856
If you’re still reading this page, you’re probably developing a {{kib}} plugin that registers an object type, and you want to know what steps you need to take to prepare for the 8.0 release and mitigate any breaking changes! Depending on how you are using saved objects, you may need to take up to 5 steps, which are detailed in separate sections below. Refer to this flowchart:
5957

60-
:::{image} images/sharing-saved-objects-phase-1-dev-flowchart.png
61-
:alt: Sharing Saved Objects phase 1 - developer flowchart
62-
:::
58+
![Sharing Saved Objects phase 1 - developer flowchart](images/sharing-saved-objects-phase-1-dev-flowchart.png)
6359

6460
::::{tip}
6561
There is a proof-of-concept (POC) pull request to demonstrate these changes. It first adds a simple test plugin that allows users to create and view notes. Then, it goes through the steps of the flowchart to convert the isolated "note" objects to become share-capable. As you read this guide, you can [follow along in the POC](https://github.com/elastic/kibana/pull/107256) to see exactly how to take these steps.
@@ -81,9 +77,7 @@ If you answered "Yes" to [Question 1](#sharing-saved-objects-q1), you need to ma
8177

8278
The image below shows two different examples of object links from a "case" object to an "action" object. The top shows the incorrect way to link to another object, and the bottom shows the correct way.
8379

84-
:::{image} images/sharing-saved-objects-step-1.png
85-
:alt: Sharing Saved Objects step 1
86-
:::
80+
![Sharing Saved Objects step 1](images/sharing-saved-objects-step-1.png)
8781

8882
If your objects *do not* use the root-level `references` field, you’ll need to [add a migration](/extend/saved-objects-service.md#saved-objects-service-writing-migrations) *before the 8.0 release* to fix that. Here’s a migration function for the example above:
8983

@@ -124,9 +118,7 @@ Reminder, don’t forget to add unit tests and integration tests!
124118
[TBC: QUOTE]
125119
A deep link is a URL to a page that shows a specific object. End-users may bookmark these URLs or schedule reports with them, so it is critical to ensure that these URLs continue working. The image below shows an example of a deep link to a Canvas workpad object:
126120

127-
:::{image} images/sharing-saved-objects-q2.png
128-
:alt: Sharing Saved Objects deep link example
129-
:::
121+
![Sharing Saved Objects deep link example](images/sharing-saved-objects-q2.png)
130122

131123
Note that some URLs may contain [deep links to multiple objects](#sharing-saved-objects-faq-multiple-deep-link-objects), for example, a Dashboard *and* a filter for an Index Pattern.
132124

@@ -180,9 +172,7 @@ The Spaces plugin API exposes React components and functions that you should use
180172

181173
Your page should change [according to the outcome](#sharing-saved-objects-faq-resolve-outcomes):
182174

183-
:::{image} images/sharing-saved-objects-step-3.png
184-
:alt: Sharing Saved Objects resolve outcomes overview
185-
:::
175+
![Sharing Saved Objects resolve outcomes overview](images/sharing-saved-objects-step-3.png)
186176

187177
::::{tip}
188178
See an example of this in [step 3 of the POC](https://github.com/elastic/kibana/pull/107256#user-content-example-steps)!
@@ -309,9 +299,7 @@ The previous steps can be backported to the 7.x branch, but this step — th
309299

310300
When you register your object, you need to change the `namespaceType` and also add a `convertToMultiNamespaceTypeVersion` field. This special field will trigger the actual conversion that will take place during the Core migration upgrade process when a user installs the Kibana 8.0 release:
311301

312-
:::{image} images/sharing-saved-objects-step-4.png
313-
:alt: Sharing Saved Objects conversion code
314-
:::
302+
![Sharing Saved Objects conversion code](images/sharing-saved-objects-step-4.png)
315303

316304
::::{tip}
317305
See an example of this in [step 4 of the POC](https://github.com/elastic/kibana/pull/107256#user-content-example-steps)!
@@ -339,9 +327,7 @@ If you answered "Yes" to [Question 3](#sharing-saved-objects-q3), you need to ta
339327

340328
To mitigate this, you need to add a "no-op" ESO migration that will be applied immediately after the object is converted during the 8.0 upgrade process. This will decrypt the object using its old ID and then re-encrypt it using its new ID:
341329

342-
:::{image} images/sharing-saved-objects-step-5.png
343-
:alt: Sharing Saved Objects ESO migration
344-
:::
330+
![Sharing Saved Objects ESO migration](images/sharing-saved-objects-step-5.png)
345331

346332
::::{note}
347333
Reminder, dont forget to add unit tests and integration tests!
@@ -354,18 +340,14 @@ Reminder, don’t forget to add unit tests and integration tests!
354340

355341
This section covers switching a share-capable object type into a shareable one *or* creating a new shareable saved object type. Refer to this flowchart:
356342

357-
:::{image} images/sharing-saved-objects-phase-2-dev-flowchart.png
358-
:alt: Sharing Saved Objects phase 2 - developer flowchart
359-
:::
343+
![Sharing Saved Objects phase 2 - developer flowchart](images/sharing-saved-objects-phase-2-dev-flowchart.png)
360344

361345
### Step 6 [sharing-saved-objects-step-6]
362346

363347
[TBC: QUOTE]
364348
When you register your object, you need to set the proper `namespaceType`. If you have an existing object type that is "share-capable", you can simply change it:
365349

366-
:::{image} images/sharing-saved-objects-step-6.png
367-
:alt: Sharing Saved Objects registration (shareable)
368-
:::
350+
![Sharing Saved Objects registration (shareable)](images/sharing-saved-objects-step-6.png)
369351

370352

371353
### Step 7 [sharing-saved-objects-step-7]
@@ -388,9 +370,7 @@ const warningMessage =
388370

389371
The [Data Views page](docs-content://explore-analyze/find-and-organize/data-views.md) in [Stack Management](docs-content://deploy-manage/index.md) uses a [similar approach](https://github.com/elastic/kibana/blob/master/src/platform/plugins/shared/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx) to show a warning in its delete confirmation modal:
390372

391-
:::{image} images/sharing-saved-objects-step-7.png
392-
:alt: Sharing Saved Objects deletion warning
393-
:::
373+
![Sharing Saved Objects deletion warning](images/sharing-saved-objects-step-7.png)
394374

395375

396376
### Step 8 [sharing-saved-objects-step-8]
@@ -490,15 +470,11 @@ A developer can easily flip a switch to make a share-capable object into a share
490470

491471
This is because of how isolated objects are serialized to raw Elasticsearch documents. Each raw document ID today contains its space ID (*namespace*) as a prefix. When objects are copied or imported to other spaces, they keep the same object ID, they just have a different prefix when they are serialized to Elasticsearch. This has resulted in a situation where many Kibana installations have saved objects in different spaces with the same object ID:
492472

493-
:::{image} images/sharing-saved-objects-faq-changing-object-ids-1.png
494-
:alt: Sharing Saved Objects object ID diagram (before conversion)
495-
:::
473+
![Sharing Saved Objects object ID diagram (before conversion)](images/sharing-saved-objects-faq-changing-object-ids-1.png)
496474

497475
Once an object is converted, we need to remove this prefix. Because of limitations with our migration process, we cannot actively check if this would result in a conflict. Therefore, we decided to pre-emptively regenerate the object ID for every object in a non-Default space to ensure that every object ID becomes globally unique:
498476

499-
:::{image} images/sharing-saved-objects-faq-changing-object-ids-2.png
500-
:alt: Sharing Saved Objects object ID diagram (after conversion)
501-
:::
477+
![Sharing Saved Objects object ID diagram (after conversion)](images/sharing-saved-objects-faq-changing-object-ids-2.png)
502478

503479

504480
### 3. What if one page has deep links to multiple objects? [sharing-saved-objects-faq-multiple-deep-link-objects]
@@ -510,15 +486,11 @@ As mentioned in [Question 2](#sharing-saved-objects-q2), some URLs may contain m
510486

511487
* Embeddables should use `spacesApi.ui.components.getEmbeddableLegacyUrlConflict` to render conflict errors:
512488

513-
:::{image} images/sharing-saved-objects-faq-multiple-deep-link-objects-1.png
514-
:alt: Sharing Saved Objects embeddable legacy URL conflict
515-
:::
489+
![Sharing Saved Objects embeddable legacy URL conflict](images/sharing-saved-objects-faq-multiple-deep-link-objects-1.png)
516490

517491
Viewing details shows the user how to disable the alias and fix the problem using the [_disable_legacy_url_aliases API](https://www.elastic.co/docs/api/doc/kibana/v8/group/endpoint-spaces):
518492

519-
:::{image} images/sharing-saved-objects-faq-multiple-deep-link-objects-2.png
520-
:alt: Sharing Saved Objects embeddable legacy URL conflict (showing details)
521-
:::
493+
![Sharing Saved Objects embeddable legacy URL conflict (showing details)](images/sharing-saved-objects-faq-multiple-deep-link-objects-2.png)
522494

523495
* If the secondary object is resolved by an external service (such as the index pattern service), the service should simply make the full outcome available to consumers.
524496

@@ -545,29 +517,23 @@ The `resolve()` function checks both if an object with the given ID exists, *and
545517

546518
When you resolve an object with its current ID, the outcome is an `'exactMatch'`:
547519

548-
:::{image} images/sharing-saved-objects-faq-resolve-outcomes-1.png
549-
:alt: Sharing Saved Objects resolve outcome 1 (exactMatch)
550-
:::
520+
![Sharing Saved Objects resolve outcome 1 (exactMatch)](images/sharing-saved-objects-faq-resolve-outcomes-1.png)
551521

552522
This can happen in the Default space *and* in non-Default spaces.
553523

554524
**Outcome 2**
555525

556526
When you resolve an object with its old ID (the ID of its alias), the outcome is an `'aliasMatch'`:
557527

558-
:::{image} images/sharing-saved-objects-faq-resolve-outcomes-2.png
559-
:alt: Sharing Saved Objects resolve outcome 2 (aliasMatch)
560-
:::
528+
![Sharing Saved Objects resolve outcome 2 (aliasMatch)](images/sharing-saved-objects-faq-resolve-outcomes-2.png)
561529

562530
This outcome can only happen in non-Default spaces.
563531

564532
**Outcome 3**
565533

566534
The third outcome is an edge case that is a combination of the others. If you resolve an object ID and two objects are found — one as an exact match, the other as an alias match — the outcome is a `'conflict'`:
567535

568-
:::{image} images/sharing-saved-objects-faq-resolve-outcomes-3.png
569-
:alt: Sharing Saved Objects resolve outcome 3 (conflict)
570-
:::
536+
![Sharing Saved Objects resolve outcome 3 (conflict)](images/sharing-saved-objects-faq-resolve-outcomes-3.png)
571537

572538
We actually have controls in place to prevent this scenario from happening when you share, import, or copy objects. However, this scenario *could* still happen in a few different situations, if objects are created a certain way or if a user tampers with an object’s raw ES document. Since we can’t 100% rule out this scenario, we must handle it gracefully, but we do expect this will be a rare occurrence.
573539

docs/reference/advanced-settings.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ The `Advanced Settings` {{kib}} privilege is required to access **Advanced Setti
1919

2020
When you have insufficient privileges to edit advanced settings, the edit options are not visible, and the following indicator is displayed:
2121

22-
:::{image} images/settings-read-only-badge.png
23-
:alt: Example of Advanced Settings Management's read only access indicator in Kibana's header
24-
:class: screenshot
25-
:::
22+
% TO DO: Use `:class: screenshot`
23+
![Example of Advanced Settings Management's read only access indicator in Kibana's header](images/settings-read-only-badge.png)
2624

2725
To add the privilege, go to the **Roles** management page using the navigation menu or the [global search field](docs-content://get-started/the-stack.md#kibana-navigation-search).
2826

docs/reference/connectors-kibana.md

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ Some connector types are paid commercial features, while others are free. For a
4646

4747
Rules use connectors to route actions to different destinations like log files, ticketing systems, and messaging tools. While each {{kib}} app can offer their own types of rules, they typically share connectors. **{{stack-manage-app}} > {{connectors-ui}}** offers a central place to view and manage all the connectors in the current space.
4848

49-
:::{image} images/connector-listing.png
50-
:alt: Example connector listing in the {{rules-ui}} UI
51-
:class: screenshot
52-
:::
49+
% TO DO: Use `:class: screenshot`
50+
![Example connector listing in the {{rules-ui}} UI](images/connector-listing.png)
5351

5452

5553
## Required permissions [_required_permissions_2]
@@ -66,17 +64,13 @@ Use the [action configuration settings](/reference/configuration-reference/alert
6664

6765
In **{{stack-manage-app}} > {{connectors-ui}}**, you can find a list of the connectors in the current space. You can use the search bar to find specific connectors by name and type. The **Type** dropdown also enables you to filter to a subset of connector types.
6866

69-
:::{image} images/connector-filter-by-type.png
70-
:alt: Filtering the connector list by types of connectors
71-
:class: screenshot
72-
:::
67+
% TO DO: Use `:class: screenshot`
68+
![Filtering the connector list by types of connectors](images/connector-filter-by-type.png)
7369

7470
You can delete individual connectors using the trash icon. Alternatively, select multiple connectors and delete them in bulk using the **Delete** button.
7571

76-
:::{image} images/connector-delete.png
77-
:alt: Deleting connectors individually or in bulk
78-
:class: screenshot
79-
:::
72+
% TO DO: Use `:class: screenshot`
73+
![Deleting connectors individually or in bulk](images/connector-delete.png)
8074

8175
::::{note}
8276
You can delete a connector even if there are still actions referencing it. When this happens the action will fail to run and errors appear in the {{kib}} logs.
@@ -89,10 +83,8 @@ You can delete a connector even if there are still actions referencing it. When
8983

9084
New connectors can be created with the **Create connector** button, which guides you to select the type of connector and configure its properties.
9185

92-
:::{image} images/connector-select-type.png
93-
:alt: Connector select type
94-
:class: screenshot
95-
:::
86+
% TO DO: Use `:class: screenshot`
87+
![Connector select type](images/connector-select-type.png)
9688

9789
After you create a connector, it is available for use any time you set up an action in the current space.
9890

@@ -108,17 +100,13 @@ You can also manage connectors as resources with the [Elasticstack provider](htt
108100

109101
To import and export connectors, use the [Saved Objects Management UI](docs-content://explore-analyze/find-and-organize/saved-objects.md).
110102

111-
:::{image} images/connectors-import-banner.png
112-
:alt: Connectors import banner
113-
:class: screenshot
114-
:::
103+
% TO DO: Use `:class: screenshot`
104+
![Connectors import banner](images/connectors-import-banner.png)
115105

116106
If a connector is missing sensitive information after the import, a **Fix** button appears in **{{connectors-ui}}**.
117107

118-
:::{image} images/connectors-with-missing-secrets.png
119-
:alt: Connectors with missing secrets
120-
:class: screenshot
121-
:::
108+
% TO DO: Use `:class: screenshot`
109+
![Connectors with missing secrets](images/connectors-with-missing-secrets.png)
122110

123111

124112
## Monitoring connectors [monitoring-connectors]

0 commit comments

Comments
 (0)