Skip to content

Commit 7d63392

Browse files
committed
feat: setup
0 parents  commit 7d63392

37 files changed

Lines changed: 10533 additions & 0 deletions

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build output
5+
.vitepress/dist/
6+
.vitepress/cache/
7+
dist/
8+
9+
# Logs
10+
logs
11+
*.log
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
pnpm-debug.log*
16+
17+
# Editor directories and files
18+
.idea/
19+
.vscode/*
20+
!.vscode/extensions.json
21+
!.vscode/settings.json
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
27+
28+
# OS files
29+
.DS_Store
30+
Thumbs.db
31+
32+
# Environment files
33+
.env
34+
.env.*
35+
!.env.example
36+
37+
# Local development
38+
*.local

.vitepress/config.ts

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
import { defineConfig } from 'vitepress';
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
lang: 'en-US',
6+
title: 'nStudio Plugins',
7+
description: 'NativeScript plugins from nStudio. Native performance, beautiful APIs, and production-grade tested.',
8+
9+
srcDir: './content',
10+
cleanUrls: true,
11+
appearance: true,
12+
13+
markdown: {
14+
theme: {
15+
light: 'github-light',
16+
dark: 'github-dark',
17+
},
18+
lineNumbers: false,
19+
},
20+
21+
head: [
22+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }],
23+
['meta', { name: 'theme-color', content: '#F75930' }],
24+
['meta', { property: 'og:type', content: 'website' }],
25+
['meta', { property: 'og:site_name', content: 'nStudio Plugins' }],
26+
['meta', { property: 'og:image', content: 'https://plugins.nstudio.io/og-image.png' }],
27+
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
28+
['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
29+
['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }],
30+
['link', { href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap', rel: 'stylesheet' }],
31+
],
32+
33+
themeConfig: {
34+
logo: '/logo.svg',
35+
36+
nav: [
37+
{ text: 'Plugins', link: '/' },
38+
{ text: 'nCharts', link: '/ncharts/' },
39+
{ text: 'nStudio', link: 'https://nstudio.io' },
40+
],
41+
42+
sidebar: {
43+
'/ncharts/': [
44+
{
45+
text: 'Getting Started',
46+
items: [
47+
{ text: 'Introduction', link: '/ncharts/' },
48+
{ text: 'Installation', link: '/ncharts/installation' },
49+
{ text: 'Quick Start', link: '/ncharts/quick-start' },
50+
],
51+
},
52+
{
53+
text: 'Chart Types',
54+
items: [
55+
{ text: 'Line Chart', link: '/ncharts/charts/line-chart' },
56+
{ text: 'Bar Chart', link: '/ncharts/charts/bar-chart' },
57+
{ text: 'Horizontal Bar', link: '/ncharts/charts/horizontal-bar-chart' },
58+
{ text: 'Pie Chart', link: '/ncharts/charts/pie-chart' },
59+
{ text: 'Scatter Chart', link: '/ncharts/charts/scatter-chart' },
60+
{ text: 'Bubble Chart', link: '/ncharts/charts/bubble-chart' },
61+
{ text: 'Candlestick Chart', link: '/ncharts/charts/candlestick-chart' },
62+
{ text: 'Radar Chart', link: '/ncharts/charts/radar-chart' },
63+
{ text: 'Combined Chart', link: '/ncharts/charts/combined-chart' },
64+
],
65+
},
66+
{
67+
text: 'Configuration',
68+
items: [
69+
{ text: 'Animation', link: '/ncharts/config/animation' },
70+
{ text: 'Legend', link: '/ncharts/config/legend' },
71+
{ text: 'Axes', link: '/ncharts/config/axes' },
72+
{ text: 'Markers', link: '/ncharts/config/markers' },
73+
{ text: 'Styling', link: '/ncharts/config/styling' },
74+
],
75+
},
76+
{
77+
text: 'API Reference',
78+
items: [
79+
{ text: 'Types', link: '/ncharts/api/types' },
80+
{ text: 'Methods', link: '/ncharts/api/methods' },
81+
{ text: 'Events', link: '/ncharts/api/events' },
82+
],
83+
},
84+
],
85+
},
86+
87+
socialLinks: [
88+
{ icon: 'github', link: 'https://github.com/nstudio' },
89+
{ icon: 'twitter', link: 'https://twitter.com/teamnstudio' },
90+
],
91+
92+
footer: {
93+
// message: 'Released under the Apache-2.0 License.',
94+
copyright: `Copyright © ${new Date().getFullYear()} nStudio`,
95+
},
96+
97+
search: {
98+
provider: 'local',
99+
},
100+
},
101+
});

0 commit comments

Comments
 (0)