Skip to content

Commit

Permalink
Improve docs (#90)
Browse files Browse the repository at this point in the history
* Add method

* Remove unnecessary shadowed variable

* Separate pages
  • Loading branch information
Ukendio authored Jul 28, 2024
1 parent 49305f7 commit a3eb2cd
Show file tree
Hide file tree
Showing 9 changed files with 199 additions and 189 deletions.
110 changes: 60 additions & 50 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,66 @@ 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: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
],
title: "Jecs",
base: "/jecs/",
description: "A VitePress Site",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' },
{ text: 'API', link: '/api/jecs.md' }
],

sidebar: [
{
text: 'Overview',
items: [
{ text: 'Getting Started', link: '/overview/get-started' },
{ text: 'First Jecs Project', link: '/overview/first-jecs-project' }
]
},
{
text: 'Concepts',
items: [
{ text: 'Entities', link: '/concepts/entities' },
{ text: 'Static Components', link: '/concepts/static-components' },
{ text: 'Queries', link: '/concepts/queries' },
]
},
{
text: 'References',
items: [
{ text: 'API Reference', link: '/api' },
]
},
{
text: "FAQ",
items: [
{ text: 'How can I contribute?', link: '/faq/contributing' }
]
},
{
text: 'Contributing',
items: [
{ text: 'Contribution Guidelines', link: '/contributing/guidelines'},
{ text: 'Submitting Issues', link: '/contributing/issues'},
{ text: 'Submitting Pull Requests', link: '/contributing/pull-requests'},
]
}
],
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: '/overview/get-started' },
{ text: 'First Jecs Project', link: '/overview/first-jecs-project' }
]
},
{
text: 'Concepts',
items: [
{ text: 'Entities', link: '/concepts/entities' },
{ text: 'Static Components', link: '/concepts/static-components' },
{ text: 'Queries', link: '/concepts/queries' },
]
},
{
text: "FAQ",
items: [
{ text: 'How can I contribute?', link: '/faq/contributing' }
]
},

],
"/contributing/": [
{
text: 'Contributing',
items: [
{ text: 'Contribution Guidelines', link: '/contributing/guidelines' },
{ text: 'Submitting Issues', link: '/contributing/issues' },
{ text: 'Submitting Pull Requests', link: '/contributing/pull-requests' },
]
}
]
},

socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
}
socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
}
})
Original file line number Diff line number Diff line change
@@ -1 +1 @@


4 changes: 2 additions & 2 deletions docs/concepts/queries.md → docs/learn/concepts/queries.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## TODO

## TODO

This is a TODO stub.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## TODO

## TODO

This is a TODO stub.
4 changes: 2 additions & 2 deletions docs/faq/contributing.md → docs/learn/faq/contributing.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## TODO

## TODO

This is a TODO stub.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## TODO

## TODO

This is a TODO stub.
Loading

0 comments on commit a3eb2cd

Please sign in to comment.