Skip to content

Commit d828dd8

Browse files
authored
Merge pull request #29 from teacoder-team/dev
Dev
2 parents 4de7fbb + b14ebc8 commit d828dd8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5889
-806
lines changed

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release Library
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
publish:
12+
name: Build & Publish nestjs-yookassa
13+
runs-on: ubuntu-latest
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
steps:
20+
- name: 📥 Checkout repository
21+
uses: actions/checkout@v3
22+
23+
- name: 📦 Set up PNPM
24+
uses: pnpm/action-setup@v2
25+
with:
26+
version: 9
27+
28+
- name: 🧰 Set up Node.js
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: 20
32+
registry-url: 'https://registry.npmjs.org/'
33+
cache: 'pnpm'
34+
35+
- name: 📥 Install dependencies
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: 🛠️ Build packages
39+
run: pnpm build:packages
40+
41+
- name: 🚀 Publish to NPM
42+
working-directory: packages/nestjs-yookassa
43+
run: pnpm publish --access public
44+
env:
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

apps/www/.source/index.ts

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
// @ts-nocheck -- skip type checking
2+
import { _runtime } from 'fumadocs-mdx'
3+
4+
import * as _source from '../source.config'
5+
import * as docs_0 from '../src/content/docs/getting-started/installation.mdx?collection=docs&hash=1747978597111'
6+
import * as docs_1 from '../src/content/docs/getting-started/introduction.mdx?collection=docs&hash=1747978597111'
7+
import * as meta_0 from '../src/content/docs/meta.json?collection=meta&hash=1747978597111'
8+
import * as docs_2 from '../src/content/docs/payments/cancel.mdx?collection=docs&hash=1747978597111'
9+
import * as docs_3 from '../src/content/docs/payments/confirm.mdx?collection=docs&hash=1747978597111'
10+
import * as docs_4 from '../src/content/docs/payments/create.mdx?collection=docs&hash=1747978597111'
11+
import * as docs_5 from '../src/content/docs/payments/info.mdx?collection=docs&hash=1747978597111'
12+
import * as docs_6 from '../src/content/docs/payments/list.mdx?collection=docs&hash=1747978597111'
13+
import * as docs_7 from '../src/content/docs/refunds/create.mdx?collection=docs&hash=1747978597111'
14+
import * as docs_8 from '../src/content/docs/refunds/info.mdx?collection=docs&hash=1747978597111'
15+
import * as docs_9 from '../src/content/docs/refunds/list.mdx?collection=docs&hash=1747978597111'
16+
17+
export const docs = _runtime.doc<typeof _source.docs>([
18+
{
19+
info: {
20+
path: 'getting-started\\installation.mdx',
21+
absolutePath:
22+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/getting-started/installation.mdx'
23+
},
24+
data: docs_0
25+
},
26+
{
27+
info: {
28+
path: 'getting-started\\introduction.mdx',
29+
absolutePath:
30+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/getting-started/introduction.mdx'
31+
},
32+
data: docs_1
33+
},
34+
{
35+
info: {
36+
path: 'payments\\cancel.mdx',
37+
absolutePath:
38+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/payments/cancel.mdx'
39+
},
40+
data: docs_2
41+
},
42+
{
43+
info: {
44+
path: 'payments\\confirm.mdx',
45+
absolutePath:
46+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/payments/confirm.mdx'
47+
},
48+
data: docs_3
49+
},
50+
{
51+
info: {
52+
path: 'payments\\create.mdx',
53+
absolutePath:
54+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/payments/create.mdx'
55+
},
56+
data: docs_4
57+
},
58+
{
59+
info: {
60+
path: 'payments\\info.mdx',
61+
absolutePath:
62+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/payments/info.mdx'
63+
},
64+
data: docs_5
65+
},
66+
{
67+
info: {
68+
path: 'payments\\list.mdx',
69+
absolutePath:
70+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/payments/list.mdx'
71+
},
72+
data: docs_6
73+
},
74+
{
75+
info: {
76+
path: 'refunds\\create.mdx',
77+
absolutePath:
78+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/refunds/create.mdx'
79+
},
80+
data: docs_7
81+
},
82+
{
83+
info: {
84+
path: 'refunds\\info.mdx',
85+
absolutePath:
86+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/refunds/info.mdx'
87+
},
88+
data: docs_8
89+
},
90+
{
91+
info: {
92+
path: 'refunds\\list.mdx',
93+
absolutePath:
94+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/refunds/list.mdx'
95+
},
96+
data: docs_9
97+
}
98+
])
99+
export const meta = _runtime.meta<typeof _source.meta>([
100+
{
101+
info: {
102+
path: 'meta.json',
103+
absolutePath:
104+
'C:/javascript-app/libs/nestjs-yookassa/apps/www/src/content/docs/meta.json'
105+
},
106+
data: meta_0
107+
}
108+
])

apps/www/.source/source.config.mjs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// source.config.ts
2+
import { transformerRemoveNotationEscape } from "@shikijs/transformers";
3+
import { rehypeCodeDefaultOptions } from "fumadocs-core/mdx-plugins";
4+
import { remarkInstall } from "fumadocs-docgen";
5+
import { defineConfig, defineDocs } from "fumadocs-mdx/config";
6+
import { transformerTwoslash } from "fumadocs-twoslash";
7+
import { createFileSystemTypesCache } from "fumadocs-twoslash/cache-fs";
8+
import rehypeKatex from "rehype-katex";
9+
var { docs, meta } = defineDocs({
10+
dir: "src/content/docs"
11+
});
12+
var source_config_default = defineConfig({
13+
mdxOptions: {
14+
rehypeCodeOptions: {
15+
lazy: true,
16+
experimentalJSEngine: true,
17+
langs: ["ts", "js", "html", "tsx", "mdx"],
18+
inline: "tailing-curly-colon",
19+
themes: {
20+
light: "catppuccin-latte",
21+
dark: "catppuccin-mocha"
22+
},
23+
transformers: [
24+
...rehypeCodeDefaultOptions.transformers ?? [],
25+
transformerTwoslash({
26+
typesCache: createFileSystemTypesCache()
27+
}),
28+
transformerRemoveNotationEscape()
29+
]
30+
},
31+
remarkCodeTabOptions: {
32+
parseMdx: true
33+
},
34+
remarkPlugins: [
35+
[remarkInstall, {
36+
persist: {
37+
id: "package-manager"
38+
}
39+
}]
40+
],
41+
rehypePlugins: (v) => [rehypeKatex, ...v]
42+
}
43+
});
44+
export {
45+
source_config_default as default,
46+
docs,
47+
meta
48+
};

apps/www/components.json

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

apps/www/contentlayer.config.ts

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

apps/www/next.config.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
'use strict'
22

3+
import { createMDX } from 'fumadocs-mdx/next'
34
import type { NextConfig } from 'next'
4-
import { createContentlayerPlugin } from 'next-contentlayer2'
55

6-
const nextConfig: NextConfig = {
6+
const withMDX = createMDX()
7+
8+
const config: NextConfig = {
79
reactStrictMode: true,
810
output: 'standalone',
911
trailingSlash: false,
@@ -13,8 +15,4 @@ const nextConfig: NextConfig = {
1315
}
1416
}
1517

16-
const withContentlayer = createContentlayerPlugin({
17-
// Additional Contentlayer config options
18-
})
19-
20-
export default withContentlayer(nextConfig)
18+
export default withMDX(config)

0 commit comments

Comments
 (0)