Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit a879aaa

Browse files
committed
Add deprecation notice to the docs
1 parent 91f1c7a commit a879aaa

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

book.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ git-repository-url = "https://github.com/matrix-org/matrix-authentication-servic
2020

2121
# The path that the docs are hosted on
2222
site-url = "/matrix-authentication-service/"
23+
24+
additional-css = ["theme/additional.css"]

theme/additional.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#page-wrapper .page {
2+
display: flex;
3+
flex-direction: column;
4+
}
5+
6+
.deprecation-notice {
7+
box-sizing: border-box;
8+
order: 2;
9+
color: rgb(213, 25, 40);
10+
background-color: rgb(255, 247, 246);
11+
border: 1px solid rgb(213, 25, 40);
12+
padding: 1rem 2rem;
13+
margin: 1rem 0;
14+
align-self: center;
15+
max-width: var(--content-max-width);
16+
}
17+
18+
#content {
19+
order: 3;
20+
}

theme/header.hbs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div class="deprecation-notice content">
2+
<h1>This documentation is out of date!</h1>
3+
<p>
4+
This documentation site is for the versions of matrix-authentication-service maintained by the <em>Matrix.org Foundation</em> (<a href="https://github.com/matrix-org/matrix-authentication-service">github.com/matrix-org/matrix-authentication-service</a>), available under the Apache 2.0 licence.
5+
</p>
6+
7+
<p>
8+
Since version 0.12.0, matrix-authentication-service is now maintained by <em>Element</em> under a new licence (<a href="https://github.com/element-hq/matrix-authentication-service">github.com/element-hq/matrix-authentication-service</a>).
9+
</p>
10+
11+
<p>
12+
If you are interested in the documentation for a later version of matrix-authentication-service, please refer to <a href="https://element-hq.github.io/matrix-authentication-service/">https://element-hq.github.io/matrix-authentication-service/</a>.
13+
</p>
14+
</div>

0 commit comments

Comments
 (0)