From 3050ea156011a4cd9ab663f63dcf3bd97f1b7c20 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Sun, 30 Mar 2025 18:42:16 +0200 Subject: [PATCH] Add coverage to Nav --- docs/.vitepress/config.mts | 134 ++++++++++++++++++------------------- 1 file changed, 65 insertions(+), 69 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index dcd7c9d..460f06d 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,69 +1,65 @@ -import { defineConfig } from 'vitepress' - -// https://vitepress.dev/reference/site-config -export default defineConfig({ - title: "Jecs", - base: "/jecs/", - description: "A VitePress Site", - themeConfig: { - // https://vitepress.dev/reference/default-theme-config - nav: [ - { text: 'Learn', link: '/' }, - { text: 'API', link: '/api/jecs.md' }, - { text: 'Examples', link: 'https://github.com/Ukendio/jecs/tree/main/examples' }, - ], - - sidebar: { - "/api/": [ - { - text: "API reference", - items: [ - { text: "jecs", link: "/api/jecs" }, - { text: "World", link: "/api/world" }, - { text: "Query", link: "/api/query" } - ] - } - ], - "/learn/": [ - { - text: "Introduction", - items: [ - { text: 'Getting Started', link: '/learn/overview/get-started' }, - { text: 'First Jecs Project', link: '/learn/overview/first-jecs-project' } - ] - }, - { - text: 'Concepts', - items: [ - { text: 'Entities and Components', link: '/learn/concepts/entities-and-components' }, - { text: 'Queries', link: '/learn/concepts/queries' }, - { text: 'Relationships', link: '/learn/concepts/relationships' }, - { text: 'Component Traits', link: 'learn/concepts/component-traits' }, - { text: 'Addons', link: '/learn/concepts/addons' } - ] - }, - { - text: "FAQ", - items: [ - { text: 'How can I contribute?', link: '/learn/faq/contributing' } - ] - }, - - ], - "/contributing/": [ - { - text: 'Contributing', - items: [ - { text: 'Contribution Guidelines', link: '/learn/contributing/guidelines' }, - { text: 'Submitting Issues', link: '/learn/contributing/issues' }, - { text: 'Submitting Pull Requests', link: '/learn/contributing/pull-requests' }, - ] - } - ] - }, - - socialLinks: [ - { icon: 'github', link: 'https://github.com/ukendio/jecs' } - ] - } -}) +import { defineConfig } from "vitepress"; + +// https://vitepress.dev/reference/site-config +export default defineConfig({ + title: "Jecs", + base: "/jecs/", + description: "A VitePress Site", + themeConfig: { + // https://vitepress.dev/reference/default-theme-config + nav: [ + { text: "Learn", link: "/" }, + { text: "API", link: "/api/jecs.md" }, + { text: "Examples", link: "https://github.com/Ukendio/jecs/tree/main/examples" }, + { text: "Coverage", link: "../coverage" }, + ], + + sidebar: { + "/api/": [ + { + text: "API reference", + items: [ + { text: "jecs", link: "/api/jecs" }, + { text: "World", link: "/api/world" }, + { text: "Query", link: "/api/query" }, + ], + }, + ], + "/learn/": [ + { + text: "Introduction", + items: [ + { text: "Getting Started", link: "/learn/overview/get-started" }, + { text: "First Jecs Project", link: "/learn/overview/first-jecs-project" }, + ], + }, + { + text: "Concepts", + items: [ + { text: "Entities and Components", link: "/learn/concepts/entities-and-components" }, + { text: "Queries", link: "/learn/concepts/queries" }, + { text: "Relationships", link: "/learn/concepts/relationships" }, + { text: "Component Traits", link: "learn/concepts/component-traits" }, + { text: "Addons", link: "/learn/concepts/addons" }, + ], + }, + { + text: "FAQ", + items: [{ text: "How can I contribute?", link: "/learn/faq/contributing" }], + }, + ], + "/contributing/": [ + { + text: "Contributing", + items: [ + { text: "Contribution Guidelines", link: "/learn/contributing/guidelines" }, + { text: "Submitting Issues", link: "/learn/contributing/issues" }, + { text: "Submitting Pull Requests", link: "/learn/contributing/pull-requests" }, + ], + }, + ], + }, + + socialLinks: [{ icon: "github", link: "https://github.com/ukendio/jecs" }], + }, +});