Skip to content

Commit dfa9c57

Browse files
committed
Sync documentation of main branch
1 parent 880c57e commit dfa9c57

File tree

2 files changed

+62
-10
lines changed

2 files changed

+62
-10
lines changed

_versions/main/guides/dev-ui.adoc

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,63 @@ https://github.com/qomponent[Qomponent]: A few custom build compoments that can
506506

507507
Currently the following UI component are available:
508508

509-
- qui-dot - Render dot files
510-
- qui-code-block - Render code
511-
- qui-directory-tree - Render a directory tree (like in the workspace)
512-
- qui-alert - Show an alert
513-
- qui-card - Card component
514-
- qui-switch - Switch button
515-
- qui-badge - Badge component
509+
- qui-dot - Render dot files.
510+
- qui-code-block - Render code. (See below *Code block* section)
511+
- qui-directory-tree - Render a directory tree (like in the workspace).
512+
- qui-alert - Show an alert.
513+
- qui-card - Card component.
514+
- qui-switch - Switch button.
515+
- qui-badge - Badge component.
516+
517+
====== Code block
518+
519+
Creates a code block (containing marked up code). This could also be made editable.
520+
This component use the above mentioned code block from qomponent, that is build with https://codemirror.net/[code-mirror], but adds the automatic theme state when switching themes.
521+
522+
Code can be provided remotely (`src`) or as a property (`content`) or as a slotted value (example below).
523+
524+
[source,javascript]
525+
----
526+
import 'qui-themed-code-block';
527+
----
528+
529+
[source,html]
530+
----
531+
<qui-themed-code-block mode="properties">
532+
<slot>
533+
foo = bar
534+
</slot>
535+
</qui-themed-code-block>
536+
----
537+
538+
Currently the following modes are supported:
539+
540+
- xml
541+
- javascript
542+
- php
543+
- cpp
544+
- go
545+
- rust
546+
- python
547+
- json
548+
- java
549+
- sql
550+
- yaml
551+
- html
552+
- css
553+
- sass
554+
- less
555+
- markdown
556+
- asciidoc
557+
- properties
558+
- asciiArmor
559+
- powerShell
560+
- shell
561+
- protobuf
562+
- dockerFile
563+
- diff
564+
565+
See the https://github.com/qomponent/qui-code-block[@qomponent/qui-code-block] for more details.
516566

517567
====== IDE link
518568

_versions/main/guides/telemetry-micrometer.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,15 +728,17 @@ The value cannot be overridden at runtime.
728728
If you enable the management interface without customizing the management network interface and port, the metrics are exposed under: `http://0.0.0.0:9000/q/metrics`.
729729

730730
You can configure the path of each exposed format using:
731+
731732
[source, properties]
732733
----
733-
quarkus.micrometer.export.json.enabled=true # Enable json metrics
734+
quarkus.micrometer.export.json.enabled=true <1>
734735
quarkus.micrometer.export.json.path=metrics/json
735736
quarkus.micrometer.export.prometheus.path=metrics/prometheus
736737
----
738+
<1> Enable JSON metrics
737739

738-
With such a configuration, the json metrics will be available from `http://0.0.0.0:9000/q/metrics/json`.
739-
The prometheus metrics will be available from `http://0.0.0.0:9000/q/metrics/prometheus`.
740+
With such a configuration, the JSON metrics will be available from `http://0.0.0.0:9000/q/metrics/json`.
741+
The Prometheus metrics will be available from `http://0.0.0.0:9000/q/metrics/prometheus`.
740742

741743
Refer to the xref:./management-interface-reference.adoc[management interface reference] for more information.
742744

0 commit comments

Comments
 (0)