Skip to content

Commit fb4a887

Browse files
authored
Merge pull request #1 from onixbyte/develop
docs: add docs for **Java Dev Kit**
2 parents 78551c0 + 3946bd6 commit fb4a887

File tree

14 files changed

+337
-233
lines changed

14 files changed

+337
-233
lines changed

src/.vitepress/config.mts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,8 @@ import { britishEnglishConfig, simplifiedChineseConfig } from "./locale-config"
33

44
export default defineConfig({
55
locales: {
6-
root: {
7-
label: "English",
8-
lang: "en",
9-
...britishEnglishConfig,
10-
},
11-
"zh-CN": {
12-
label: "简体中文",
13-
lang: "zh-CN",
14-
...simplifiedChineseConfig,
15-
},
6+
root: britishEnglishConfig,
7+
"zh-CN": simplifiedChineseConfig
168
},
179
themeConfig: {
1810
socialLinks: [{ icon: "github", link: "https://github.com/onixbyte" }],

src/.vitepress/locale-config.ts

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

src/.vitepress/locale-config/en-gb.ts

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
import { LocaleSpecificConfig } from "vitepress"
2+
import { DefaultTheme } from "vitepress/types"
3+
import { projectSidebar } from "../sidebar"
4+
5+
export const britishEnglishConfig: LocaleSpecificConfig<DefaultTheme.Config> & {
6+
label: string
7+
link?: string
8+
} = {
9+
label: "English",
10+
lang: "en",
11+
title: "OnixByte Official",
12+
titleTemplate: ":title | OnixByte",
13+
description:
14+
"OnixByte specialises in delivering cutting-edge technology solutions that drive innovation and empower businesses to excel in the digital era.",
15+
themeConfig: {
16+
nav: [
17+
{ text: "Home", link: "/" },
18+
{
19+
text: "Projects",
20+
items: [
21+
{
22+
text: "Java Dev Kit",
23+
link: "/projects/java-dev-kit"
24+
},
25+
{
26+
text: "Version Catalogue",
27+
link: "/projects/version-catalogue",
28+
},
29+
{ text: "Common Toolkit", link: "/projects/common-toolkit" },
30+
{
31+
text: "Identity Generator",
32+
link: "/projects/identity-generator",
33+
},
34+
{ text: "Crypto Toolkit", link: "/projects/crypto-toolkit" },
35+
{ text: "Math Toolkit", link: "/projects/math-toolkit" },
36+
{
37+
text: "JWT Toolkit",
38+
link: "/projects/jwt-toolkit",
39+
},
40+
],
41+
},
42+
],
43+
sidebar: {
44+
"/opensource": [
45+
{
46+
text: "Open Source Documents",
47+
items: [
48+
{ text: "License", link: "/opensource/license" },
49+
{ text: "Contributing", link: "/opensource/contributing" },
50+
{ text: "Code of Conduct", link: "/opensource/code-of-conduct" },
51+
],
52+
},
53+
{
54+
text: "Open Source Projects",
55+
items: [
56+
{
57+
text: "Java Dev Kit",
58+
link: "/projects/java-dev-kit"
59+
},
60+
{
61+
text: "Version Catalogue",
62+
link: "/projects/version-catalogue",
63+
},
64+
{ text: "Common Toolkit", link: "/projects/common-toolkit" },
65+
{
66+
text: "Identity Generator",
67+
link: "/projects/identity-generator",
68+
},
69+
{ text: "Crypto Toolkit", link: "/projects/crypto-toolkit" },
70+
{ text: "Math Toolkit", link: "/projects/math-toolkit" },
71+
{
72+
text: "JWT Toolkit",
73+
link: "/projects/jwt-toolkit",
74+
},
75+
],
76+
},
77+
],
78+
"/projects/java-dev-kit": [
79+
{
80+
text: "Project",
81+
items: projectSidebar("java-dev-kit")
82+
}
83+
],
84+
"/projects/version-catalogue": [
85+
{
86+
text: "Project",
87+
items: projectSidebar("version-catalogue"),
88+
},
89+
],
90+
"/projects/common-toolkit/": [
91+
{
92+
text: "Project",
93+
items: projectSidebar("common-toolkit"),
94+
},
95+
],
96+
"/projects/identity-generator/": [
97+
{
98+
text: "Project",
99+
items: projectSidebar("identity-generator"),
100+
},
101+
],
102+
"/projects/crypto-toolkit/": [
103+
{
104+
text: "Project",
105+
items: projectSidebar("crypto-toolkit"),
106+
},
107+
],
108+
"/projects/math-toolkit/": [
109+
{
110+
text: "Project",
111+
items: projectSidebar("math-toolkit"),
112+
},
113+
],
114+
"/projects/jwt-toolkit/": [
115+
{
116+
text: "Project",
117+
items: projectSidebar("jwt-toolkit"),
118+
},
119+
],
120+
},
121+
},
122+
}

src/.vitepress/locale-config/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { britishEnglishConfig } from "./en-gb"
2+
export { simplifiedChineseConfig } from "./zh-cn"

0 commit comments

Comments
 (0)