From e1c4b6441cc9b11850b36916e4933f6394e48fa8 Mon Sep 17 00:00:00 2001 From: Aleksandr Bukhalo Date: Thu, 10 Sep 2020 00:01:43 +0300 Subject: [PATCH] chore: remove unused docusaurus features --- website/blog/2019-05-28-hola.md | 11 --- website/blog/2019-05-29-hello-world.md | 17 ---- website/blog/2019-05-30-welcome.md | 13 --- website/docusaurus.config.js | 128 ++++++++++++------------- website/src/pages/index.js | 3 +- 5 files changed, 66 insertions(+), 106 deletions(-) delete mode 100644 website/blog/2019-05-28-hola.md delete mode 100644 website/blog/2019-05-29-hello-world.md delete mode 100644 website/blog/2019-05-30-welcome.md diff --git a/website/blog/2019-05-28-hola.md b/website/blog/2019-05-28-hola.md deleted file mode 100644 index 4adbc32..0000000 --- a/website/blog/2019-05-28-hola.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -slug: hola -title: Hola -author: Gao Wei -author_title: Docusaurus Core Team -author_url: https://github.com/wgao19 -author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4 -tags: [hola, docusaurus] ---- - -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet diff --git a/website/blog/2019-05-29-hello-world.md b/website/blog/2019-05-29-hello-world.md deleted file mode 100644 index 151671f..0000000 --- a/website/blog/2019-05-29-hello-world.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -slug: hello-world -title: Hello -author: Endilie Yacop Sucipto -author_title: Maintainer of Docusaurus -author_url: https://github.com/endiliey -author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4 -tags: [hello, docusaurus] ---- - -Welcome to this blog. This blog is created with [**Docusaurus 2 alpha**](https://v2.docusaurus.io/). - - - -This is a test post. - -A whole bunch of other information. diff --git a/website/blog/2019-05-30-welcome.md b/website/blog/2019-05-30-welcome.md deleted file mode 100644 index d35d57b..0000000 --- a/website/blog/2019-05-30-welcome.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -slug: welcome -title: Welcome -author: Yangshun Tay -author_title: Front End Engineer @ Facebook -author_url: https://github.com/yangshun -author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4 -tags: [facebook, hello, docusaurus] ---- - -Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well! - -Delete the whole directory if you don't want the blog features. As simple as that! diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 42e58ac..ca66887 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,19 +1,19 @@ module.exports = { - title: 'My Site', - tagline: 'The tagline of my site', + title: 'NestJS Telegraf', + tagline: 'Powerful Nest module for easy and fast creation Telegram bots', url: 'https://your-docusaurus-test-site.com', baseUrl: '/', onBrokenLinks: 'throw', favicon: 'img/favicon.ico', - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'bukhalo', // Usually your GitHub org/user name. + projectName: 'nestjs-telegraf', // Usually your repo name. themeConfig: { navbar: { - title: 'My Site', - logo: { - alt: 'My Site Logo', - src: 'img/logo.svg', - }, + title: 'NestJS Telegraf', + // logo: { + // alt: 'My Site Logo', + // src: 'img/logo.svg', + // }, items: [ { to: 'docs/', @@ -21,9 +21,9 @@ module.exports = { label: 'Docs', position: 'left', }, - {to: 'blog', label: 'Blog', position: 'left'}, + // {to: 'blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/bukhalo/nestjs-telegraf', label: 'GitHub', position: 'right', }, @@ -31,52 +31,52 @@ module.exports = { }, footer: { style: 'dark', - links: [ - { - title: 'Docs', - items: [ - { - label: 'Style Guide', - to: 'docs/', - }, - { - label: 'Second Doc', - to: 'docs/doc2/', - }, - ], - }, - { - title: 'Community', - items: [ - { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', - }, - { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', - }, - { - label: 'Twitter', - href: 'https://twitter.com/docusaurus', - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'Blog', - to: 'blog', - }, - { - label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', - }, - ], - }, - ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + // links: [ + // { + // title: 'Docs', + // items: [ + // { + // label: 'Style Guide', + // to: 'docs/', + // }, + // { + // label: 'Second Doc', + // to: 'docs/doc2/', + // }, + // ], + // }, + // { + // title: 'Community', + // items: [ + // { + // label: 'Stack Overflow', + // href: 'https://stackoverflow.com/questions/tagged/docusaurus', + // }, + // { + // label: 'Discord', + // href: 'https://discordapp.com/invite/docusaurus', + // }, + // { + // label: 'Twitter', + // href: 'https://twitter.com/docusaurus', + // }, + // ], + // }, + // { + // title: 'More', + // items: [ + // { + // label: 'Blog', + // to: 'blog', + // }, + // { + // label: 'GitHub', + // href: 'https://github.com/facebook/docusaurus', + // }, + // ], + // }, + // ], + copyright: `Copyright © ${new Date().getFullYear()} NestJS Telegraf.`, }, }, presets: [ @@ -87,14 +87,14 @@ module.exports = { sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. editUrl: - 'https://github.com/facebook/docusaurus/edit/master/website/', - }, - blog: { - showReadingTime: true, - // Please change this to your repo. - editUrl: - 'https://github.com/facebook/docusaurus/edit/master/website/blog/', + 'https://github.com/bukhalo/nestjs-telegraf/edit/master/website/', }, + // blog: { + // showReadingTime: true, + // // Please change this to your repo. + // editUrl: + // 'https://github.com/bukhalo/nestjs-telegraf/edit/master/website/blog/', + // }, theme: { customCss: require.resolve('./src/css/custom.css'), }, diff --git a/website/src/pages/index.js b/website/src/pages/index.js index fa42291..b261c66 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -78,7 +78,7 @@ function Home() {
- {features && features.length > 0 && ( + {/* {features && features.length > 0 && (
@@ -89,6 +89,7 @@ function Home() {
)} + */}
);