File tree 6 files changed +31
-6
lines changed
6 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 1
1
+++
2
2
title = " Usage of matrix-bot-sdk"
3
3
aliases = [" /docs/guides/usage-of-matrix-bot-sdk" ]
4
+ extra.new_doc = " https://turt2live.github.io/matrix-bot-sdk/index.html"
4
5
+++
5
6
6
7
This article concerns [ matrix-bot-sdk] , a TypeScript client SDK for Matrix.
Original file line number Diff line number Diff line change 1
1
+++
2
2
title = " matrix-bot-sdk Room Admin Features"
3
3
aliases = [" /docs/guides/matrix-bot-sdk-room-admin-features" ]
4
+ extra.new_doc = " https://turt2live.github.io/matrix-bot-sdk/index.html"
4
5
+++
5
6
6
7
## Intro
Original file line number Diff line number Diff line change 2
2
title = " Moderation in Matrix"
3
3
aliases = [" /docs/guides/moderation" ]
4
4
extra.updated = " 2022-10-18T16:00:00Z"
5
+ extra.new_doc = " /docs/communities/moderation/"
5
6
+++
6
7
7
8
## Introduction
Original file line number Diff line number Diff line change 1
1
+++
2
2
title = " Usage of matrix-nio (Python Matrix client library)"
3
3
aliases = [" /docs/guides/usage-of-matrix-nio" ]
4
+ extra.new_doc = " https://matrix-nio.readthedocs.io/en/latest"
4
5
+++
5
6
6
7
This article concerns [ matrix-nio] ( https://github.com/poljar/matrix-nio ) , and
Original file line number Diff line number Diff line change 1
1
.legacy-doc-warning {
2
2
padding : 1rem ;
3
3
border-radius : .5rem ;
4
- background-color : #FDF5F5 ;
5
- color : #EC5A5B ;
4
+ background-color : #F6E7D5 ;
5
+ color : #6F420F ;
6
6
margin-top : 1rem ;
7
7
margin-bottom : 1rem ;
8
8
9
9
h2 {
10
10
margin-top : 0px ;
11
11
margin-bottom : 10px ;
12
12
}
13
+
14
+ & .outdated {
15
+ background-color : #F6D5D5 ;
16
+ color : #8B1212 ;
17
+ }
13
18
}
Original file line number Diff line number Diff line change 2
2
{% block content %}
3
3
< article class ="content ">
4
4
< header >
5
- < div class ="legacy-doc-warning ">
6
- < h2 > Outdated documentation</ h2 >
5
+ < div class ="legacy-doc-warning {% if page.extra.new_doc %}outdated{% endif %} ">
6
+ < h2 >
7
+ {% if page.extra.new_doc %}
8
+ Outdated
9
+ {% else %}
10
+ Old
11
+ {% endif %}
12
+ documentation
13
+ </ h2 >
7
14
< p >
8
- This article is not actively maintained anymore, it may be
9
- outdated. There may be more current information in
15
+ This documentation hasn't been updated in a while. Some
16
+ information might no longer be valid.
17
+ </ p >
18
+
19
+ < p >
20
+ {% if page.extra.new_doc %}
21
+ You can find the latest version of the documentation at
22
+ < a href ="{{ page.extra.new_doc }} "> {{ page.extra.new_doc }}</ a >
23
+ {% else %}
24
+ There may be more up to date information in
10
25
< a href ="/docs "> the new documentation section</ a > .
26
+ {% endif %}
11
27
</ p >
12
28
</ div >
13
29
< h1 > {{ page.title }}</ h1 >
You can’t perform that action at this time.
0 commit comments