-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: DuckeyDev <[email protected]>
- Loading branch information
1 parent
3fb8da1
commit 710ccfd
Showing
6 changed files
with
93 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "Getting Started" | ||
--- | ||
|
||
## Prerequisites | ||
|
||
Before you download and install, ensure that you have the latest version of Java installed on your machine. | ||
|
||
## Download Links | ||
|
||
#### Windows | ||
|
||
For Windows, click [here](http://example.com/windows) to download. | ||
|
||
#### MacOS | ||
|
||
For MacOS, click [here](http://example.com/macos) to download. | ||
|
||
#### Linux | ||
|
||
For Linux, click [here](http://example.com/linux) to download. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
import Footer from "@component/footer.astro"; | ||
import Head from "@component/head.astro"; | ||
import Header from "@component/header.astro"; | ||
import { twMerge } from "tailwind-merge"; | ||
import "../styles/style.css"; | ||
export interface Props { | ||
className?: string; | ||
} | ||
const { title } = Astro.props; | ||
--- | ||
|
||
<Head | ||
title={String(title) ?? "TeaClient Wiki Page"} | ||
customDescription="This is the official documentation for TeaClient for both Players & Developers" | ||
bannerPath="/assets/images/banner.png" | ||
/> | ||
<Header /> | ||
<div | ||
class={twMerge( | ||
`flex flex-col h-screen text-white my-[5%] mx-[5%] bg-[var(--nav-color)] rounded-lg`, | ||
)} | ||
> | ||
<h1>{title}</h1> | ||
<slot /> | ||
</div> | ||
<Footer /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
import { getCollection } from "astro:content"; | ||
import WikiContent from "../../layouts/wikiContent.astro"; | ||
import type { CollectionEntry } from "astro:content"; | ||
export async function getStaticPaths() { | ||
const wikis = await getCollection("wiki"); | ||
return wikis.map((wiki) => ({ | ||
params: { slug: wiki.slug }, | ||
props: wiki, | ||
})); | ||
} | ||
type Props = CollectionEntry<"wiki">; | ||
const post = Astro.props; | ||
const { Content } = await post.render(); | ||
--- | ||
|
||
<WikiContent {...post.data}> | ||
<Content /> | ||
</WikiContent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
--- | ||
import Layout from "../../layouts/wiki.astro"; | ||
import { getCollection } from "astro:content"; | ||
import Layout from "../../layouts/layout.astro"; | ||
const wikiContent = await getCollection("wiki"); | ||
--- | ||
|
||
<Layout title="Home | TeaClent Wiki"> | ||
<h1>Welcome to TeaClent Wiki</h1> | ||
<p> | ||
This is the official documentation for TeaClent for both Players & | ||
Developers | ||
</p> | ||
<section> | ||
<ul> | ||
{ | ||
wikiContent.map((page) => { | ||
return ( | ||
<a href={`/wiki/${page.slug}/`}> | ||
<h4 class="title">{page.data.title}</h4> | ||
</a> | ||
); | ||
}) | ||
} | ||
</ul> | ||
</section> | ||
</Layout> |