Skip to content

Commit baa010e

Browse files
committed
added vitepress with basic content
1 parent 24689cf commit baa010e

18 files changed

+2184
-0
lines changed

src/webpage/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.vitepress/cache/
2+
.vitepress/dist/
3+
/node_modules/

src/webpage/.vitepress/config.mts

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { defineConfig } from 'vitepress'
2+
import sidebar from "./sidebar.mjs";
3+
import nav from "./nav.mjs";
4+
5+
// https://vitepress.dev/reference/site-config
6+
export default defineConfig({
7+
lang: 'en-US',
8+
title: "DynAPI",
9+
titleTemplate: "DynAPI",
10+
description: "Dynamic API for many Databases",
11+
srcDir: "src/",
12+
srcExclude: ['**/README.md', '**TODO.md'],
13+
lastUpdated: true,
14+
cleanUrls: true,
15+
head: [
16+
// favicon
17+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/dynapi.svg' }],
18+
],
19+
themeConfig: {
20+
logo: '/dynapi.svg',
21+
socialLinks: [
22+
{ icon: 'github', link: 'https://github.com/DynAPI/org.dynapi.dynapi' },
23+
],
24+
search: {
25+
provider: 'local',
26+
},
27+
nav: nav,
28+
sidebar: sidebar,
29+
footer: {
30+
copyright: "Copyright © 2024-present DynAPI",
31+
}
32+
},
33+
ignoreDeadLinks: 'localhostLinks',
34+
markdown: {
35+
image: {
36+
lazyLoading: true,
37+
}
38+
}
39+
})

src/webpage/.vitepress/nav.mts

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { DefaultTheme } from "vitepress";
2+
3+
export default <DefaultTheme.NavItem[]>[
4+
{
5+
text: "Quickstart",
6+
link: '/quickstart',
7+
activeMatch: '/quickstart',
8+
},
9+
{
10+
text: "Documentation",
11+
link: '/docs',
12+
activeMatch: '/docs',
13+
},
14+
{
15+
text: "Repositories",
16+
items: [
17+
{
18+
text: "DynAPI Website",
19+
link: 'https://github.com/DynAPI/DynAPI.github.io',
20+
target: '_blank',
21+
},
22+
{
23+
text: "DynAPI",
24+
link: 'https://github.com/DynAPI/org.dynapi.DynAPI',
25+
target: '_blank',
26+
},
27+
{
28+
text: "DynAPI (v1)",
29+
link: 'https://github.com/DynAPI/DynAPI',
30+
target: '_blank',
31+
},
32+
]
33+
},
34+
]

src/webpage/.vitepress/sidebar.mts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { DefaultTheme } from "vitepress";
2+
3+
const sidebarDocumentation: DefaultTheme.SidebarItem[] = {
4+
5+
}
6+
7+
export default <DefaultTheme.Sidebar>{
8+
'/docs/': {'base': '/docs/', items: sidebarDocumentation},
9+
}

0 commit comments

Comments
 (0)