Skip to content

Commit e355759

Browse files
authored
[DOCS] Replace "// CONSOLE" comments with [source,console] (#46679)
1 parent df2bc93 commit e355759

File tree

7 files changed

+8
-14
lines changed

7 files changed

+8
-14
lines changed

docs/reference/ilm/apis/slm-api.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,10 @@ retrieved by using the following API:
353353

354354
==== Example
355355

356-
[source,js]
356+
[source,console]
357357
--------------------------------------------------
358358
GET /_slm/stats
359359
--------------------------------------------------
360-
// CONSOLE
361360
// TEST[continued]
362361

363362
Which returns a response similar to:

docs/reference/indices/templates.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,3 @@ The API returns the following response:
248248
}
249249
}
250250
--------------------------------------------------
251-
// TESTRESPONSE

docs/reference/mapping/fields/field-names-field.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@ PUT tweets
3333
}
3434
}
3535
--------------------------------------------------
36-
// CONSOLE
3736
// TEST[warning:Index [tweets] uses the deprecated `enabled` setting for `_field_names`. Disabling _field_names is not necessary because it no longer carries a large index overhead. Support for this setting will be removed in a future major version. Please remove it from your mappings and templates.]

docs/reference/sql/language/data-types.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ To do that, it will search for the first `keyword` that it can find that is _not
102102

103103
Consider the following `string` mapping:
104104

105-
[source, js]
105+
[source,js]
106106
----
107107
{
108108
"first_name" : {

docs/reference/transform/ecommerce-example.asciidoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ If you want to use more complex queries, you can create your {dataframe} from a
8383
If you prefer, you can use the
8484
{ref}/preview-data-frame-transform.html[preview {dataframe-transforms} API]:
8585

86-
[source,js]
86+
[source,console]
8787
--------------------------------------------------
8888
POST _data_frame/transforms/_preview
8989
{
@@ -130,7 +130,6 @@ POST _data_frame/transforms/_preview
130130
}
131131
}
132132
--------------------------------------------------
133-
// CONSOLE
134133
// TEST[skip:set up sample data]
135134
--
136135

@@ -159,7 +158,7 @@ If you prefer, you can use the
159158
{ref}/put-data-frame-transform.html[create {dataframe-transforms} API]. For
160159
example:
161160

162-
[source,js]
161+
[source,console]
163162
--------------------------------------------------
164163
PUT _data_frame/transforms/ecommerce-customer-transform
165164
{
@@ -213,7 +212,6 @@ PUT _data_frame/transforms/ecommerce-customer-transform
213212
}
214213
}
215214
--------------------------------------------------
216-
// CONSOLE
217215
// TEST[skip:setup kibana sample data]
218216
--
219217

@@ -236,11 +234,10 @@ Alternatively, you can use the
236234
{ref}/stop-data-frame-transform.html[stop {dataframe-transforms}] APIs. For
237235
example:
238236

239-
[source,js]
237+
[source,console]
240238
--------------------------------------------------
241239
POST _data_frame/transforms/ecommerce-customer-transform/_start
242240
--------------------------------------------------
243-
// CONSOLE
244241
// TEST[skip:setup kibana sample data]
245242

246243
--

x-pack/docs/en/rest-api/security/role-mapping-resources.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if _at least one_ of the member values matches. For example, the following rule
8080
matches any user who is a member of the `admin` group, regardless of any
8181
other groups they belong to:
8282

83-
[source, js]
83+
[source,js]
8484
------------------------------------------------------------
8585
{ "field" : { "groups" : "admin" } }
8686
------------------------------------------------------------

x-pack/docs/en/security/authentication/user-cache.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ You can use the {ref}/security-api-clear-cache.html[clear cache API] to force
2222
the eviction of cached users . For example, the following request evicts all
2323
users from the `ad1` realm:
2424

25-
[source, js]
25+
[source,js]
2626
------------------------------------------------------------
2727
$ curl -XPOST 'http://localhost:9200/_security/realm/ad1/_clear_cache'
2828
------------------------------------------------------------
2929

3030
To clear the cache for multiple realms, specify the realms as a comma-separated
3131
list:
3232

33-
[source, js]
33+
[source,js]
3434
------------------------------------------------------------
3535
$ curl -XPOST 'http://localhost:9200/_security/realm/ad1,ad2/_clear_cache'
3636
------------------------------------------------------------

0 commit comments

Comments
 (0)