diff --git a/astro.config.mjs b/astro.config.mjs index 80c231d..524542a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -20,7 +20,6 @@ export default defineConfig({ remarkPlugins: [remarkDirective, remarkCalloutDirectives, [remarkExternalLinks, { target: '_blank' }]], - drafts: false, shikiConfig: { theme: 'dracula' } diff --git a/public/img/docs/thumbnails/discord-sdk-godot.webp b/public/img/docs/thumbnails/discord-sdk-godot.webp new file mode 100644 index 0000000..57d81d7 Binary files /dev/null and b/public/img/docs/thumbnails/discord-sdk-godot.webp differ diff --git a/src/pages/docs.astro b/src/pages/docs.astro index e50fd4a..cad42ed 100644 --- a/src/pages/docs.astro +++ b/src/pages/docs.astro @@ -1,16 +1,44 @@ --- import Layout from "../layouts/Layout.astro"; -const unsortedDocs = await Astro.glob("./docs/*/*.mdx"); -const docs = unsortedDocs - .sort( - (a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date), - ) - .filter((doc) => !doc.frontmatter.draft); +import "../styles/docs.scss"; +const unsortedDocs = await Astro.glob("./docs/*/index.mdx"); +const docs = unsortedDocs.sort( + (a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date) +); --- - Docs (not finished yet) + + + Docs + { + docs.map((doc) => ( + + + {doc.frontmatter.title} + + {doc.frontmatter.subtitle} + + + Respository + + {doc.frontmatter.has_thumbnail ? ( + + + + ) : null} + + )) + } + + diff --git a/src/pages/docs/discord-sdk-godot/activities.mdx b/src/pages/docs/discord-sdk-godot/activities.mdx index a91e90b..3afb0ad 100644 --- a/src/pages/docs/discord-sdk-godot/activities.mdx +++ b/src/pages/docs/discord-sdk-godot/activities.mdx @@ -2,7 +2,6 @@ layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot title: Activities -draft: true --- # Variables diff --git a/src/pages/docs/discord-sdk-godot/building.mdx b/src/pages/docs/discord-sdk-godot/building.mdx index 44b25f0..a5c8a30 100644 --- a/src/pages/docs/discord-sdk-godot/building.mdx +++ b/src/pages/docs/discord-sdk-godot/building.mdx @@ -2,7 +2,6 @@ layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot title: Building -draft: true --- # How to build 1. Clone the project diff --git a/src/pages/docs/discord-sdk-godot/debug.mdx b/src/pages/docs/discord-sdk-godot/debug.mdx index 6ff0f80..e63bfdb 100644 --- a/src/pages/docs/discord-sdk-godot/debug.mdx +++ b/src/pages/docs/discord-sdk-godot/debug.mdx @@ -2,7 +2,6 @@ layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot title: Debug -draft: true --- The `DiscordSDKDebug` Node shows the current status of the SDK and its values. 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. diff --git a/src/pages/docs/discord-sdk-godot/editor_presence.mdx b/src/pages/docs/discord-sdk-godot/editor_presence.mdx index bfa50d6..f14dcc2 100644 --- a/src/pages/docs/discord-sdk-godot/editor_presence.mdx +++ b/src/pages/docs/discord-sdk-godot/editor_presence.mdx @@ -2,7 +2,6 @@ layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot title: Editor Presence -draft: true --- diff --git a/src/pages/docs/discord-sdk-godot/index.mdx b/src/pages/docs/discord-sdk-godot/index.mdx index d2338ee..40973ec 100644 --- a/src/pages/docs/discord-sdk-godot/index.mdx +++ b/src/pages/docs/discord-sdk-godot/index.mdx @@ -1,8 +1,17 @@ --- layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot +has_thumbnail: true 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"} diff --git a/src/pages/docs/discord-sdk-godot/relationship_manager.mdx b/src/pages/docs/discord-sdk-godot/relationship_manager.mdx index 44f1da8..d82a360 100644 --- a/src/pages/docs/discord-sdk-godot/relationship_manager.mdx +++ b/src/pages/docs/discord-sdk-godot/relationship_manager.mdx @@ -2,7 +2,6 @@ layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot title: Relationship Manager -draft: true --- # Variables diff --git a/src/pages/docs/discord-sdk-godot/users.mdx b/src/pages/docs/discord-sdk-godot/users.mdx index 6501504..4069cf9 100644 --- a/src/pages/docs/discord-sdk-godot/users.mdx +++ b/src/pages/docs/discord-sdk-godot/users.mdx @@ -2,7 +2,6 @@ layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot title: Users -draft: true --- # Methods diff --git a/src/pages/docs/discord-sdk-godot/utillity_or_other.mdx b/src/pages/docs/discord-sdk-godot/utillity_or_other.mdx index d5095e3..2ed7501 100644 --- a/src/pages/docs/discord-sdk-godot/utillity_or_other.mdx +++ b/src/pages/docs/discord-sdk-godot/utillity_or_other.mdx @@ -2,7 +2,6 @@ layout: ../../../layouts/DocsLayout.astro repo: discord-sdk-godot title: Utillity or other stuff -draft: true --- # Methods ## Run callbacks diff --git a/src/styles/docs.scss b/src/styles/docs.scss new file mode 100644 index 0000000..e4c3d23 --- /dev/null +++ b/src/styles/docs.scss @@ -0,0 +1,5 @@ +.content{ + display: flex; + flex-direction: column; + align-items: center; +} \ No newline at end of file diff --git a/src/styles/main.scss b/src/styles/main.scss index c3e63a7..41f6729 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -25,6 +25,17 @@ h1 { margin-inline: 10vw; 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{ position: absolute;
{doc.frontmatter.subtitle}
Respository