Skip to content

Commit eb7a65a

Browse files
authored
DOC-12087: Add Windows batch file highlighting (#187)
* Add DOS highlighting * Test DOS highlighting * Minor changes: don't need labels role for edition or status, and JSON5 should be JSON
1 parent 394d1de commit eb7a65a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

preview-src/index.adoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ index-pair ::= '"' 'indexes' '"' ':' ( 'null'
4040
----
4141
====
4242

43+
.Here is a bit of a Microsoft Windows Batch File
44+
====
45+
[,cmd]
46+
----
47+
cd couchbase-server-tools\bin
48+
cbq -u %USER% -p %PASSWORD% -e %BASE_URL% --cacert %CACERT% -skip-verify
49+
----
50+
====
51+
4352
[[bucket-selection]]Bucket Selection::
4453
The [.ui]*Buckets* selection list lets you select which of the buckets configured on your cluster is to be used as the basis for the graph display.
4554
The statistics shown are aggregated over the whole cluster for the <<bucket-selection,selected bucket>>.
@@ -187,14 +196,12 @@ You could also use it to mark new features, but _only within the version in whic
187196

188197
== Labels for a Section
189198

190-
[.labels]
191199
[.edition]##{enterprise}##[.status]##{developer-preview}##
192200

193201
To create an edition label, use a span with the role `edition`.
194202
To create a status label, use a span with the role `status`.
195203

196204
To add edition and status labels at the start of a section or block, place the required spans in a single paragraph on its own.
197-
To add the "speech bubble tail" above the labels, the spans should be placed in a paragraph with the role `labels`.
198205

199206
Global document attributes are available to insert the content for an edition or status label.
200207
The global document attribute `&lbrace;enterprise&rbrace;` inserts the content for an enterprise edition label.
@@ -436,7 +443,7 @@ POST http://nodename:8091/settings/viewUpdateDaemon
436443
updateInterval=10000&updateMinChanges=7000
437444
----
438445

439-
[.no-callouts,json5]
446+
[.no-callouts,json]
440447
----
441448
{
442449
"_id": "_design/myddoc",

src/js/vendor/highlight.bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
hljs.registerLanguage('cpp', require('highlight.js/lib/languages/cpp'))
88
hljs.registerLanguage('cs', require('highlight.js/lib/languages/cs'))
99
hljs.registerLanguage('dockerfile', require('highlight.js/lib/languages/dockerfile'))
10+
hljs.registerLanguage('dos', require('highlight.js/lib/languages/dos'))
1011
hljs.registerLanguage('ebnf', require('highlight.js/lib/languages/ebnf'))
1112
hljs.registerLanguage('go', require('highlight.js/lib/languages/go'))
1213
hljs.registerLanguage('groovy', require('highlight.js/lib/languages/groovy'))

0 commit comments

Comments
 (0)