Add coverage to Nav

This commit is contained in:
Ukendio 2025-03-30 18:42:16 +02:00
parent 5a1424ee48
commit 3050ea1560

View file

@ -1,4 +1,4 @@
import { defineConfig } from 'vitepress' import { defineConfig } from "vitepress";
// https://vitepress.dev/reference/site-config // https://vitepress.dev/reference/site-config
export default defineConfig({ export default defineConfig({
@ -8,9 +8,10 @@ export default defineConfig({
themeConfig: { themeConfig: {
// https://vitepress.dev/reference/default-theme-config // https://vitepress.dev/reference/default-theme-config
nav: [ nav: [
{ text: 'Learn', link: '/' }, { text: "Learn", link: "/" },
{ text: 'API', link: '/api/jecs.md' }, { text: "API", link: "/api/jecs.md" },
{ text: 'Examples', link: 'https://github.com/Ukendio/jecs/tree/main/examples' }, { text: "Examples", link: "https://github.com/Ukendio/jecs/tree/main/examples" },
{ text: "Coverage", link: "../coverage" },
], ],
sidebar: { sidebar: {
@ -20,50 +21,45 @@ export default defineConfig({
items: [ items: [
{ text: "jecs", link: "/api/jecs" }, { text: "jecs", link: "/api/jecs" },
{ text: "World", link: "/api/world" }, { text: "World", link: "/api/world" },
{ text: "Query", link: "/api/query" } { text: "Query", link: "/api/query" },
] ],
} },
], ],
"/learn/": [ "/learn/": [
{ {
text: "Introduction", text: "Introduction",
items: [ items: [
{ text: 'Getting Started', link: '/learn/overview/get-started' }, { text: "Getting Started", link: "/learn/overview/get-started" },
{ text: 'First Jecs Project', link: '/learn/overview/first-jecs-project' } { text: "First Jecs Project", link: "/learn/overview/first-jecs-project" },
] ],
}, },
{ {
text: 'Concepts', text: "Concepts",
items: [ items: [
{ text: 'Entities and Components', link: '/learn/concepts/entities-and-components' }, { text: "Entities and Components", link: "/learn/concepts/entities-and-components" },
{ text: 'Queries', link: '/learn/concepts/queries' }, { text: "Queries", link: "/learn/concepts/queries" },
{ text: 'Relationships', link: '/learn/concepts/relationships' }, { text: "Relationships", link: "/learn/concepts/relationships" },
{ text: 'Component Traits', link: 'learn/concepts/component-traits' }, { text: "Component Traits", link: "learn/concepts/component-traits" },
{ text: 'Addons', link: '/learn/concepts/addons' } { text: "Addons", link: "/learn/concepts/addons" },
] ],
}, },
{ {
text: "FAQ", text: "FAQ",
items: [ items: [{ text: "How can I contribute?", link: "/learn/faq/contributing" }],
{ text: 'How can I contribute?', link: '/learn/faq/contributing' }
]
}, },
], ],
"/contributing/": [ "/contributing/": [
{ {
text: 'Contributing', text: "Contributing",
items: [ items: [
{ text: 'Contribution Guidelines', link: '/learn/contributing/guidelines' }, { text: "Contribution Guidelines", link: "/learn/contributing/guidelines" },
{ text: 'Submitting Issues', link: '/learn/contributing/issues' }, { text: "Submitting Issues", link: "/learn/contributing/issues" },
{ text: 'Submitting Pull Requests', link: '/learn/contributing/pull-requests' }, { text: "Submitting Pull Requests", link: "/learn/contributing/pull-requests" },
] ],
} },
] ],
}, },
socialLinks: [ socialLinks: [{ icon: "github", link: "https://github.com/ukendio/jecs" }],
{ icon: 'github', link: 'https://github.com/ukendio/jecs' } },
] });
}
})