Skip to content

Commit

Permalink
feat: script url added for post messager
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsham-dev committed Aug 6, 2024
1 parent ca98be9 commit fd6c30c
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions docs/vocs.config.ts → docs/vocs.config.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { defineConfig } from 'vocs';
import { defineConfig } from "vocs";

export default defineConfig({
title: 'Planck.js',
rootDir: '.',
title: "Planck.js",
rootDir: ".",
basePath: "/planck.js/docs/",
baseUrl: "/planck.js/docs/",
topNav: [
{ text: 'API Reference', link: '/api/'},
{ text: 'GitHub', link: 'https://github.com/piqnt/planck.js/'},
{ text: 'Discord', link: 'https://discord.gg/znjh6J7'},
topNav: [
{ text: "API Reference", link: "/api/" },
{ text: "GitHub", link: "https://github.com/piqnt/planck.js/" },
{ text: "Discord", link: "https://discord.gg/znjh6J7" },
],
sidebar: [
{ link: "/", text: "Introduction" },
{
text: 'Get Started',
text: "Get Started",
collapsed: true,
items: [
{ link: "/run-your-code", text: "Run Your Code" },
Expand All @@ -24,12 +24,18 @@ export default defineConfig({
},

{
text: 'API Conventions',
text: "API Conventions",
collapsed: true,
items: [
{ link: "/api-conventions/units", text: "Units" },
{ link: "/api-conventions/factories-and-definitions", text: "Factories and Definitions" },
{ link: "/api-conventions/implicit-destruction", text: "Implicit Destruction" },
{
link: "/api-conventions/factories-and-definitions",
text: "Factories and Definitions",
},
{
link: "/api-conventions/implicit-destruction",
text: "Implicit Destruction",
},
{ link: "/api-conventions/user-data", text: "User Data" },
],
},
Expand All @@ -39,7 +45,7 @@ export default defineConfig({
{ link: "/fixture", text: "Fixture" },

{
text: 'Shape',
text: "Shape",
collapsed: true,
link: "/shape",
items: [
Expand All @@ -52,7 +58,7 @@ export default defineConfig({
},

{
text: 'Joint',
text: "Joint",
collapsed: true,
link: "/joint",
items: [
Expand Down Expand Up @@ -84,4 +90,5 @@ export default defineConfig({
{ link: "/references-resources", text: "References & Resources" },
{ link: "/credits", text: "Credits & License" },
],
})
head: () => <script src="/plank.js/docs/messenger.js" />,
});

0 comments on commit fd6c30c

Please sign in to comment.