-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
executable file
·193 lines (190 loc) · 11.4 KB
/
theme.config.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
import { DocsThemeConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
banner: {
dismissible: true,
text: (
<a href="https://github.com/osmon-lang/osmon">
🎉 Osmon Dasturlash Tili 0.7.0 chiqdi! Ba'tafsil →
</a>
),
},
faviconGlyph: "🌥",
logo: (
<span>
<svg
height="24"
viewBox="0 0 2258 606"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g transform="matrix(1,0,0,1,-1023.58,-1688.09)">
<g transform="matrix(4.16667,0,0,4.16667,0,0)">
<g>
<path
fill="currentColor"
d="M286.616,459.816C273.257,459.816 262.886,464.445 255.503,473.703C248.94,482.023 245.659,492.511 245.659,505.167C245.659,517.589 248.94,527.96 255.503,536.281C262.886,545.539 273.257,550.167 286.616,550.167C299.858,550.167 310.229,545.539 317.729,536.281C324.409,527.96 327.749,517.589 327.749,505.167C327.749,492.511 324.409,482.023 317.729,473.703C310.229,464.445 299.858,459.816 286.616,459.816ZM286.616,464.21C296.108,464.21 303.491,468.371 308.765,476.691C313.452,484.191 315.796,493.683 315.796,505.167C315.796,516.417 313.452,525.734 308.765,533.117C303.491,541.554 296.108,545.773 286.616,545.773C277.007,545.773 269.565,541.554 264.292,533.117C259.722,525.734 257.437,516.417 257.437,505.167C257.437,493.683 259.722,484.191 264.292,476.691C269.565,468.371 277.007,464.21 286.616,464.21Z"
/>
<path
fill="currentColor"
d="M353.974,521.515L351.689,522.57L362.236,550.167L369.619,547.179C370.908,546.71 372.373,546.593 374.013,546.828C375.068,547.062 376.826,547.472 379.287,548.058C381.865,548.878 383.974,549.406 385.615,549.64C388.193,550.226 390.83,550.519 393.525,550.519C401.611,550.519 408.408,548.585 413.916,544.718C420.244,540.265 423.408,534.289 423.408,526.789C423.408,519.64 420.771,513.898 415.498,509.562C410.459,505.46 401.669,501.476 389.13,497.609C379.873,494.679 373.603,492.16 370.322,490.05C365.986,487.355 363.818,484.015 363.818,480.031C363.818,475.109 365.517,471.3 368.916,468.605C372.314,466.027 376.884,464.738 382.626,464.738C390.244,464.738 397.744,467.55 405.126,473.175C410.634,477.511 414.794,482.199 417.607,487.238L420.595,485.832L410.4,459.992L403.72,463.156C402.9,463.507 401.904,463.566 400.732,463.332C399.912,463.214 398.564,462.921 396.689,462.453C394.228,461.749 392.236,461.222 390.712,460.871C388.017,460.402 385.322,460.167 382.626,460.167C374.189,460.167 367.334,462.042 362.06,465.792C357.138,469.542 354.677,474.289 354.677,480.031C354.677,486.242 356.904,491.281 361.357,495.148C366.396,499.601 375.654,503.937 389.13,508.156C398.505,510.968 405.068,513.722 408.818,516.417C412.568,519.113 414.443,522.57 414.443,526.789C414.443,532.531 412.451,537.101 408.466,540.499C404.599,543.898 399.619,545.597 393.525,545.597C384.619,545.597 376.533,542.902 369.267,537.511C364.345,533.996 359.248,528.664 353.974,521.515Z"
/>
<path
fill="currentColor"
d="M440.492,547.179L476.527,547.179L476.527,542.785C472.074,542.785 468.852,541.964 466.859,540.324C464.984,538.683 464.047,536.105 464.047,532.589L464.047,481.964C468.617,477.16 472.66,473.761 476.176,471.769C480.629,469.191 485.551,467.902 490.942,467.902C495.277,467.902 498.91,469.308 501.84,472.121C504.652,474.933 506.059,478.332 506.059,482.316L506.059,532.589C506.059,536.105 505.121,538.683 503.246,540.324C501.371,541.964 498.324,542.785 494.106,542.785L494.106,547.179L528.91,547.179L528.91,542.785C524.809,542.785 521.762,541.964 519.77,540.324C517.777,538.566 516.781,535.988 516.781,532.589L516.781,480.91C521.234,476.691 525.336,473.585 529.086,471.593C533.774,469.015 538.402,467.726 542.973,467.726C548.012,467.726 551.996,469.249 554.926,472.296C557.738,475.109 559.145,478.566 559.145,482.667L559.145,532.589C559.145,536.105 558.149,538.683 556.156,540.324C554.281,541.964 551.293,542.785 547.192,542.785L547.192,547.179L582.699,547.179L582.699,542.785C578.481,542.785 575.258,541.964 573.031,540.324C570.922,538.566 569.867,535.988 569.867,532.589L569.867,479.855C569.867,474.582 567.992,470.011 564.242,466.144C560.258,461.925 555.219,459.816 549.125,459.816C543.149,459.816 537.172,461.457 531.195,464.738C526.391,467.316 521.586,470.949 516.781,475.636C515.492,470.597 512.797,466.613 508.695,463.683C504.945,461.105 500.844,459.816 496.391,459.816C489.945,459.816 483.617,461.632 477.406,465.265C473.656,467.609 469.203,471.183 464.047,475.988L464.047,459.816L440.492,467.023L441.195,470.187C445.649,470.187 448.695,470.773 450.336,471.945C452.328,473.234 453.324,475.871 453.324,479.855L453.324,532.589C453.324,536.105 452.328,538.683 450.336,540.324C448.227,541.964 444.945,542.785 440.492,542.785L440.492,547.179Z"
/>
<path
fill="currentColor"
d="M637.401,459.816C624.042,459.816 613.671,464.445 606.288,473.703C599.725,482.023 596.444,492.511 596.444,505.167C596.444,517.589 599.725,527.96 606.288,536.281C613.671,545.539 624.042,550.167 637.401,550.167C650.643,550.167 661.014,545.539 668.514,536.281C675.194,527.96 678.534,517.589 678.534,505.167C678.534,492.511 675.194,482.023 668.514,473.703C661.014,464.445 650.643,459.816 637.401,459.816ZM637.401,464.21C646.893,464.21 654.276,468.371 659.549,476.691C664.237,484.191 666.581,493.683 666.581,505.167C666.581,516.417 664.237,525.734 659.549,533.117C654.276,541.554 646.893,545.773 637.401,545.773C627.792,545.773 620.35,541.554 615.077,533.117C610.506,525.734 608.221,516.417 608.221,505.167C608.221,493.683 610.506,484.191 615.077,476.691C620.35,468.371 627.792,464.21 637.401,464.21Z"
/>
<path
fill="currentColor"
d="M696.849,547.179L731.654,547.179L731.654,542.609C727.318,542.609 724.212,541.789 722.337,540.148C720.462,538.624 719.525,535.929 719.525,532.062L719.525,481.261C724.564,476.808 729.134,473.585 733.236,471.593C738.275,469.132 743.607,467.902 749.232,467.902C754.857,467.902 758.9,469.484 761.361,472.648C763.587,475.343 764.7,479.503 764.7,485.128L764.7,532.062C764.7,535.929 763.763,538.624 761.888,540.148C760.013,541.789 756.907,542.609 752.571,542.609L752.571,547.179L787.376,547.179L787.376,542.609C783.04,542.609 779.993,541.789 778.236,540.148C776.361,538.624 775.423,535.929 775.423,532.062L775.423,485.656C775.423,477.57 773.431,471.3 769.446,466.847C765.462,462.394 759.837,460.167 752.571,460.167C746.243,460.167 740.091,461.808 734.114,465.089C730.599,466.964 726.029,470.246 720.404,474.933L719.525,475.812L719.525,459.816L696.849,466.847L697.376,469.66C701.946,469.66 704.993,470.304 706.517,471.593C708.04,472.882 708.802,475.46 708.802,479.328L708.802,532.062C708.802,535.929 707.923,538.624 706.165,540.148C704.407,541.789 701.302,542.609 696.849,542.609L696.849,547.179Z"
/>
</g>
<g transform="matrix(0,-1,1,0,0,0)">
<path
fill="currentColor"
d="M-450.642,303.605C-439.978,312.255 -431.625,323.156 -425.582,336.308C-419.183,350.053 -415.984,364.983 -415.984,381.097C-415.984,397.33 -419.183,412.26 -425.582,425.886C-431.388,438.565 -439.741,449.525 -450.642,458.767L-450.642,461.789C-435.12,453.139 -423.567,441.764 -415.984,427.664C-408.756,414.393 -405.142,398.871 -405.142,381.097C-405.142,363.561 -408.756,348.157 -415.984,334.886C-423.686,320.786 -435.238,309.293 -450.642,300.406L-450.642,303.605Z"
/>
</g>
</g>
</g>
</svg>
{/* eslint-disable-next-line react/no-unknown-property */}
<style jsx>{`
span {
padding: 0.5rem 0.5rem 0.5rem 0;
mask-image: linear-gradient(
60deg,
black 25%,
rgba(0, 0, 0, 0.2) 50%,
black 75%
);
mask-size: 400%;
mask-position: 0%;
}
span:hover {
mask-position: 100%;
transition:
mask-position 1s ease,
-webkit-mask-position 1s ease;
}
`}</style>
</span>
),
project: {
link: "https://github.com/osmon-lang/osmon",
},
chat: {
icon: (
<svg width="30" height="30" viewBox="0 0 50 50">
<path
fill="currentColor"
d="M25,2c12.703,0,23,10.297,23,23S37.703,48,25,48S2,37.703,2,25S12.297,2,25,2z M32.934,34.375 c0.423-1.298,2.405-14.234,2.65-16.783c0.074-0.772-0.17-1.285-0.648-1.514c-0.578-0.278-1.434-0.139-2.427,0.219 c-1.362,0.491-18.774,7.884-19.78,8.312c-0.954,0.405-1.856,0.847-1.856,1.487c0,0.45,0.267,0.703,1.003,0.966 c0.766,0.273,2.695,0.858,3.834,1.172c1.097,0.303,2.346,0.04,3.046-0.395c0.742-0.461,9.305-6.191,9.92-6.693 c0.614-0.502,1.104,0.141,0.602,0.644c-0.502,0.502-6.38,6.207-7.155,6.997c-0.941,0.959-0.273,1.953,0.358,2.351 c0.721,0.454,5.906,3.932,6.687,4.49c0.781,0.558,1.573,0.811,2.298,0.811C32.191,36.439,32.573,35.484,32.934,34.375z"
/>
</svg>
),
link: "https://t.me/osmonlang",
},
docsRepositoryBase:
"https://github.com/osmon-lang/osmon/blob/main/apps/wiki/pages",
footer: {
text: (
<div className="flex w-full flex-col items-center sm:items-start">
<div>
<a
className="flex items-center gap-1 text-current"
target="_blank"
rel="noopener noreferrer"
href="https://oss.uzinfocom.uz"
>
<span>
Uzinfocom Open Source tomonidan qo'llab quvvatlaniladi
</span>
</a>
</div>
<p className="mt-6 text-xs">
© 2021-{new Date().getFullYear()} Osmon Dasturlash Tili
Dasturchilari.
</p>
</div>
),
},
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s – Osmon Dasturlash Tili",
};
}
},
head: () => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const { asPath, defaultLocale, locale } = useRouter();
// eslint-disable-next-line react-hooks/rules-of-hooks
const { frontMatter } = useConfig();
const url =
"https://wiki.osmon-lang.uz" +
(defaultLocale === locale ? asPath : `/${locale}${asPath}`);
return (
<>
<meta property="og:url" content={url} />
<meta
property="og:title"
content={frontMatter.title || "Osmon Dasturlash Tili"}
/>
<meta
property="og:description"
content={
frontMatter.description ||
"O'zbek segmentiga qaratilgan gibrid dasturlash tili"
}
/>
</>
);
},
search: {
loading: "Qidirilmoqda...",
error: "Qidiruvda xatolik yuz berdi",
placeholder: "Qidirish...",
emptyResult: "Natija topilmadi",
},
toc: {
title: "Mundarija",
float: true,
},
editLink: {
text: "Ushbu sahifani GitHubda tahrirlash →",
},
feedback: {
content: "Takliflaringizni qoldiring →",
useLink: () => "https://t.me/osmonchat/136",
},
gitTimestamp: (props) => {
return (
<>
O'zgartirilgan:{" "}
{props.timestamp.toLocaleDateString("uz-Latn", {
year: "numeric",
month: "long",
day: "numeric",
})}
</>
);
},
nextThemes: {
defaultTheme: "dark",
},
themeSwitch: {
useOptions() {
return {
light: "Yorqin",
dark: "Tungi",
system: "Tizim",
};
},
},
};
export default config;