Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export default defineConfig({
"/src/styles/custom.css",
"/src/styles/background.css",
"/src/styles/cards.css",
"/src/styles/button-styles.css",
"/src/styles/games.css",
],
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/splashkit' },
Expand All @@ -64,6 +66,10 @@ export default defineConfig({
src: "./src/assets/favicon.svg",
},
sidebar: [
{
label: "Try Games",
autogenerate: { directory: "games" },
},
{
label: "Installation",
collapsed: false,
Expand Down
5 changes: 4 additions & 1 deletion scripts/api-pages-script.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,10 @@ for (const categoryKey in jsonData) {
if (allExamples.length > 0) {
mdxContent += `**API Documentation Code Examples**:\n\n`
allExamples.forEach((example) => {
const exampleName = getGroupName(jsonData, example.name);
let exampleName = getGroupName(jsonData, example.name);
if (!exampleName) {
exampleName = example.name.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
}
mdxContent += `- [${exampleName}](${example.url}): ${example.title}\n`
})
}
Expand Down
Loading