added content
This commit is contained in:
@@ -20,7 +20,6 @@ export default defineConfig({
|
|||||||
remarkPlugins: [remarkDirective, remarkCalloutDirectives, [remarkExternalLinks, {
|
remarkPlugins: [remarkDirective, remarkCalloutDirectives, [remarkExternalLinks, {
|
||||||
target: '_blank'
|
target: '_blank'
|
||||||
}]],
|
}]],
|
||||||
drafts: false,
|
|
||||||
shikiConfig: {
|
shikiConfig: {
|
||||||
theme: 'dracula'
|
theme: 'dracula'
|
||||||
}
|
}
|
||||||
|
BIN
public/img/docs/thumbnails/discord-sdk-godot.webp
Normal file
BIN
public/img/docs/thumbnails/discord-sdk-godot.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
@@ -1,16 +1,44 @@
|
|||||||
---
|
---
|
||||||
import Layout from "../layouts/Layout.astro";
|
import Layout from "../layouts/Layout.astro";
|
||||||
const unsortedDocs = await Astro.glob("./docs/*/*.mdx");
|
import "../styles/docs.scss";
|
||||||
const docs = unsortedDocs
|
const unsortedDocs = await Astro.glob("./docs/*/index.mdx");
|
||||||
.sort(
|
const docs = unsortedDocs.sort(
|
||||||
(a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date),
|
(a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date)
|
||||||
)
|
);
|
||||||
.filter((doc) => !doc.frontmatter.draft);
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout
|
<Layout
|
||||||
title="Docs"
|
title="Docs"
|
||||||
description="This is my personal website with my projects, docs and other useful stuff."
|
description="This is my personal website with my projects, docs and other useful stuff."
|
||||||
>
|
>
|
||||||
<main><div class="content">Docs (not finished yet)</div></main>
|
<main>
|
||||||
|
<div class="content">
|
||||||
|
<h1>Docs</h1>
|
||||||
|
{
|
||||||
|
docs.map((doc) => (
|
||||||
|
<div class="second-content">
|
||||||
|
<a href={doc.url}>
|
||||||
|
<h2>{doc.frontmatter.title}</h2>
|
||||||
|
</a>
|
||||||
|
<p>{doc.frontmatter.subtitle}</p>
|
||||||
|
<a href={"https://github.com/vaporvee/" + doc.frontmatter.repo}>
|
||||||
|
<img
|
||||||
|
src="/github-mark.svg"
|
||||||
|
style="margin-bottom: -10px; margin-right:3px;"
|
||||||
|
/>
|
||||||
|
<p>Respository</p>
|
||||||
|
</a>
|
||||||
|
{doc.frontmatter.has_thumbnail ? (
|
||||||
|
<a href={doc.url}>
|
||||||
|
<img
|
||||||
|
width="800vh"
|
||||||
|
src={"/img/docs/thumbnails/" + doc.frontmatter.repo + ".webp"}
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
layout: ../../../layouts/DocsLayout.astro
|
layout: ../../../layouts/DocsLayout.astro
|
||||||
repo: discord-sdk-godot
|
repo: discord-sdk-godot
|
||||||
title: Activities
|
title: Activities
|
||||||
draft: true
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
layout: ../../../layouts/DocsLayout.astro
|
layout: ../../../layouts/DocsLayout.astro
|
||||||
repo: discord-sdk-godot
|
repo: discord-sdk-godot
|
||||||
title: Building
|
title: Building
|
||||||
draft: true
|
|
||||||
---
|
---
|
||||||
# How to build
|
# How to build
|
||||||
1. Clone the project
|
1. Clone the project
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
layout: ../../../layouts/DocsLayout.astro
|
layout: ../../../layouts/DocsLayout.astro
|
||||||
repo: discord-sdk-godot
|
repo: discord-sdk-godot
|
||||||
title: Debug
|
title: Debug
|
||||||
draft: true
|
|
||||||
---
|
---
|
||||||
The `DiscordSDKDebug` Node shows the current status of the SDK and its values.<br/>
|
The `DiscordSDKDebug` Node shows the current status of the SDK and its values.<br/>
|
||||||
You can also print the `current_user` Dictionary or the whole friendslist Array on the console and manage invites with the Button and input LineEdits. You can also disable and enable the Activity with the button switch.
|
You can also print the `current_user` Dictionary or the whole friendslist Array on the console and manage invites with the Button and input LineEdits. You can also disable and enable the Activity with the button switch.
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
layout: ../../../layouts/DocsLayout.astro
|
layout: ../../../layouts/DocsLayout.astro
|
||||||
repo: discord-sdk-godot
|
repo: discord-sdk-godot
|
||||||
title: Editor Presence
|
title: Editor Presence
|
||||||
draft: true
|
|
||||||
---
|
---
|
||||||
<img width="550px" src="https://raw.githubusercontent.com/vaporvee/discord-sdk-godot/main/project/assets/GodotEditorPresenceBanner.svg" />
|
<img width="550px" src="https://raw.githubusercontent.com/vaporvee/discord-sdk-godot/main/project/assets/GodotEditorPresenceBanner.svg" />
|
||||||
<br/>
|
<br/>
|
||||||
|
@@ -1,8 +1,17 @@
|
|||||||
---
|
---
|
||||||
layout: ../../../layouts/DocsLayout.astro
|
layout: ../../../layouts/DocsLayout.astro
|
||||||
repo: discord-sdk-godot
|
repo: discord-sdk-godot
|
||||||
|
has_thumbnail: true
|
||||||
title: Discord SDK plugin for Godot
|
title: Discord SDK plugin for Godot
|
||||||
draft: true
|
subtitle: Discord Game SDK support for GDScript in Godot Engine 4.2. with the easiest code pattern!
|
||||||
|
features: |
|
||||||
|
- Activities (Make people see what you are playing)
|
||||||
|
- Invites
|
||||||
|
- Steam and launch command registering
|
||||||
|
- User information
|
||||||
|
- Relationship Manager (Get friendlist and its updates)
|
||||||
|
- Overlay management
|
||||||
|
- Editor Presence (optional)
|
||||||
---
|
---
|
||||||
|
|
||||||
:::note{title="Important Discord Game SDK information"}
|
:::note{title="Important Discord Game SDK information"}
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
layout: ../../../layouts/DocsLayout.astro
|
layout: ../../../layouts/DocsLayout.astro
|
||||||
repo: discord-sdk-godot
|
repo: discord-sdk-godot
|
||||||
title: Relationship Manager
|
title: Relationship Manager
|
||||||
draft: true
|
|
||||||
---
|
---
|
||||||
# Variables
|
# Variables
|
||||||
|
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
layout: ../../../layouts/DocsLayout.astro
|
layout: ../../../layouts/DocsLayout.astro
|
||||||
repo: discord-sdk-godot
|
repo: discord-sdk-godot
|
||||||
title: Users
|
title: Users
|
||||||
draft: true
|
|
||||||
---
|
---
|
||||||
# Methods
|
# Methods
|
||||||
|
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
layout: ../../../layouts/DocsLayout.astro
|
layout: ../../../layouts/DocsLayout.astro
|
||||||
repo: discord-sdk-godot
|
repo: discord-sdk-godot
|
||||||
title: Utillity or other stuff
|
title: Utillity or other stuff
|
||||||
draft: true
|
|
||||||
---
|
---
|
||||||
# Methods
|
# Methods
|
||||||
## Run callbacks
|
## Run callbacks
|
||||||
|
5
src/styles/docs.scss
Normal file
5
src/styles/docs.scss
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
.content{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
@@ -25,6 +25,17 @@ h1 {
|
|||||||
margin-inline: 10vw;
|
margin-inline: 10vw;
|
||||||
margin-bottom: 11vh;
|
margin-bottom: 11vh;
|
||||||
}
|
}
|
||||||
|
.second-content {
|
||||||
|
text-align: center;
|
||||||
|
$second-content-clr: #6e6e6e40;
|
||||||
|
background-color: $second-content-clr;
|
||||||
|
border-radius: 25px;
|
||||||
|
border: 1px solid lighten($second-content-clr, 16%);
|
||||||
|
width: 80vh;
|
||||||
|
padding: 1vh;
|
||||||
|
margin-inline: 10vw;
|
||||||
|
margin-bottom: 11vh;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar{
|
.sidebar{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
Reference in New Issue
Block a user