From c36bf4f67f82300de074d2e5d0511b99d17ea945 Mon Sep 17 00:00:00 2001 From: Simon Dew Date: Mon, 29 Jul 2024 13:03:19 +0100 Subject: [PATCH 1/3] Add DOS highlighting --- src/js/vendor/highlight.bundle.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/vendor/highlight.bundle.js b/src/js/vendor/highlight.bundle.js index 5247e89f..05b7548f 100644 --- a/src/js/vendor/highlight.bundle.js +++ b/src/js/vendor/highlight.bundle.js @@ -7,6 +7,7 @@ hljs.registerLanguage('cpp', require('highlight.js/lib/languages/cpp')) hljs.registerLanguage('cs', require('highlight.js/lib/languages/cs')) hljs.registerLanguage('dockerfile', require('highlight.js/lib/languages/dockerfile')) + hljs.registerLanguage('dos', require('highlight.js/lib/languages/dos')) hljs.registerLanguage('ebnf', require('highlight.js/lib/languages/ebnf')) hljs.registerLanguage('go', require('highlight.js/lib/languages/go')) hljs.registerLanguage('groovy', require('highlight.js/lib/languages/groovy')) From 1fc649ebf7d641d9a0f3033b77575c9553e9027d Mon Sep 17 00:00:00 2001 From: Simon Dew Date: Mon, 29 Jul 2024 13:03:43 +0100 Subject: [PATCH 2/3] Test DOS highlighting --- preview-src/index.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index 1c2b0e1a..618cc68e 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -40,6 +40,15 @@ index-pair ::= '"' 'indexes' '"' ':' ( 'null' ---- ==== +.Here is a bit of a Microsoft Windows Batch File +==== +[,cmd] +---- +cd couchbase-server-tools\bin +cbq -u %USER% -p %PASSWORD% -e %BASE_URL% --cacert %CACERT% -skip-verify +---- +==== + [[bucket-selection]]Bucket Selection:: 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. The statistics shown are aggregated over the whole cluster for the <>. From efb2ca7d70fcc28cbf92529ea992ef3b0539161d Mon Sep 17 00:00:00 2001 From: Simon Dew Date: Mon, 29 Jul 2024 13:04:31 +0100 Subject: [PATCH 3/3] Minor changes: don't need labels role for edition or status, JSON5 should be JSON --- preview-src/index.adoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index 618cc68e..1c8b3c7d 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -196,14 +196,12 @@ You could also use it to mark new features, but _only within the version in whic == Labels for a Section -[.labels] [.edition]##{enterprise}##[.status]##{developer-preview}## To create an edition label, use a span with the role `edition`. To create a status label, use a span with the role `status`. 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. -To add the "speech bubble tail" above the labels, the spans should be placed in a paragraph with the role `labels`. Global document attributes are available to insert the content for an edition or status label. The global document attribute `{enterprise}` inserts the content for an enterprise edition label. @@ -445,7 +443,7 @@ POST http://nodename:8091/settings/viewUpdateDaemon updateInterval=10000&updateMinChanges=7000 ---- -[.no-callouts,json5] +[.no-callouts,json] ---- { "_id": "_design/myddoc",