Skip to content

Commit 62f9aae

Browse files
committed
chore: pull no-rebase
2 parents 9a3bc51 + 86bff56 commit 62f9aae

32 files changed

+576
-7
lines changed

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vitepress/cache
2+
.vitepress/dist

docs/.vitepress/config.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { defineConfig } from 'vitepress'
2+
import en from './locales/en'
3+
import ru from './locales/ru'
4+
5+
export default defineConfig({
6+
title: 'Mafl',
7+
base: '/mafl/',
8+
themeConfig: {
9+
search: {
10+
provider: 'local',
11+
},
12+
13+
logo: {
14+
src: '/logotype.svg',
15+
innerWidth: 50,
16+
height: 50,
17+
},
18+
19+
socialLinks: [
20+
{ icon: 'github', link: 'https://github.com/hywax/mafl' },
21+
],
22+
},
23+
24+
locales: {
25+
root: { label: 'English', ...en },
26+
ru: { label: 'Русский', ...ru },
27+
},
28+
})

docs/.vitepress/locales/en.ts

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import { defineConfig } from 'vitepress'
2+
import { getVersion } from '../utils'
3+
4+
export default defineConfig({
5+
description: 'Intuitive service for organizing your homepage',
6+
lang: 'en-US',
7+
themeConfig: {
8+
nav: [
9+
{ text: 'Home', link: '/' },
10+
{ text: 'Configuration', link: '/reference/configuration' },
11+
{ text: 'Showcase', link: '/community/showcase' },
12+
{
13+
text: getVersion(),
14+
items: [
15+
{ text: 'Changelog', link: '/other/changelog' },
16+
{ text: 'Contributing', link: '/community/contributing' },
17+
],
18+
},
19+
],
20+
21+
sidebar: [
22+
{
23+
text: 'Guide',
24+
base: '/guide',
25+
items: [
26+
{ text: 'What is Mafl?', link: '/what-is' },
27+
{ text: 'Getting Started', link: '/getting-started' },
28+
{ text: 'Deployment', link: '/deployment' },
29+
],
30+
},
31+
{
32+
text: 'Reference',
33+
base: '/reference',
34+
items: [
35+
{ text: 'Configuration', link: '/configuration' },
36+
],
37+
},
38+
{
39+
text: 'Services',
40+
base: '/services',
41+
items: [
42+
{ text: 'Base', link: '/base' },
43+
],
44+
},
45+
{
46+
text: 'Community',
47+
base: '/community',
48+
collapsed: true,
49+
items: [
50+
{ text: 'Showcase', link: '/showcase' },
51+
{ text: 'Development', link: '/development' },
52+
{ text: 'Contributing', link: '/contributing' },
53+
],
54+
},
55+
{
56+
text: 'Other',
57+
base: '/other',
58+
collapsed: true,
59+
items: [
60+
{ text: 'Changelog', link: '/changelog' },
61+
{ text: 'License', link: '/license' },
62+
],
63+
},
64+
],
65+
},
66+
})

docs/.vitepress/locales/ru.ts

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import { defineConfig } from 'vitepress'
2+
import { getVersion } from '../utils'
3+
4+
export default defineConfig({
5+
description: 'Intuitive service for organizing your homepage',
6+
lang: 'ru-RU',
7+
themeConfig: {
8+
nav: [
9+
{ text: 'Home', link: '/ru/' },
10+
{ text: 'Configuration', link: '/ru/reference/configuration' },
11+
{ text: 'Showcase', link: '/ru/community/showcase' },
12+
{
13+
text: getVersion(),
14+
items: [
15+
{ text: 'Changelog', link: '/ru/other/changelog' },
16+
{ text: 'Contributing', link: '/ru/community/contributing' },
17+
],
18+
},
19+
],
20+
21+
sidebar: [
22+
{
23+
text: 'Guide',
24+
base: '/ru/guide',
25+
items: [
26+
{ text: 'What is Mafl?', link: '/what-is' },
27+
{ text: 'Getting Started', link: '/getting-started' },
28+
{ text: 'Deployment', link: '/deployment' },
29+
],
30+
},
31+
{
32+
text: 'Reference',
33+
base: '/ru/reference',
34+
items: [
35+
{ text: 'Configuration', link: '/configuration' },
36+
],
37+
},
38+
{
39+
text: 'Services',
40+
base: '/ru/services',
41+
items: [
42+
{ text: 'Base', link: '/base' },
43+
],
44+
},
45+
{
46+
text: 'Community',
47+
base: '/ru/community',
48+
collapsed: true,
49+
items: [
50+
{ text: 'Showcase', link: '/showcase' },
51+
{ text: 'Development', link: '/development' },
52+
{ text: 'Contributing', link: '/contributing' },
53+
],
54+
},
55+
{
56+
text: 'Other',
57+
base: '/ru/other',
58+
collapsed: true,
59+
items: [
60+
{ text: 'Changelog', link: '/changelog' },
61+
{ text: 'License', link: '/license' },
62+
],
63+
},
64+
],
65+
},
66+
})

docs/.vitepress/theme/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:root {
2+
--vp-c-brand-1: #91c198;
3+
--vp-c-brand-2: #7cb484;
4+
--vp-c-brand-3: #609966;
5+
--vp-c-brand-soft: #eaf4ec;
6+
}

docs/.vitepress/theme/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import DefaultTheme from 'vitepress/theme'
2+
import './custom.css'
3+
4+
export default DefaultTheme

docs/.vitepress/utils/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import currentPackage from '../../../package.json'
2+
3+
export function getVersion() {
4+
return currentPackage.version || '0.0.0'
5+
}

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mafl.hywax.space

docs/community/contributing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Contributing

docs/community/development.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Development

0 commit comments

Comments
 (0)