Skip to content

Commit 5082cf9

Browse files
committed
Replace blockquote with admonition when explaining ejabberd version (#131)
https://squidfunk.github.io/mkdocs-material/reference/admonitions/
1 parent 841cda8 commit 5082cf9

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ $(TOPLEVEL): $(TTOPLEVEL)
173173
# Split paragraph of suboptions, it's nicer to read
174174
sed -i 's/^- \*\*\(.*\)\*\*: \*\([^*]*\)\* \(.*\)/- **\1**: *\2* \n \3/g' $(TTOPLEVEL)
175175
# Add disclaimer about Archive page for older ejabberd releases
176-
sed -i 's|\(This section.*\)\. |> \1. '$(ARCHIVESTRING)' |g' $(TTOPLEVEL)
176+
sed -i -z 's|\(This section.*\)\. \(The\)\n\(options.*\)|!!! info "Please note"\n\n \1. '$(ARCHIVESTRING)'\n\n \2 \3|g' $(TTOPLEVEL)
177177
# Convert *`mod_something`* into a link to modules section
178178
sed -i 's|\*`mod_\([a-z_]*\)`\*|[mod_\1](modules.md#mod_\1)|g' $(TTOPLEVEL)
179179
# Convert *`something`* API into a link to API Reference
@@ -214,7 +214,7 @@ $(MODULES): $(TMODULES)
214214
# Convert _`url|something`_ into a relative link
215215
sed -i 's|\*`\(.*\)\|\(.*\)`\*|[\2](\1)|g' $(TMODULES)
216216
# Add disclaimer about Archive page for older ejabberd releases
217-
sed -i 's|\(This section.*\)\. |> \1. '$(ARCHIVESTRING)' |g' $(TMODULES)
217+
sed -i -z 's|\(This section.*\)\. \(The modules\)\n\(that changed.*\)|!!! info "Please note"\n\n \1. '$(ARCHIVESTRING)'\n\n \2 \3|g' $(TMODULES)
218218
# Convert note to div HTML elements
219219
sed -i 's|\*Note\* about this option: \(.*\)\.|<!-- md:version \1 -->\n|g' $(TMODULES)
220220
# Link to Archive when mentioning an ejabberd release 2x.xx
@@ -233,7 +233,7 @@ $(API): $(TAPI)
233233
sed -i 's/^__Module:__/__Module:__\nCLEANLINES/g' $(TAPI)
234234
sed -i '/^CLEANLINES/{N;N;N;//d}' $(TAPI)
235235
# Add disclaimer about Archive page for older ejabberd releases
236-
sed -i 's|\(This section.*\)\. |> \1. '$(ARCHIVESTRING)' |g' $(TAPI)
236+
sed -i 's|\(This section.*\)\. \(.*\).|!!! info "Please note"\n\n \1. '$(ARCHIVESTRING)'\n\n \2|g' $(TAPI)
237237
# Convert note to div HTML elements
238238
sed -i 's|\*Note\* about this command: \(.*\)\.|\n<!-- md:version \1 -->|g' $(TAPI)
239239
# Link to Archive when mentioning an ejabberd release 2x.xx
@@ -257,7 +257,7 @@ $(TAGS): $(TTAGS)
257257
# Convert _`something`_ API into a link to API Reference
258258
sed -i 's|_`\([a-z0-9_]*\)`_|[\1](admin-api.md#\1)|g' $(TTAGS)
259259
# Add disclaimer about Archive page for older ejabberd releases
260-
sed -i 's|\(This section.*\)\. |> \1. '$(ARCHIVESTRING)' |g' $(TTAGS)
260+
sed -i 's|\(This section.*\)\. |!!! info "Please note"\n\n \1. '$(ARCHIVESTRING)' |g' $(TTAGS)
261261
cp $(TTAGS) $(TAGS)
262262

263263
#.

content/admin/configuration/listen-options.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Listen Options
22

3-
> This section describes the most recent ejabberd version. If you are using an old ejabberd release, please refer to the corresponding archived version of this page in the [Archive](../../archive/index.md).
3+
!!! info "Please note"
4+
5+
This section describes the most recent ejabberd version. If you are using an old ejabberd release, please refer to the corresponding archived version of this page in the [Archive](../../archive/index.md).
46

57
This is a detailed description of each option allowed by the listening
68
modules:

content/admin/configuration/listen.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Listen Modules
22

3-
> This section describes the most recent ejabberd version. If you are using an old ejabberd release, please refer to the corresponding archived version of this page in the [Archive](../../archive/index.md).
3+
!!! info "Please note"
4+
5+
This section describes the most recent ejabberd version. If you are using an old ejabberd release, please refer to the corresponding archived version of this page in the [Archive](../../archive/index.md).
46

57
## Listen Options
68

0 commit comments

Comments
 (0)