Added site structure and some guides.

This commit is contained in:
Toastie (DCS Team) 2024-04-13 23:16:15 +12:00
parent d6ff6dab94
commit b860c599c7
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
15 changed files with 8902 additions and 0 deletions

21
.gitignore vendored Normal file
View file

@ -0,0 +1,21 @@
# build output
dist/
# generated types
.astro/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store

4
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}

11
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}

21
astro.config.mjs Normal file
View file

@ -0,0 +1,21 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'Draconis Docs',
social: {
github: 'https://toastielab.dev/Dragonschildhosting/Draconis-docs',
discord: 'https://discord.gg/hmrmathweg',
},
sidebar: [
{
label: 'Guides',
autogenerate: { directory: 'guides' },
},
],
}),
],
});

8742
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

19
package.json Normal file
View file

@ -0,0 +1,19 @@
{
"name": "draconis-docs",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/starlight": "^0.21.5",
"astro": "^4.3.5",
"sharp": "^0.32.5",
"@astrojs/check": "^0.5.10",
"typescript": "^5.4.5"
}
}

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
src/assets/akheemah.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

6
src/content/config.ts Normal file
View file

@ -0,0 +1,6 @@
import { defineCollection } from 'astro:content';
import { docsSchema } from '@astrojs/starlight/schema';
export const collections = {
docs: defineCollection({ schema: docsSchema() }),
};

View file

@ -0,0 +1,21 @@
---
title: How to access your Minecraft Server's files
---
:::note
This is one of our intro to using the panel guides. if there is something you do not understand feel free to contact our support team for assistance in our [Discord server](https://discord.gg/hmrmathweg)
:::
1. Click the “Files” option in the navbar of your server
2. You will be shown a list of your servers files
Whilst inside the files tab, there are a few handy tips and tricks to know:
- To edit a file, if it is one of the supported file extensions, just click the file name and it will automatically open in the built-in file editor. Once youre done, just click Save to save the file back to your server. This also works for `.log.gz` files, you do not need to unzip them before opening them as the editor will do this automatically.
- To download a file, click the three dots at the end of the file and select download. If you wish to download a folder, or a ZIP of multiple files at once, just tick the files then click the “Archive” button at the bottom of the page and the File Manager will automatically ZIP the files and then you can download them like you would a normal file.
- To upload a file/folder, just drag the files straight onto the webpage, or use the Upload button
- To extract a ZIP file, go to the folder where the ZIP is located and click the three dots at the end of the file name and select unarchive. Please note this does not support `.rar `files, only `.zip` and `.tar.gz`
- To rename files, click the three dots at the end of the file name and select rename. Please note that the destination must not exist already.
- To delete files, select the checkbox next to as many files as you wish, then click the Delete button at the bottom of the page. This will automatically delete them at a fast speed so even large folders such as Dynmap can be deleted, unlike with SFTP
- To move files, select the files which you wish to move, click the three dots at the end of the file name and select move. Enter the full path to the directory you wish to move the files, for example `/plugins/WorldEdit/schematics`.

View file

@ -0,0 +1,13 @@
---
title: Guides section home
---
# What is this section about?
This section contains the guides on using the [Draconis panel](https://panel.dragonschildhosting.net)
## Our current guides
using sftp
accessing your server files

View file

@ -0,0 +1,22 @@
---
title: How to access your Minecraft Server's files using sftp
---
:::note
This may need a little bit of technical stuff but this guide should help you as much as it can
:::
- You will need to install FileZilla from [their website](https://filezilla-project.org/download.php). When installing it, make sure to click No to any advertisements or prompts for unwanted software.
- Inside your panel, go to the `Settings` tab, then to the `SFTP Details` portion of the page:
![](https://cdn.discordapp.com/attachments/881396607218753607/1228655875603038218/image.png?ex=662cd5f4&is=661a60f4&hm=889931f812a20661a3d4d98a638747655162709d4b4994307a55f3a99c7fe0a6&)
- Open Filezilla. On the top, you should see a Quick Connect bar.
- In the Host box enter the `FTP URI` from the gamepanel.
- Enter your gamepanel password into the Password box.
![](https://cdn.discordapp.com/attachments/881396607218753607/1228659447371399279/image.png?ex=662cd947&is=661a6447&hm=10f4da6ff567f22012e926d7c74ea6874b4291a94b7a0a6c0d852711d5be2270&)
Select `Quickconnect` and then you can access your server files.

View file

@ -0,0 +1,17 @@
---
title: Welcome to the docs for Draconis panel
template: splash
hero:
tagline: We hope you can find what you are looking for!
image:
file: ../../assets/akheemah.png
actions:
- text: Read our guides
link: /guides/
icon: right-arrow
variant: primary
- text: The panel in mention
link: https://panel.dragonschildhosting.com
icon: external
---

2
src/env.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />

3
tsconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"extends": "astro/tsconfigs/strict"
}