Switch to Purpur; start work on website

This commit is contained in:
TheTechRobo 2022-03-15 19:39:07 -04:00
parent 3a7b49c6ad
commit a77d79cfd5
6 changed files with 130 additions and 9 deletions

10
docs/Makefile Normal file
View File

@ -0,0 +1,10 @@
all:
make clean || echo "build folder doesn't exist"
make build
clean:
rm -Ir build
build:
mkdir build
j2 -f json index.j2 index.json > build/index.html

5
docs/README.md Normal file
View File

@ -0,0 +1,5 @@
# Building
```zsh
pip install j2cli
make
```

48
docs/build/index.html vendored Normal file
View File

@ -0,0 +1,48 @@
<!DOCTYPE html>
<head>
<title>Lifesteal SMP by TheTechRobo</title>
<style>
/* Some CSS ideas taken from the motherf*cking websites */
body {
padding-left: 30%;
line-height: 1.4;
background-color: #EEEEEE;
font-size: 16px;
max-width: 40%;
}
</style>
</head>
<body>
<header>
<h1>Lifesteal SMP by TheTechRobo</h1>
</header>
<aside>
<h2>Yes, I know this website looks like garbage</h2>
<h3><i>But I don't care</i></h3>
<p>This website may look garbage but to your browser it's candy.
<br>It uses semantic HTML5 tags so your browser knows what on Earth it's looking at.
<br>STOP USING <code>&lt;div id="content"&gt;</code> PLEASE OMG IT MAKES MY BRAIN HURT
<br></p>
<!--<cite><a href="http://motherfuckingwebsite.com/">motherf*ckingwebsite.com (contains profanity)</a></cite>-->
</aside>
<article>
<h2>IP Address: <code>play.lifesteal.thetechrobo.ca</code>
(Java 1.18.2 ONLY)
</h2>
<h2>Recommended Mods.</h2>
<p>Minecraft has a number of flaws. <a href="https://modrinth.com/mod/purpurclient">Purpur Client</a> solves many of these problems.</p>
<h2>Server Details</h2>
<dl>
<dt>Server</dt>
<dd>Purpur 1.18.2</dd>
<dt>Plugins</dt>
<dd>
Lifesteal Plugin (created by TheTechRobo)
</dd>
<dt>Whitelist</dt>
<dd><span style="color: red;"><b>On</b></span> (<a href="/serverfiles/whitelist">check</a>)</dd>
</dl>
</body>

53
docs/index.j2 Normal file
View File

@ -0,0 +1,53 @@
<!DOCTYPE html>
<head>
<title>Lifesteal SMP by TheTechRobo</title>
<style>
/* Some CSS ideas taken from the motherf*cking websites */
body {
padding-left: 30%;
line-height: 1.4;
background-color: #EEEEEE;
font-size: 16px;
max-width: 40%;
}
</style>
</head>
<body>
<h1>
TODO: MOVE TO HUGO
</h1>
<header>
<h1>Lifesteal SMP by TheTechRobo</h1>
</header>
<aside>
<h2>Yes, I know this website looks like garbage</h2>
<h3><i>But I don't care</i></h3>
<p>This website may look garbage but to your browser it's candy.
<br>It uses semantic HTML5 tags so your browser knows what on Earth it's looking at.
<br>STOP USING <code>&lt;div id="content"&gt;</code> PLEASE OMG IT MAKES MY BRAIN HURT
<br></p>
<!--<cite><a href="http://motherfuckingwebsite.com/">motherf*ckingwebsite.com (contains profanity)</a></cite>-->
</aside>
<article>
<h2>IP Address: <code>play.lifesteal.thetechrobo.ca</code>
{% if onlyjava %}
(Java {{ mcversion }} ONLY)
{% else %}
(Java + Bedrock {{mcversion}}
{% endif %}
</h2>
<h2>Recommended Mods.</h2>
<p>Minecraft has a number of flaws. <a href="https://modrinth.com/mod/purpurclient">Purpur Client</a> solves many of these problems.</p>
<h2>Server Details</h2>
<dl>
<dt>Server</dt>
<dd>Purpur {{ mcversion }}</dd>
<dt>Plugins</dt>
<dd>
Lifesteal Plugin (created by TheTechRobo)
</dd>
<dt>Whitelist</dt>
<dd><span style="color: red;"><b>On</b></span> (<a href="/serverfiles/whitelist">check</a>)</dd>
</dl>
</body>

4
docs/index.json Normal file
View File

@ -0,0 +1,4 @@
{
"onlyjava": true,
"mcversion": "1.18.2"
}

19
pom.xml
View File

@ -20,19 +20,20 @@
<repositories>
<!-- This adds the Spigot Maven repository to the build -->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<id>purpur-repo</id>
<url>https://repo.purpurmc.org/snapshots</url>
</repository>
</repositories>
<dependencies>
<!--This adds the Spigot API artifact to the build -->
<!--This adds the Purpur API artifact to the build -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<groupId>org.purpurmc.purpur</groupId>
<artifactId>purpur-api</artifactId>
<version>1.18.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>