Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
aabd1cc2
Commit
aabd1cc2
authored
6 years ago
by
Luc Perkins
Committed by
Julius Volz
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add admonition type to text content (#1089)
Signed-off-by:
lucperkins
<
lucperkins@gmail.com
>
parent
70811501
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
exposition_formats.md
content/docs/instrumenting/exposition_formats.md
+1
-1
admonition.rb
lib/filters/admonition.rb
+1
-0
No files found.
content/docs/instrumenting/exposition_formats.md
View file @
aabd1cc2
...
@@ -10,7 +10,7 @@ exposition format. There's a variety of [client libraries](/docs/instrumenting/c
...
@@ -10,7 +10,7 @@ exposition format. There's a variety of [client libraries](/docs/instrumenting/c
that implement this format for you. If your preferred language doesn't have a client
that implement this format for you. If your preferred language doesn't have a client
library you can
[
create your own
](
/docs/instrumenting/writing_clientlibs/
)
.
library you can
[
create your own
](
/docs/instrumenting/writing_clientlibs/
)
.
NOTE:
**NOTE**
Some earlier versions of Prometheus supported an exposition format based on
NOTE: Some earlier versions of Prometheus supported an exposition format based on
[
Protocol Buffers
](
https://developers.google.com/protocol-buffers/
)
(
aka
Protobuf) in
[
Protocol Buffers
](
https://developers.google.com/protocol-buffers/
)
(
aka
Protobuf) in
addition to the current text-based format. As of version 2.0, however, Prometheus no
addition to the current text-based format. As of version 2.0, however, Prometheus no
longer supports the Protobuf-based format. You can read about the reasoning behind
longer supports the Protobuf-based format. You can read about the reasoning behind
...
...
This diff is collapsed.
Click to expand it.
lib/filters/admonition.rb
View file @
aabd1cc2
...
@@ -28,6 +28,7 @@ class AdmonitionFilter < Nanoc::Filter
...
@@ -28,6 +28,7 @@ class AdmonitionFilter < Nanoc::Filter
def
generate
(
kind
,
content
)
def
generate
(
kind
,
content
)
%[<div class="admonition-wrapper #{kind}">]
+
%[<div class="admonition-wrapper #{kind}">]
+
%[<div class="admonition alert alert-#{BOOSTRAP_MAPPING[kind]}">]
+
%[<div class="admonition alert alert-#{BOOSTRAP_MAPPING[kind]}">]
+
"<strong>
#{
kind
.
upcase
}
:</strong> "
+
content
+
content
+
%[</div></div>]
%[</div></div>]
end
end
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment