chore: remove unused docusaurus features

This commit is contained in:
Aleksandr Bukhalo 2020-09-10 00:01:43 +03:00
parent 1eb06e5412
commit e1c4b6441c
5 changed files with 66 additions and 106 deletions

View File

@ -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

View File

@ -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/).
<!--truncate-->
This is a test post.
A whole bunch of other information.

View File

@ -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!

View File

@ -1,19 +1,19 @@
module.exports = { module.exports = {
title: 'My Site', title: 'NestJS Telegraf',
tagline: 'The tagline of my site', tagline: 'Powerful Nest module for easy and fast creation Telegram bots',
url: 'https://your-docusaurus-test-site.com', url: 'https://your-docusaurus-test-site.com',
baseUrl: '/', baseUrl: '/',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
favicon: 'img/favicon.ico', favicon: 'img/favicon.ico',
organizationName: 'facebook', // Usually your GitHub org/user name. organizationName: 'bukhalo', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name. projectName: 'nestjs-telegraf', // Usually your repo name.
themeConfig: { themeConfig: {
navbar: { navbar: {
title: 'My Site', title: 'NestJS Telegraf',
logo: { // logo: {
alt: 'My Site Logo', // alt: 'My Site Logo',
src: 'img/logo.svg', // src: 'img/logo.svg',
}, // },
items: [ items: [
{ {
to: 'docs/', to: 'docs/',
@ -21,9 +21,9 @@ module.exports = {
label: 'Docs', label: 'Docs',
position: 'left', 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', label: 'GitHub',
position: 'right', position: 'right',
}, },
@ -31,52 +31,52 @@ module.exports = {
}, },
footer: { footer: {
style: 'dark', style: 'dark',
links: [ // links: [
{ // {
title: 'Docs', // title: 'Docs',
items: [ // items: [
{ // {
label: 'Style Guide', // label: 'Style Guide',
to: 'docs/', // to: 'docs/',
}, // },
{ // {
label: 'Second Doc', // label: 'Second Doc',
to: 'docs/doc2/', // to: 'docs/doc2/',
}, // },
], // ],
}, // },
{ // {
title: 'Community', // title: 'Community',
items: [ // items: [
{ // {
label: 'Stack Overflow', // label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus', // href: 'https://stackoverflow.com/questions/tagged/docusaurus',
}, // },
{ // {
label: 'Discord', // label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus', // href: 'https://discordapp.com/invite/docusaurus',
}, // },
{ // {
label: 'Twitter', // label: 'Twitter',
href: 'https://twitter.com/docusaurus', // href: 'https://twitter.com/docusaurus',
}, // },
], // ],
}, // },
{ // {
title: 'More', // title: 'More',
items: [ // items: [
{ // {
label: 'Blog', // label: 'Blog',
to: 'blog', // to: 'blog',
}, // },
{ // {
label: 'GitHub', // label: 'GitHub',
href: 'https://github.com/facebook/docusaurus', // href: 'https://github.com/facebook/docusaurus',
}, // },
], // ],
}, // },
], // ],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, copyright: `Copyright © ${new Date().getFullYear()} NestJS Telegraf.`,
}, },
}, },
presets: [ presets: [
@ -87,14 +87,14 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo. // Please change this to your repo.
editUrl: editUrl:
'https://github.com/facebook/docusaurus/edit/master/website/', 'https://github.com/bukhalo/nestjs-telegraf/edit/master/website/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/edit/master/website/blog/',
}, },
// blog: {
// showReadingTime: true,
// // Please change this to your repo.
// editUrl:
// 'https://github.com/bukhalo/nestjs-telegraf/edit/master/website/blog/',
// },
theme: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve('./src/css/custom.css'),
}, },

View File

@ -78,7 +78,7 @@ function Home() {
</div> </div>
</header> </header>
<main> <main>
{features && features.length > 0 && ( {/* {features && features.length > 0 && (
<section className={styles.features}> <section className={styles.features}>
<div className="container"> <div className="container">
<div className="row"> <div className="row">
@ -89,6 +89,7 @@ function Home() {
</div> </div>
</section> </section>
)} )}
*/}
</main> </main>
</Layout> </Layout>
); );