Skip to content

Commit aa00cc8

Browse files
committed
chore: initialized new docs
1 parent 209893d commit aa00cc8

File tree

442 files changed

+4385
-121707
lines changed

Some content is hidden

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

442 files changed

+4385
-121707
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ indent_size = 2
55
end_of_line = lf
66
insert_final_newline = true
77
trim_trailing_whitespace = true
8+
quote_type = single
89

910
[*.md]
1011
trim_trailing_whitespace = false

.gitignore

+6-105
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,14 @@
1-
### OSX ###
2-
# General
31
.DS_Store
4-
.AppleDouble
5-
.LSOverride
62

7-
# Thumbnails
8-
._*
3+
.vitepress/dist
4+
.vitepress/cache
95

10-
# Files that might appear in the root of a volume
11-
.DocumentRevisions-V100
12-
.fseventsd
13-
.Spotlight-V100
14-
.TemporaryItems
15-
.Trashes
16-
.VolumeIcon.icns
17-
.com.apple.timemachine.donotpresent
6+
old/
187

19-
# Directories potentially created on remote AFP share
20-
.AppleDB
21-
.AppleDesktop
22-
Network Trash Folder
23-
Temporary Items
24-
.apdisk
25-
26-
### Node ###
27-
# Logs
28-
logs
29-
*.log
30-
npm-debug.log*
31-
yarn-debug.log*
32-
yarn-error.log*
33-
lerna-debug.log*
34-
35-
# Diagnostic reports (https://nodejs.org/api/report.html)
36-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
37-
38-
# Runtime data
39-
pids
40-
*.pid
41-
*.seed
42-
*.pid.lock
43-
44-
# Directory for instrumented libs generated by jscoverage/JSCover
45-
lib-cov
46-
47-
# Coverage directory used by tools like istanbul
48-
coverage
49-
*.lcov
50-
51-
# nyc test coverage
52-
.nyc_output
53-
54-
# node-waf configuration
55-
.lock-wscript
56-
57-
# Compiled binary addons (https://nodejs.org/api/addons.html)
58-
build/Release
59-
60-
# Dependency directories
618
node_modules/
62-
jspm_packages/
63-
64-
# TypeScript v1 declaration files
65-
typings/
66-
67-
# TypeScript cache
68-
*.tsbuildinfo
9+
vendor/
6910

70-
# Optional npm cache directory
71-
.npm
72-
73-
# Optional eslint cache
74-
.eslintcache
75-
76-
# Optional REPL history
77-
.node_repl_history
78-
79-
# Output of 'npm pack'
80-
*.tgz
81-
82-
# Yarn Integrity file
83-
.yarn-integrity
84-
85-
# pnpm link folder
86-
pnpm-global
87-
88-
# dotenv environment variables file
89-
.env
90-
.env.test
91-
92-
# parcel-bundler cache (https://parceljs.org/)
93-
.cache
11+
logs/
12+
*.log
9413

95-
# rollup.js default build output
9614
dist/
97-
98-
# vuepress build output
99-
.vuepress/dist
100-
101-
# Serverless directories
102-
.serverless/
103-
104-
# Temporary folders
105-
tmp/
106-
temp/
107-
TODOs.md
108-
src/api/index.json
109-
src/examples/data.json
110-
src/tutorial/data.json
111-
draft.md
112-
113-
.idea/

.prettierrc

-6
This file was deleted.

.vitepress/config.mts

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import { defineConfig } from 'vitepress';
2+
3+
import head from './config/head';
4+
import nav from './config/navbar';
5+
import sidebar from './config/sidebar';
6+
7+
export default defineConfig({
8+
head,
9+
lang: 'en-US',
10+
srcDir: 'src',
11+
scrollOffset: 'header',
12+
srcExclude: ['tutorial/**/description.md'],
13+
14+
title: 'Leaf PHP',
15+
description: 'Simple and elegant PHP',
16+
17+
themeConfig: {
18+
nav,
19+
sidebar,
20+
21+
logo: '/logo-circle.png',
22+
siteTitle: 'Leaf 3',
23+
24+
search: {
25+
provider: 'local',
26+
// provider: 'algolia',
27+
// options: {
28+
// appId: 'Q38TT8XUN9',
29+
// indexName: 'leafphp',
30+
// apiKey: '87b4b8d90960f7a326dfd4c8781a5a74',
31+
// },
32+
},
33+
34+
socialLinks: [
35+
// { icon: 'languages', link: '/translations/' },
36+
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' },
37+
{ icon: 'twitter', link: 'https://x.com/leafphp' },
38+
{ icon: 'discord', link: 'https://discord.gg/Pkrm9NJPE3' },
39+
// {
40+
// icon: 'youtube',
41+
// link: 'https://www.youtube.com/channel/UCllE-GsYy10RkxBUK0HIffw'
42+
// }
43+
],
44+
45+
lastUpdated: {
46+
text: 'Updated at',
47+
formatOptions: {
48+
dateStyle: 'full',
49+
timeStyle: 'medium',
50+
},
51+
},
52+
53+
editLink: {
54+
text: 'Edit this page on GitHub',
55+
// pattern: 'https://github.com/leafsphp/docs/edit/next/src/:path',
56+
pattern: ({ filePath }) => {
57+
if (filePath.startsWith('packages/')) {
58+
return `https://github.com/leafsphp/docs/edit/next/src/${filePath}`;
59+
} else {
60+
return `https://github.com/leafsphp/docs/edit/next/src/${filePath}`;
61+
}
62+
},
63+
},
64+
65+
footer: {
66+
message: `Released under the <a href="https://github.com/leafsphp/leaf/blob/v3.x/LICENSE">MIT License</a>.`,
67+
copyright: `Copyright © 2019-${new Date().getFullYear()} Michael Darko-Duodu`,
68+
},
69+
},
70+
});

0 commit comments

Comments
 (0)