Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…d revert package.json to fix twoslashes/twoslash#50
  • Loading branch information
kravetsone committed Aug 25, 2024
1 parent 249ec68 commit e1a2888
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 18 deletions.
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
13 changes: 11 additions & 2 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// import shikiColorizedBrackets from "@michael-makes/shiki-colorized-brackets";
import { transformerTwoslash } from "@shikijs/vitepress-twoslash";
import presetIcons from "@unocss/preset-icons";
import Unocss from "unocss/vite";
import { defineConfig } from "vitepress";
import {
groupIconMdPlugin,
groupIconVitePlugin,
} from "vitepress-plugin-group-icons";
import { localeEn, localeRu } from "./config/locales";

// https://vitepress.dev/reference/site-config
Expand All @@ -11,7 +16,7 @@ export default defineConfig({
cleanUrls: true,
vite: {
publicDir: "../public",
plugins: [Unocss({ presets: [presetIcons()] })],
plugins: [Unocss({ presets: [presetIcons()] }), groupIconVitePlugin()],
// TODO: remove when bun on windows out!
// server: {
// watch: {
Expand Down Expand Up @@ -70,7 +75,11 @@ export default defineConfig({
...localeRu,
},
markdown: {
codeTransformers: [transformerTwoslash()],
codeTransformers: [transformerTwoslash() /**shikiColorizedBrackets()**/],
config: (md) => {
// @ts-ignore
md.use(groupIconMdPlugin);
},
},
lastUpdated: true,
themeConfig: {
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import TwoslashFloatingVue from "@shikijs/vitepress-twoslash/client";
import "@shikijs/vitepress-twoslash/style.css";
import "virtual:uno.css";
import "virtual:group-icons.css";
import "./style.css";
import type { EnhanceAppContext } from "vitepress";
import Theme from "vitepress/theme";
Expand Down
5 changes: 4 additions & 1 deletion docs/files/media-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ Method for uploading Media File by Readable stream.
// @errors: 2345
import { Bot, MessageContext } from "gramio";
import { MediaUpload } from "@gramio/files";
import fs from "node:fs";

// import fs from "node:fs";
// https://github.com/gramiojs/documentation/actions/runs/10424909870/job/28874689592 wtf
const fs = {} as any;

const ctx = {} as InstanceType<MessageContext<Bot>>;
// ---cut---
Expand Down
1 change: 1 addition & 0 deletions docs/tma/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ sudo echo "127.0.0.1 mini-app.local" >> /etc/hosts
4. Configure it in `vite.config.ts`

```ts

import fs from "node:fs";
import { defineConfig } from "vite";

Expand Down
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"private": true,
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@fluent/bundle": "^0.18.0",
"@gramio/auto-retry": "^0.0.3",
"@gramio/autoload": "^1.1.0",
"@gramio/autoload": "^1.0.1",
"@gramio/files": "^0.0.12",
"@gramio/format": "^0.1.3",
"@gramio/i18n": "^0.0.4",
"@gramio/init-data": "^0.0.1",
"@gramio/keyboards": "^0.3.3",
"@gramio/prompt": "^0.1.0",
"@gramio/session": "^0.1.5",
"@gramio/types": "^7.9.0",
"@iconify-json/logos": "^1.1.44",
"@iconify-json/skill-icons": "^1.1.10",

"@shikijs/vitepress-twoslash": "^1.13.0",
"@types/node": "^22.4.0",
"@unocss/preset-icons": "^0.62.2",
"elysia": "^1.1.6",
"gramio": "^0.0.48",
"grammy": "^1.29.0",
"undici": "^6.19.7",
"unocss": "^0.62.2",
"vitepress": "^1.3.2"
"@gramio/types": "^7.8.0",
"@iconify-json/logos": "^1.1.43",
"@iconify-json/skill-icons": "^1.1.9",
"@shikijs/vitepress-twoslash": "^1.12.1",
"@types/node": "^22.1.0",
"@unocss/preset-icons": "^0.61.9",
"elysia": "^1.1.5",
"gramio": "^0.0.47",
"grammy": "^1.28.0",
"undici": "^6.19.5",
"unocss": "^0.61.9",
"vitepress": "^1.3.0",
"vitepress-plugin-group-icons": "^1.0.3"
},
"scripts": {
"dev": "bunx vitepress dev docs",
Expand Down

0 comments on commit e1a2888

Please sign in to comment.