Skip to content

Commit 5990a09

Browse files
committed
feat: add base setup
1 parent aa00cc8 commit 5990a09

File tree

161 files changed

+44668
-315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+44668
-315
lines changed

.vitepress/config.mts

+4
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,8 @@ export default defineConfig({
6767
copyright: `Copyright © 2019-${new Date().getFullYear()} Michael Darko-Duodu`,
6868
},
6969
},
70+
71+
markdown: {
72+
lineNumbers: true,
73+
},
7074
});

.vitepress/config/navbar.ts

+43-52
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,66 @@ import { DefaultTheme } from 'vitepress';
33
const nav: DefaultTheme.NavItem[] = [
44
{
55
text: 'Docs',
6-
activeMatch: `^/(docs|style-guide|examples|tutorial)/`,
6+
activeMatch: `^/(docs|examples)/`,
77
items: [
88
{ text: 'Guide', link: '/docs/' },
99
{
1010
text: 'Leaf + MVC',
1111
link: '/docs/mvc/',
1212
},
13-
{ text: 'Tutorial', link: '/tutorial/' },
14-
{ text: 'Online Playground', link: 'https://sandbox.leafphp.dev/' },
1513
{
16-
text: 'Leaf Modules',
17-
link: '/modules/',
14+
text: 'Leaf CLI',
15+
link: '/docs/cli/',
1816
},
1917
{
20-
text: 'Changelog',
21-
link: '/community/releases/',
18+
text: 'MVC Console',
19+
link: '/docs/mvc/console/',
2220
},
23-
],
24-
},
25-
26-
{
27-
text: 'Ecosystem',
28-
activeMatch: `^/ecosystem/`,
29-
items: [
3021
{
31-
text: 'Tooling',
22+
text: 'Help',
3223
items: [
24+
// {
25+
// text: 'Leaf Forum',
26+
// link: 'https://github.com/leafsphp/leaf/discussions/37',
27+
// },
3328
{
34-
text: 'Leaf CLI',
35-
link: '/docs/cli/',
29+
text: 'YouTube',
30+
link: 'https://www.youtube.com/channel/UCllE-GsYy10RkxBUK0HIffw',
3631
},
3732
{
38-
text: 'MVC Console',
39-
link: '/docs/mvc/console/',
33+
text: 'Discord',
34+
link: 'https://discord.gg/Pkrm9NJPE3',
4035
},
4136
{
42-
text: 'Leaf UI',
43-
link: 'https://ui.leafphp.dev/',
37+
text: 'GitHub',
38+
link: 'https://github.com/leafsphp/leaf',
4439
},
4540
],
4641
},
42+
],
43+
},
44+
45+
{
46+
text: 'Ecosystem',
47+
activeMatch: `^/ecosystem/`,
48+
items: [
4749
{
4850
text: 'Resources',
4951
items: [
50-
{
51-
text: 'Project Showcase',
52-
link: '/ecosystem/showcase',
53-
},
52+
{ text: 'Tutorial', link: '/tutorial/' },
53+
{ text: 'Online Playground', link: 'https://sandbox.leafphp.dev/' },
54+
// {
55+
// text: 'Leaf Modules',
56+
// link: '/docs/modules',
57+
// },
5458
{
5559
text: 'Codelabs',
5660
link: '/codelabs/',
5761
},
62+
{
63+
text: 'Leaf UI',
64+
link: 'https://ui.leafphp.dev/',
65+
},
5866
],
5967
},
6068
{
@@ -86,19 +94,23 @@ const nav: DefaultTheme.NavItem[] = [
8694
},
8795
{
8896
text: 'Contribute to Leaf',
89-
link: '/community/contributing/',
97+
link: '/community/contribute',
9098
},
9199
{
92100
text: 'Contribute to docs',
93-
link: '/community/contributing/writing-guide',
101+
link: '/community/docs-writing-guide',
94102
},
95103
{
96-
text: 'Blog',
97-
link: 'https://blog.leafphp.dev',
104+
text: 'Changelog',
105+
link: '/community/releases',
106+
},
107+
{
108+
text: 'Project Showcase',
109+
link: '/community/showcase',
98110
},
99111
{
100-
text: 'Events',
101-
link: '/events/',
112+
text: 'Blog',
113+
link: 'https://blog.leafphp.dev',
102114
},
103115
{
104116
text: 'Team',
@@ -107,27 +119,6 @@ const nav: DefaultTheme.NavItem[] = [
107119
{
108120
text: 'FAQ',
109121
link: '/community/faq',
110-
}
111-
],
112-
},
113-
{
114-
text: 'Help',
115-
items: [
116-
{
117-
text: 'Leaf Forum',
118-
link: 'https://github.com/leafsphp/leaf/discussions/37',
119-
},
120-
{
121-
text: 'YouTube',
122-
link: 'https://www.youtube.com/channel/UCllE-GsYy10RkxBUK0HIffw',
123-
},
124-
{
125-
text: 'Discord',
126-
link: 'https://discord.gg/Pkrm9NJPE3',
127-
},
128-
{
129-
text: 'GitHub',
130-
link: 'https://github.com/leafsphp/leaf',
131122
},
132123
],
133124
},

.vitepress/config/sidebar.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
const sidebar = [
22
{
3-
text: 'Examples',
3+
text: 'Quick Start',
4+
collapsible: true,
5+
collapsed: true,
46
items: [
5-
{ text: 'Markdown Examples', link: '/markdown-examples' },
6-
{ text: 'Runtime API Examples', link: '/api-examples' },
7+
{ text: 'Introduction', link: '/docs/' },
8+
{ text: 'Why Leaf?', link: '/docs/why' },
9+
{ text: 'Installation', link: '/docs/installation' },
10+
{ text: 'Using Docker', link: '/docs/docker' },
11+
{ text: 'Migration Guide', link: '/docs/migrating' },
712
],
813
},
914
];

0 commit comments

Comments
 (0)