Skip to content

Commit 8caf6d5

Browse files
authored
Merge pull request #95 from leafsphp/staging
Staging
2 parents 0baced9 + ae2c964 commit 8caf6d5

File tree

454 files changed

+18742
-155758
lines changed

Some content is hidden

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

454 files changed

+18742
-155758
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
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

Lines changed: 6 additions & 105 deletions
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

Lines changed: 0 additions & 6 deletions
This file was deleted.

.vitepress/config.mts

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

0 commit comments

Comments
 (0)