Skip to content

Commit 5f2f915

Browse files
olijeffers0nSandwichBtwMiniDiggerzlataovce
authored
feat: announce waterfall eol (#314)
Co-authored-by: SandwichBtw <robinprotonme@proton.me> Co-authored-by: MiniDigger | Martin <admin@benndorf.dev> Co-authored-by: Matouš Kučera <mk@kcra.me>
1 parent b773a5c commit 5f2f915

File tree

8 files changed

+107
-25
lines changed

8 files changed

+107
-25
lines changed

docs/velocity/admin/reference/comparison.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ may be somewhat biased in our favor.
1313

1414
:::danger
1515

16-
**The Paper team strongly recommends using Velocity over Waterfall and BungeeCord**. Waterfall is a legacy solution,
17-
and only receives critical updates and whatever is released from upstream BungeeCord. All future
18-
development by PaperMC is done on Velocity.
16+
**The Paper team strongly recommends using Velocity over Waterfall and BungeeCord**. Waterfall has reached end of life. All future
17+
development by PaperMC is done on Velocity. For more information, see the [announcement](https://forums.papermc.io/threads/1088/).
1918

2019
:::
2120

docs/waterfall/README.mdx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1+
---
2+
eol: true
3+
eol_message: We recommend you transition to [Velocity](https://papermc.io/software/velocity). For more information, see the [announcement](https://forums.papermc.io/threads/1088/).
4+
---
5+
16
import DocCardList from "@theme/DocCardList";
27
import { useCurrentSidebarCategory } from "@docusaurus/theme-common";
38

49
# Welcome to the Waterfall Docs
510

611
Waterfall is the BungeeCord fork that aims to improve performance and stability.
712

8-
:::danger
9-
10-
**The Paper team strongly recommends using [Velocity](../velocity) over Waterfall**. Waterfall is a legacy solution,
11-
and only receives critical updates and whatever is released from upstream BungeeCord. All future
12-
development by PaperMC is done on [Velocity](../velocity).
13-
14-
:::
15-
1613
---
1714

1815
<DocCardList items={useCurrentSidebarCategory().items} />

docs/waterfall/configuration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
slug: /configuration
33
description: Configuration guide for Waterfall.
4+
eol: true
5+
eol_message: We recommend you transition to [Velocity](https://papermc.io/software/velocity). For more information, see the [announcement](https://forums.papermc.io/threads/1088/).
46
---
57

68
import React from 'react';

docs/waterfall/getting-started.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
slug: /getting-started
33
description: How to get started with running Waterfall.
4+
eol: true
5+
eol_message: We recommend you transition to [Velocity](https://papermc.io/software/velocity). For more information, see the [announcement](https://forums.papermc.io/threads/1088/).
46
---
57

68
# Getting Started

src/components/Projects.tsx

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Link from "@docusaurus/Link";
22
import React from "react";
3-
import styles from "../css/projects.module.css";
3+
import { Icon } from "@iconify/react";
4+
import "../css/projects.css";
45

56
const projects: Project[] = [
67
{
@@ -22,31 +23,37 @@ const projects: Project[] = [
2223
repo: "PaperMC/Velocity",
2324
link: "/velocity",
2425
},
25-
{
26-
title: "Waterfall",
27-
description: "BungeeCord proxy fork that aims to improve performance and stability.",
28-
repo: "PaperMC/Waterfall",
29-
link: "/waterfall",
30-
},
3126
{
3227
title: "Miscellaneous",
3328
description: "Documentation that does not apply to any specific project.",
3429
repo: "PaperMC",
3530
link: "/misc",
3631
},
32+
{
33+
title: "Waterfall",
34+
description:
35+
"A Discontinued BungeeCord proxy fork that aimed to improve performance and stability.",
36+
repo: "PaperMC/Waterfall",
37+
link: "/waterfall",
38+
eol: true,
39+
},
3740
];
3841

3942
function Project(project: Project) {
4043
return (
41-
<div className={styles.project}>
42-
<div className={styles.flex}>
43-
<Link className={styles.projectGitHub} to={`https://github.com/${project.repo}`}>
44+
<div className={"project"}>
45+
<div className={"flex"}>
46+
<Link
47+
className={"projectGitHub archivedProjectTitle"}
48+
to={`https://github.com/${project.repo}`}
49+
>
4450
{project.title}
51+
{project.eol && <Icon style={{ marginLeft: "8px" }} icon={"mdi:archive"} height={25} />}
4552
</Link>
4653
<p>{project.description}</p>
4754
</div>
4855
<div>
49-
<Link className="button button--primary" to={project.link}>
56+
<Link className={"button button--primary archivedProjectButton"} to={project.link}>
5057
Go
5158
</Link>
5259
</div>
@@ -56,8 +63,8 @@ function Project(project: Project) {
5663

5764
export default function Projects(): JSX.Element {
5865
return (
59-
<section className={styles.projects}>
60-
<div className={styles.projectsContainer}>
66+
<section className={"projects"}>
67+
<div className={"projectsContainer"}>
6168
{projects.map((project, index) => (
6269
<Project key={index} {...project} />
6370
))}
@@ -71,4 +78,5 @@ interface Project {
7178
description: string;
7279
repo: string;
7380
link: string;
81+
eol?: boolean;
7482
}

src/css/custom.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
--default-config-node-text-color: rgb(148, 148, 148);
1515
--config-node-highlight-text-color: black;
1616
--config-explorer-file-node-text-color: rgba(0, 0, 0, 0.03);
17+
18+
/* EOL Message */
19+
--eol-message-background-color: rgb(255, 112, 119);
1720
}
1821

1922
html[data-theme="dark"] {
@@ -30,7 +33,28 @@ html[data-theme="dark"] {
3033
/* Config Node */
3134
--default-config-node-text-color: rgb(128, 128, 128);
3235
--config-node-highlight-text-color: white;
33-
--config-explorer-file-node-text-color: rgba(0, 0, 0, 0.1);
36+
--config-explorer-file-node-text-color: rgba(0, 0, 0, 0.03);
37+
38+
/* EOL Message */
39+
--eol-message-background-color: rgb(92, 15, 18);
40+
}
41+
42+
.eol-message {
43+
width: 100%;
44+
min-height: 5rem;
45+
margin: 10px 0 20px 0;
46+
padding: 15px;
47+
display: flex;
48+
align-items: center;
49+
justify-content: center;
50+
border-radius: 8px;
51+
background-color: var(--eol-message-background-color);
52+
text-align: center;
53+
flex-direction: column;
54+
}
55+
56+
.eol-message p {
57+
margin: 0;
3458
}
3559

3660
.button.button--secondary {

src/css/projects.module.css renamed to src/css/projects.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222
font-size: 1rem;
2323
margin-bottom: 0.25rem;
2424
font-weight: bold;
25+
display: flex;
26+
}
27+
28+
.archivedProjectTitle:hover {
29+
color: rgb(239, 68, 68);
30+
}
31+
32+
.archivedProjectButton:hover {
33+
background-color: rgb(239, 68, 68);
34+
border: 1px solid rgb(239, 68, 68);
2535
}
2636

2737
.projects {

src/theme/DocItem/index.tsx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import React from "react";
2+
import { HtmlClassNameProvider } from "@docusaurus/theme-common";
3+
import { DocProvider } from "@docusaurus/theme-common/internal";
4+
import DocItemMetadata from "@theme/DocItem/Metadata";
5+
import DocItemLayout from "@theme/DocItem/Layout";
6+
import ReactMarkdown from "react-markdown";
7+
import style from "@site/src/css/markdown-styles.module.css";
8+
import type { Props } from "@theme/DocItem";
9+
10+
function EOLMessage(message: string): JSX.Element {
11+
return (
12+
<div className={"eol-message"}>
13+
<p>
14+
<strong>This project has reached end of life and is no longer maintained.</strong>
15+
</p>
16+
<ReactMarkdown className={style.reactMarkDown}>{"**" + message + "**"}</ReactMarkdown>
17+
</div>
18+
);
19+
}
20+
21+
export default function DocItem(props: Props): JSX.Element {
22+
const docHtmlClassName = `docs-doc-id-${props.content.metadata.id}`;
23+
const MDXComponent = props.content;
24+
const eolPage = props.content?.frontMatter?.eol === true;
25+
const eolMessage = props.content?.frontMatter?.eol_message || "";
26+
27+
return (
28+
<DocProvider content={props.content}>
29+
<HtmlClassNameProvider className={docHtmlClassName}>
30+
<DocItemMetadata />
31+
<DocItemLayout>
32+
<>
33+
{eolPage && EOLMessage(eolMessage)}
34+
<MDXComponent />
35+
</>
36+
</DocItemLayout>
37+
</HtmlClassNameProvider>
38+
</DocProvider>
39+
);
40+
}

0 commit comments

Comments
 (0)