nestjs-telegraf/website/docusaurus.config.js

96 lines
2.5 KiB
JavaScript
Raw Normal View History

2023-07-23 15:28:11 +03:00
function getNextVersionName() {
return 'Canary';
}
const BASE_GH_URL = 'https://github.com/maks1ms/nestjs-telegraf';
2020-09-09 23:17:31 +03:00
module.exports = {
title: 'NestJS Telegraf',
tagline: 'Powerful Nest module for easy and fast creation Telegram bots',
2023-07-23 15:28:11 +03:00
url: 'https://nestjs-telegraf-maks1ms.vercel.app',
2020-09-09 23:17:31 +03:00
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.ico',
2023-07-23 15:28:11 +03:00
organizationName: 'maks1ms',
2021-08-05 12:45:35 +03:00
projectName: 'nestjs-telegraf',
2020-09-09 23:17:31 +03:00
themeConfig: {
navbar: {
title: 'NestJS Telegraf',
2020-09-09 23:17:31 +03:00
items: [
{
2023-07-23 15:28:11 +03:00
type: 'docsVersionDropdown',
position: 'right',
},
{
href: BASE_GH_URL,
2020-09-09 23:17:31 +03:00
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
2021-02-14 23:59:26 +03:00
links: [
{
title: 'Docs',
items: [
{
label: 'Getting Started',
2021-08-05 12:45:35 +03:00
to: '/',
2021-02-14 23:59:26 +03:00
},
],
},
{
title: 'Community',
items: [
{
label: 'Discussions',
2023-07-23 15:28:11 +03:00
href: `${BASE_GH_URL}/discussions`,
2021-02-14 23:59:26 +03:00
},
],
},
{
title: 'More',
items: [
{
label: 'Issues',
2023-07-23 15:28:11 +03:00
href: `${BASE_GH_URL}/issues`,
2021-02-14 23:59:26 +03:00
},
{
label: 'Examples',
2023-07-23 15:28:11 +03:00
to: `${BASE_GH_URL}/tree/master/sample/`,
},
2021-02-14 23:59:26 +03:00
],
},
],
2023-07-23 15:28:11 +03:00
copyright: `Copyright © 2019 - 2023 <a target="_blank" href="https://hypeer.company">Hypeer</a>, <a target="_blank" href="mailto:arthur.asimov.z0@gmail.com">Arthur Asimov</a> and <a target="_blank" href="https://github.com/hypeertech/nestjs-telegraf/graphs/contributors">Others</a>.<br>
Copyright 2023 - <a target="_blank" href="https://github.com/Maks1mS">Maks1mS</a> and <a target="_blank" href="${BASE_GH_URL}/graphs/contributors">Others</a>`,
2020-09-09 23:17:31 +03:00
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
2021-08-05 12:45:35 +03:00
routeBasePath: '/',
2023-07-23 15:28:11 +03:00
editUrl: ({ docPath }) => {
const nextVersionDocsDirPath = 'docs';
return `${BASE_GH_URL}/edit/main/website/${nextVersionDocsDirPath}/${docPath}`;
},
showLastUpdateAuthor: true,
showLastUpdateTime: true,
2023-07-23 15:28:11 +03:00
versions: {
current: {
label: `${getNextVersionName()} 🚧`,
},
},
2020-09-09 23:17:31 +03:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};