Skip to content

Commit

Permalink
Merge branch 'main' into fixmcm
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf authored May 30, 2024
2 parents 9ae9720 + 455fbb7 commit c58ce37
Show file tree
Hide file tree
Showing 21 changed files with 385 additions and 401 deletions.
4 changes: 3 additions & 1 deletion site/api/components/Class/Constructors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export function Constructors({
{v.accessibility
? <StyleKw>{v.accessibility}{" "}</StyleKw>
: undefined}
<span style="color: rgb(98, 232, 132);">{v.name}</span>(
<span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">
{v.name}
</span>(
<Params getLink={getLink}>{v.params}</Params>);
</CodeBlock>
{"jsDoc" in v && <P doc>{v.jsDoc?.doc}</P>}
Expand Down
16 changes: 13 additions & 3 deletions site/api/components/Class/Method.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,23 @@ export function Def(
return (
<>
{method.kind == "setter"
? <span style="color: #F286C4;">set{" "}</span>
? (
<span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">
set{" "}
</span>
)
: method.kind == "getter"
? <span style="color: #F286C4;">get{" "}</span>
? (
<span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">
get{" "}
</span>
)
: (
""
)}
<span style="color: #62E884">{method.name}</span>
<span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">
{method.name}
</span>
<TypeParams_ getLink={getLink}>
{typeParams}
</TypeParams_>(
Expand Down
9 changes: 5 additions & 4 deletions site/api/components/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ export function CodeBlock({ children }: { children?: ComponentChildren }) {
return (
<>
{"\n\n"}
<div class="language-ts">
<div class="language-ts vp-adaptive-theme">
<button title="Copy Code" class="copy"></button>
<span class="lang">ts</span>
{"\n\n"}
<pre class="shiki dracula-soft">
<code>{children}</code>
<pre class="shiki shiki-themes github-light github-dark vp-code">
<code style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{children}</code>
</pre>
{"\n\n"}
</div>
{"\n\n"}
</>
Expand Down
4 changes: 2 additions & 2 deletions site/api/components/PropertyName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export function PropertyName({
}) {
return (
<>
<span style={klass ? "" : "color:#FFB86C;font-style:italic;"}>
<span style={klass ? "" : "--shiki-light:#24292E;--shiki-dark:#E1E4E8;"}>
{name}
</span>
{(optional || hasType) && (
<span style="color:#F286C4;">
<span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">
{optional && <>?</>}
{hasType && <>:</>}
</span>
Expand Down
18 changes: 13 additions & 5 deletions site/api/components/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
import { ComponentChildren } from "preact";

export function StyleKw({ children }: { children?: ComponentChildren }) {
return <span style="color:#F286C4;">{children}</span>;
return (
<span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">{children}</span>
);
}

export function StyleStrLit({ children }: { children?: ComponentChildren }) {
return <span style="color:#E7EE98;">{children}</span>;
return (
<span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">{children}</span>
);
}

export function StyleTypeRef({ children }: { children?: ComponentChildren }) {
return (
<span style="color:#97E1F1;font-style:italic;">
<span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">
{children}
</span>
);
}

export function StyleCallee({ children }: { children?: ComponentChildren }) {
return <span style="color:#62E884">{children}</span>;
return (
<span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">{children}</span>
);
}

export function StyleNum({ children }: { children?: ComponentChildren }) {
return <span style="color:#BF9EEE">{children}</span>;
return (
<span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">{children}</span>
);
}
16 changes: 6 additions & 10 deletions site/docs/.vitepress/configs/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ const hostingOverview = {
const hostingTutorials = {
text: "Tutorials",
items: [
{
text: "Virtual Private Server (VPS)",
link: "/hosting/vps",
},
{
text: "Deno Deploy",
link: "/hosting/deno-deploy",
Expand All @@ -372,10 +376,6 @@ const hostingTutorials = {
text: "Cloudflare Workers (Node.js)",
link: "/hosting/cloudflare-workers-nodejs",
},
{
text: "Heroku",
link: "/hosting/heroku",
},
{
text: "Fly",
link: "/hosting/fly",
Expand All @@ -384,10 +384,6 @@ const hostingTutorials = {
text: "Firebase Functions",
link: "/hosting/firebase",
},
{
text: "Google Cloud Functions",
link: "/hosting/gcf",
},
{
text: "Vercel",
link: "/hosting/vercel",
Expand All @@ -397,8 +393,8 @@ const hostingTutorials = {
link: "/hosting/cyclic",
},
{
text: "Virtual Private Server",
link: "/hosting/vps",
text: "Heroku",
link: "/hosting/heroku",
},
],
};
Expand Down
16 changes: 6 additions & 10 deletions site/docs/.vitepress/configs/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ const hostingOverview = {
const hostingTutorials = {
text: "Tutoriales",
items: [
{
text: "Servidor Privado Virtual (VPS)",
link: "/es/hosting/vps",
},
{
text: "Deno Deploy",
link: "/es/hosting/deno-deploy",
Expand All @@ -337,10 +341,6 @@ const hostingTutorials = {
text: "Cloudflare Workers (Node.js)",
link: "/es/hosting/cloudflare-workers-nodejs",
},
{
text: "Heroku",
link: "/es/hosting/heroku",
},
{
text: "Fly",
link: "/es/hosting/fly",
Expand All @@ -349,10 +349,6 @@ const hostingTutorials = {
text: "Firebase Functions",
link: "/es/hosting/firebase",
},
{
text: "Google Cloud Functions",
link: "/es/hosting/gcf",
},
{
text: "Vercel",
link: "/es/hosting/vercel",
Expand All @@ -362,8 +358,8 @@ const hostingTutorials = {
link: "/es/hosting/cyclic",
},
{
text: "Servidor Privado Virtual",
link: "/es/hosting/vps",
text: "Heroku",
link: "/es/hosting/heroku",
},
],
};
Expand Down
16 changes: 6 additions & 10 deletions site/docs/.vitepress/configs/locales/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ const hostingOverview = {
const hostingTutorials = {
text: "Tutorial",
items: [
{
text: "Virtual Private Server (VPS)",
link: "/id/hosting/vps",
},
{
text: "Deno Deploy",
link: "/id/hosting/deno-deploy",
Expand All @@ -336,10 +340,6 @@ const hostingTutorials = {
text: "Cloudflare Workers (Node.js)",
link: "/id/hosting/cloudflare-workers-nodejs",
},
{
text: "Heroku",
link: "/id/hosting/heroku",
},
{
text: "Fly",
link: "/id/hosting/fly",
Expand All @@ -348,10 +348,6 @@ const hostingTutorials = {
text: "Firebase Functions",
link: "/id/hosting/firebase",
},
{
text: "Google Cloud Functions",
link: "/id/hosting/gcf",
},
{
text: "Vercel",
link: "/id/hosting/vercel",
Expand All @@ -361,8 +357,8 @@ const hostingTutorials = {
link: "/id/hosting/cyclic",
},
{
text: "Virtual Private Server",
link: "/id/hosting/vps",
text: "Heroku",
link: "/id/hosting/heroku",
},
],
};
Expand Down
16 changes: 6 additions & 10 deletions site/docs/.vitepress/configs/locales/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ const hostingOverview = {
const hostingTutorials = {
text: "Посібники",
items: [
{
text: "Віртуальний приватний сервер (VPS)",
link: "/uk/hosting/vps",
},
{
text: "Deno Deploy",
link: "/uk/hosting/deno-deploy",
Expand All @@ -341,10 +345,6 @@ const hostingTutorials = {
text: "Cloudflare Workers (Node.js)",
link: "/uk/hosting/cloudflare-workers-nodejs",
},
{
text: "Heroku",
link: "/uk/hosting/heroku",
},
{
text: "Fly",
link: "/uk/hosting/fly",
Expand All @@ -353,10 +353,6 @@ const hostingTutorials = {
text: "Firebase Functions",
link: "/uk/hosting/firebase",
},
{
text: "Google Cloud Functions",
link: "/uk/hosting/gcf",
},
{
text: "Vercel",
link: "/uk/hosting/vercel",
Expand All @@ -366,8 +362,8 @@ const hostingTutorials = {
link: "/uk/hosting/cyclic",
},
{
text: "Віртуальний приватний сервер",
link: "/uk/hosting/vps",
text: "Heroku",
link: "/uk/hosting/heroku",
},
],
};
Expand Down
16 changes: 6 additions & 10 deletions site/docs/.vitepress/configs/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ const hostingOverview = {
const hostingTutorials = {
text: "教程",
items: [
{
text: "Virtual Private Server (VPS)",
link: "/zh/hosting/vps",
},
{
text: "Deno Deploy",
link: "/zh/hosting/deno-deploy",
Expand All @@ -341,10 +345,6 @@ const hostingTutorials = {
text: "Cloudflare Workers (Node.js)",
link: "/zh/hosting/cloudflare-workers-nodejs",
},
{
text: "Heroku",
link: "/zh/hosting/heroku",
},
{
text: "Fly",
link: "/zh/hosting/fly",
Expand All @@ -353,10 +353,6 @@ const hostingTutorials = {
text: "Firebase Functions",
link: "/zh/hosting/firebase",
},
{
text: "Google Cloud Functions",
link: "/zh/hosting/gcf",
},
{
text: "Vercel",
link: "/zh/hosting/vercel",
Expand All @@ -366,8 +362,8 @@ const hostingTutorials = {
link: "/zh/hosting/cyclic",
},
{
text: "Virtual Private Server",
link: "/zh/hosting/vps",
text: "Heroku",
link: "/zh/hosting/heroku",
},
],
};
Expand Down
10 changes: 7 additions & 3 deletions site/docs/.vitepress/theme/layout/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<script setup lang="ts">
import DefaultTheme from 'vitepress/theme-without-fonts'
import { useData } from 'vitepress'
import DefaultTheme from "vitepress/theme-without-fonts";
import { useData } from "vitepress";
import HomeHeroInfo from "./HomeHeroInfo.vue";
import { onMounted } from "vue";
import { polyfillCountryFlagEmojis } from "country-flag-emoji-polyfill";
const { Layout } = DefaultTheme as any;
const { frontmatter } = useData();
onMounted(() => polyfillCountryFlagEmojis());
</script>

<template>
Expand All @@ -13,4 +17,4 @@ const { frontmatter } = useData();
<HomeHeroInfo :name="frontmatter.hero.name" :text="frontmatter.hero.text" :taglines="frontmatter.hero.taglines" />
</template>
</Layout>
</template>
</template>
10 changes: 5 additions & 5 deletions site/docs/.vitepress/theme/style/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ input:checked + label,
.VPNav .title,
.custom-block-title,
.outline-title {
font-family: InterVariable, "Inter var", "Inter", ui-sans-serif, system-ui,
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol", "Noto Color Emoji", Oxygen, Ubuntu, Cantarell,
"Fira Sans", "Droid Sans", sans-serif;
font-family: "Twemoji Country Flags", InterVariable, "Inter var", "Inter",
ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans", "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", Oxygen, Ubuntu,
Cantarell, "Fira Sans", "Droid Sans", sans-serif;
}
6 changes: 3 additions & 3 deletions site/docs/.vitepress/theme/style/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
* -------------------------------------------------------------------------- */

:root {
--vp-font-family-base: InterVariable, "Inter var", "Inter",
ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, "Helvetica Neue", Helvetica, Arial, "Apple Color Emoji",
--vp-font-family-base: "Twemoji Country Flags", InterVariable, "Inter var",
"Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", Oxygen, Ubuntu,
Cantarell, "Fira Sans", "Droid Sans", sans-serif;
--vp-font-family-mono: "Source Code Pro", "SF Mono", Consolas, Monaco,
Expand Down
4 changes: 2 additions & 2 deletions site/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ Works! :tada:

<div style="font-size: 0.75rem; display: flex; justify-content: center;">

© 2021-2024 &middot; grammY supports Telegram Bot API 7.3 which was [released](https://core.telegram.org/bots/api#may-6-2024) on May 6, 2024.
(Last highlight: Inline Keyboards in Business Chats)
© 2021-2024 &middot; grammY supports Telegram Bot API 7.4 which was [released](https://core.telegram.org/bots/api#may-28-2024) on May 28, 2024.
(Last highlight: Telegram Stars)

</div>
</footer>
Expand Down
Loading

0 comments on commit c58ce37

Please sign in to comment.