-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from minecraft-essentials/development
New Redesign of site
- Loading branch information
Showing
30 changed files
with
667 additions
and
120 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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit ${1} |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run check |
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,7 @@ | ||
{ | ||
"plugins": {}, | ||
"filters": {}, | ||
"rules": { | ||
"no-todo": true | ||
} | ||
} |
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,87 +1,141 @@ | ||
import react from "@astrojs/react"; | ||
import starlight from "@astrojs/starlight"; | ||
import { defineConfig } from "astro/config"; | ||
|
||
import tailwind from "@astrojs/tailwind"; | ||
import { defineConfig } from "astro/config"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: "https://minecraft-essentials.pages.github.io/", | ||
redirects: { | ||
"/docsrs": "https://docs.rs/minecraft-essentials/", | ||
"/cratesio": "https://crates.io/minecraft-essentials/", | ||
"/github": "https://github.com/minecraft-essentials", | ||
}, | ||
|
||
site: 'https://minecraft-essentials.pages.github.io/', | ||
|
||
|
||
|
||
|
||
|
||
|
||
integrations: [ | ||
react(), | ||
tailwind({ applyBaseStyles: false }), | ||
starlight({ | ||
title: "Minecraft-Essentials", | ||
customCss: ["./src/styles/tailwind.css"], | ||
social: { | ||
github: "https://github.com/minecraft-essentials/minecraft-essentials", | ||
}, | ||
defaultLocale: "root", | ||
locales: { | ||
root: { | ||
label: "English", | ||
lang: "en", | ||
}, | ||
es: { | ||
label: "Español", | ||
}, | ||
zh: { | ||
label: "中文", | ||
}, | ||
hi: { | ||
label: "हिन्दी", | ||
}, | ||
ar: { | ||
label: "العربية", | ||
}, | ||
}, | ||
sidebar: [ | ||
{ | ||
label: "Infomation", | ||
autogenerate: { | ||
directory: "infomation", | ||
}, | ||
}, | ||
{ | ||
label: "NPM Documentation", | ||
autogenerate: { | ||
directory: "npm", | ||
}, | ||
}, | ||
{ | ||
label: "Rust Documenation", | ||
items: [ | ||
{ | ||
label: "Getting Started", | ||
link: "https://docs.rs/minecraft-essentials/", | ||
}, | ||
{ | ||
label: "Oauth", | ||
link: "https://docs.rs/minecraft-essentials/oauth", | ||
}, | ||
], | ||
}, | ||
{ | ||
label: "Featured Clients", | ||
items: [ | ||
{ | ||
label: "TeaClient", | ||
link: "https://teaclient.net", | ||
}, | ||
{ | ||
label: "OpusClient", | ||
link: "https://opusclient.com", | ||
}, | ||
], | ||
}, | ||
], | ||
}), | ||
], | ||
integrations: [ | ||
react(), | ||
tailwind({ | ||
applyBaseStyles: false, | ||
}), | ||
starlight({ | ||
title: "Minecraft-Essentials", | ||
customCss: ["./src/styles/tailwind.css"], | ||
social: { | ||
github: "https://github.com/minecraft-essentials/minecraft-essentials", | ||
}, | ||
defaultLocale: "root", | ||
locales: { | ||
root: { | ||
label: "English", | ||
lang: "en", | ||
}, | ||
es: { | ||
label: "Español", | ||
}, | ||
zh: { | ||
label: "中文", | ||
}, | ||
hi: { | ||
label: "हिन्दी", | ||
}, | ||
ar: { | ||
label: "العربية", | ||
}, | ||
}, | ||
sidebar: [ | ||
{ | ||
label: "Infomation", | ||
items: [ | ||
{ | ||
label: "Introduction", | ||
link: "/infomation/intro/", | ||
}, | ||
{ | ||
label: "Contribute", | ||
link: "/infomation/contribute/", | ||
badge: { | ||
text: "Experiemental", | ||
variant: "caution", | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
label: "Documentation", | ||
items: [ | ||
{ | ||
label: "Installation", | ||
link: "/guides/install/", | ||
}, | ||
{ | ||
label: "OAuth", | ||
link: "/guides/oauth/", | ||
badge: { | ||
text: "Recomended!", | ||
variant: "success", | ||
}, | ||
}, | ||
{ | ||
label: "DeviceCode", | ||
link: "/guides/device_code/", | ||
badge: { | ||
text: "Secure!", | ||
variant: "note", | ||
}, | ||
}, | ||
{ | ||
label: "Launching", | ||
link: "/guides/launching", | ||
badge: { | ||
text: "Experimental", | ||
variant: "caution", | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
label: "Resources", | ||
items: [ | ||
{ | ||
label: "Docs.rs", | ||
link: "https://docs.rs/minecraft-essentials/", | ||
}, | ||
{ | ||
label: "Crates.io", | ||
link: "https://crates.io/minecraft-essentials/", | ||
}, | ||
], | ||
}, | ||
{ | ||
label: "Minecraft Clients", | ||
items: [ | ||
{ | ||
label: "TeaClient", | ||
link: "https://teaclient.net", | ||
badge: { | ||
text: "Featured!", | ||
variant: "default", | ||
}, | ||
}, | ||
{ | ||
label: "OpusClient", | ||
link: "https://opusclient.com", | ||
}, | ||
], | ||
}, | ||
], | ||
components: { | ||
SiteTitle: "./src/components/starlight/SiteTitle.astro", | ||
}, | ||
}), | ||
], | ||
compressHTML: true, | ||
cacheDir: "./src", | ||
vite: { | ||
resolve: { | ||
alias: { | ||
"@src": "/src", | ||
}, | ||
}, | ||
}, | ||
}); |
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 @@ | ||
module.exports = { extends: ["@commitlint/config-conventional"] }; |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
--- | ||
import Tabs from './Tabs.astro'; | ||
import { TabItem } from '@astrojs/starlight/components'; | ||
--- | ||
|
||
<Tabs group="languages"> | ||
<TabItem label='Rust'> | ||
For extended documentation check <a href="/docsrs">docs.rs</a> | ||
<slot name="rs" /> | ||
</TabItem> | ||
<TabItem label='TypeScript'> | ||
<slot name="ts" /> | ||
</TabItem> | ||
<TabItem label='JavaScript'> | ||
<slot name="js" /> | ||
</TabItem> | ||
</Tabs> |
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,22 @@ | ||
--- | ||
import Tabs from './Tabs.astro'; | ||
import { TabItem } from '@astrojs/starlight/components'; | ||
--- | ||
|
||
<Tabs group="package-managers"> | ||
<TabItem label="Cargo"> | ||
<slot name="cargo" /> | ||
</TabItem> | ||
<TabItem label="Bun"> | ||
<slot name="bun" /> | ||
</TabItem> | ||
<TabItem label="Yarn"> | ||
<slot name="yarn" /> | ||
</TabItem> | ||
<TabItem label="pnpm"> | ||
<slot name="pnpm" /> | ||
</TabItem> | ||
<TabItem label="npm"> | ||
<slot name="npm" /> | ||
</TabItem> | ||
</Tabs> |
Oops, something went wrong.