Skip to content

Commit f51f8ed

Browse files
committed
[DOCS] Remove unneeded options from [source,sql] code blocks (#42759)
In AsciiDoc, `subs="attributes,callouts,macros"` options were required to render `include-tagged::` in a code block. With elastic/docs#827, Elasticsearch Reference documentation migrated from AsciiDoc to Asciidoctor. In Asciidoctor, the `subs="attributes,callouts,macros"` options are no longer needed to render `include-tagged::` in a code block. This commit removes those unneeded options. Resolves #41589
1 parent d0da30e commit f51f8ed

17 files changed

+173
-173
lines changed

docs/reference/sql/functions/conditional.asciidoc

+21-21
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ If the condition’s result is true, the value of the result expression that fol
3333
the subsequent when clauses will be skipped and not processed.
3434

3535

36-
["source","sql",subs="attributes,callouts,macros"]
36+
[source, sql]
3737
----
3838
include-tagged::{sql-specs}/docs/docs.csv-spec[case]
3939
----
4040

41-
["source","sql",subs="attributes,callouts,macros"]
41+
[source, sql]
4242
----
4343
include-tagged::{sql-specs}/docs/docs.csv-spec[caseReturnNull]
4444
----
4545

46-
["source","sql",subs="attributes,callouts,macros"]
46+
[source, sql]
4747
----
4848
include-tagged::{sql-specs}/docs/docs.csv-spec[caseWithElse]
4949
----
@@ -70,12 +70,12 @@ CASE WHEN expression = value1 THEN result1
7070
END
7171
----
7272

73-
["source","sql",subs="attributes,callouts,macros"]
73+
[source, sql]
7474
----
7575
include-tagged::{sql-specs}/docs/docs.csv-spec[caseWithOperand]
7676
----
7777

78-
["source","sql",subs="attributes,callouts,macros"]
78+
[source, sql]
7979
----
8080
include-tagged::{sql-specs}/docs/docs.csv-spec[caseWithOperandAndElse]
8181
----
@@ -155,12 +155,12 @@ If all arguments are null, then it returns `null`.
155155

156156

157157

158-
["source","sql",subs="attributes,callouts,macros"]
158+
[source, sql]
159159
----
160160
include-tagged::{sql-specs}/docs/docs.csv-spec[coalesceReturnNonNull]
161161
----
162162

163-
["source","sql",subs="attributes,callouts,macros"]
163+
[source, sql]
164164
----
165165
include-tagged::{sql-specs}/docs/docs.csv-spec[coalesceReturnNull]
166166
----
@@ -199,12 +199,12 @@ If all arguments are null, then it returns `null`.
199199

200200

201201

202-
["source","sql",subs="attributes,callouts,macros"]
202+
[source, sql]
203203
----
204204
include-tagged::{sql-specs}/docs/docs.csv-spec[greatestReturnNonNull]
205205
----
206206

207-
["source","sql",subs="attributes,callouts,macros"]
207+
[source, sql]
208208
----
209209
include-tagged::{sql-specs}/docs/docs.csv-spec[greatestReturnNull]
210210
----
@@ -237,12 +237,12 @@ If all arguments are null, then it returns `null`.
237237

238238

239239

240-
["source","sql",subs="attributes,callouts,macros"]
240+
[source, sql]
241241
----
242242
include-tagged::{sql-specs}/docs/docs.csv-spec[ifNullReturnFirst]
243243
----
244244

245-
["source","sql",subs="attributes,callouts,macros"]
245+
[source, sql]
246246
----
247247
include-tagged::{sql-specs}/docs/docs.csv-spec[ifNullReturnSecond]
248248
----
@@ -276,12 +276,12 @@ logic of programming languages. If the 3rd expression is not provided and the co
276276
`null` is returned.
277277

278278

279-
["source","sql",subs="attributes,callouts,macros"]
279+
[source, sql]
280280
----
281281
include-tagged::{sql-specs}/docs/docs.csv-spec[iifWithDefaultValue]
282282
----
283283

284-
["source","sql",subs="attributes,callouts,macros"]
284+
[source, sql]
285285
----
286286
include-tagged::{sql-specs}/docs/docs.csv-spec[iifWithoutDefaultValue]
287287
----
@@ -324,12 +324,12 @@ If all arguments are null, then it returns `null`.
324324

325325

326326

327-
["source","sql",subs="attributes,callouts,macros"]
327+
[source, sql]
328328
----
329329
include-tagged::{sql-specs}/docs/docs.csv-spec[isNullReturnFirst]
330330
----
331331

332-
["source","sql",subs="attributes,callouts,macros"]
332+
[source, sql]
333333
----
334334
include-tagged::{sql-specs}/docs/docs.csv-spec[isNullReturnSecond]
335335
----
@@ -369,12 +369,12 @@ If all arguments are null, then it returns `null`.
369369

370370

371371

372-
["source","sql",subs="attributes,callouts,macros"]
372+
[source, sql]
373373
----
374374
include-tagged::{sql-specs}/docs/docs.csv-spec[leastReturnNonNull]
375375
----
376376

377-
["source","sql",subs="attributes,callouts,macros"]
377+
[source, sql]
378378
----
379379
include-tagged::{sql-specs}/docs/docs.csv-spec[leastReturnNull]
380380
----
@@ -406,12 +406,12 @@ Returns `null` when the two input expressions are equal and
406406
if not, it returns the 1st expression.
407407

408408

409-
["source","sql",subs="attributes,callouts,macros"]
409+
[source, sql]
410410
----
411411
include-tagged::{sql-specs}/docs/docs.csv-spec[nullIfReturnFirst]
412412
----
413413

414-
["source","sql",subs="attributes,callouts,macros"]
414+
[source, sql]
415415
----
416416
include-tagged::{sql-specs}/docs/docs.csv-spec[nullIfReturnNull]
417417
----
@@ -445,12 +445,12 @@ If all arguments are null, then it returns `null`.
445445

446446

447447

448-
["source","sql",subs="attributes,callouts,macros"]
448+
[source, sql]
449449
----
450450
include-tagged::{sql-specs}/docs/docs.csv-spec[nvlReturnFirst]
451451
----
452452

453-
["source","sql",subs="attributes,callouts,macros"]
453+
[source, sql]
454454
----
455455
include-tagged::{sql-specs}/docs/docs.csv-spec[nvlReturnSecond]
456456
----

0 commit comments

Comments
 (0)