From 0b559a979539998a585f184b5a16dc3e614dbdb2 Mon Sep 17 00:00:00 2001 From: makhnatkin Date: Thu, 26 Sep 2024 13:08:31 +0200 Subject: [PATCH] feat(editor): opened markdown-editor --- .../libraries/[libId]/playground/index.tsx | 4 +--- src/content/landing.ts | 21 +++++++++---------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/[locale]/libraries/[libId]/playground/index.tsx b/src/[locale]/libraries/[libId]/playground/index.tsx index 047303bfa370..ab0a181ccf4d 100644 --- a/src/[locale]/libraries/[libId]/playground/index.tsx +++ b/src/[locale]/libraries/[libId]/playground/index.tsx @@ -48,9 +48,7 @@ export const getStaticProps: GetStaticProps = async (context) => { }; }; -// TODO: open with article -// export const availablePlaygrounds = ['markdown-editor']; -export const availablePlaygrounds = [] as string[]; +export const availablePlaygrounds = ['markdown-editor']; export const PlaygroundPage = ({libId}: {libId: string}) => { const hasPlayground = availablePlaygrounds.includes(libId); diff --git a/src/content/landing.ts b/src/content/landing.ts index 150a1c4704db..29095e4be552 100644 --- a/src/content/landing.ts +++ b/src/content/landing.ts @@ -81,17 +81,16 @@ export const getLanding = (t: TFunction): CustomPageContent => ({ }, ], }, - // TODO: open with article - // banner: { - // image: { - // src: './static/images/markdown-editor/banner.png', - // href: '/libraries/markdown-editor/playground', - // alt: 'markdown-editor', - // title: 'markdown-editor', - // }, - // title: t('home:banner_title'), - // content: t('home:banner_content'), - // }, + banner: { + image: { + src: './static/images/markdown-editor/banner.png', + href: '/libraries/markdown-editor/playground', + alt: 'markdown-editor', + title: 'markdown-editor', + }, + title: t('home:banner_title'), + content: t('home:banner_content'), + }, }, { type: CustomBlock.CustomExtendedFeatures,