From fd6c30c6828e096a245a986cc9999a00a2eca8a2 Mon Sep 17 00:00:00 2001 From: Arsham Date: Tue, 6 Aug 2024 07:02:59 -0700 Subject: [PATCH 1/2] feat: script url added for post messager --- docs/{vocs.config.ts => vocs.config.tsx} | 35 ++++++++++++++---------- 1 file changed, 21 insertions(+), 14 deletions(-) rename docs/{vocs.config.ts => vocs.config.tsx} (77%) diff --git a/docs/vocs.config.ts b/docs/vocs.config.tsx similarity index 77% rename from docs/vocs.config.ts rename to docs/vocs.config.tsx index 30715495..be561e21 100644 --- a/docs/vocs.config.ts +++ b/docs/vocs.config.tsx @@ -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" }, @@ -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" }, ], }, @@ -39,7 +45,7 @@ export default defineConfig({ { link: "/fixture", text: "Fixture" }, { - text: 'Shape', + text: "Shape", collapsed: true, link: "/shape", items: [ @@ -52,7 +58,7 @@ export default defineConfig({ }, { - text: 'Joint', + text: "Joint", collapsed: true, link: "/joint", items: [ @@ -84,4 +90,5 @@ export default defineConfig({ { link: "/references-resources", text: "References & Resources" }, { link: "/credits", text: "Credits & License" }, ], -}) + head: () =>