Skip to content

Commit d6ad874

Browse files
authored
[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 3f15d57 commit d6ad874

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
----
@@ -277,12 +277,12 @@ logic of programming languages. If the 3rd expression is not provided and the co
277277
`null` is returned.
278278

279279

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

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

326326

327327

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

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

371371

372372

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

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

409409

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

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

447447

448448

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

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

0 commit comments

Comments
 (0)