From ed8fcdf300bc318188f6e46d25bf814f0b2ed1dd Mon Sep 17 00:00:00 2001 From: Kyle Pfromer Date: Wed, 9 Sep 2020 11:34:20 -0600 Subject: [PATCH] fix: update docs website configuration --- .gitignore | 2 ++ website/docusaurus.config.js | 54 ++++++++++++++++++------------------ 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 9dcf1c30..9ed19e18 100644 --- a/.gitignore +++ b/.gitignore @@ -225,3 +225,5 @@ build/ # example project example/dist example/node_modules + +.docusaurus \ No newline at end of file diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index d3ee383b..9c19b3dc 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,50 +1,50 @@ module.exports = { - title: 'nestjs-typegoose', - tagline: 'Combine NestJS with Typegoose to reduce clutter', - url: 'https://kpfromer.github.io', - baseUrl: '/nestjs-typegoose/', - favicon: 'img/favicon.ico', - organizationName: 'kpfromer', - projectName: 'nestjs-typegoose', + title: "nestjs-typegoose", + tagline: "Combine NestJS with Typegoose to reduce clutter", + url: "https://kpfromer.github.io", + baseUrl: "/nestjs-typegoose/", + favicon: "img/favicon.ico", + organizationName: "kpfromer", + projectName: "nestjs-typegoose", themeConfig: { navbar: { - title: 'Nestjs Typegoose', + title: "Nestjs Typegoose", // logo: { // alt: 'My Site Logo', // src: 'img/logo.svg', // }, - links: [ - {to: 'docs/install', label: 'Docs', position: 'left'}, + items: [ + { to: "docs/install", label: "Docs", position: "left" }, { - href: 'https://github.com/kpfromer/nestjs-typegoose', - label: 'GitHub', - position: 'right', + href: "https://github.com/kpfromer/nestjs-typegoose", + label: "GitHub", + position: "right", }, ], }, footer: { - style: 'dark', + style: "dark", links: [ { - title: 'Docs', + title: "Docs", items: [ { - label: 'Installation', - to: 'docs/install', + label: "Installation", + to: "docs/install", }, { - label: 'Getting Started', - to: 'docs/usage', + label: "Getting Started", + to: "docs/usage", }, ], }, { - title: 'Social', + title: "Social", items: [ { - label: 'GitHub', - href: 'https://github.com/kpfromer/nestjs-typegoose', - } + label: "GitHub", + href: "https://github.com/kpfromer/nestjs-typegoose", + }, ], }, ], @@ -53,15 +53,15 @@ module.exports = { }, presets: [ [ - '@docusaurus/preset-classic', + "@docusaurus/preset-classic", { docs: { - sidebarPath: require.resolve('./sidebars.js'), + sidebarPath: require.resolve("./sidebars.js"), editUrl: - 'https://github.com/kpfromer/nestjs-typegoose/edit/master/website/', + "https://github.com/kpfromer/nestjs-typegoose/edit/master/website/", }, theme: { - customCss: require.resolve('./src/css/custom.css'), + customCss: require.resolve("./src/css/custom.css"), }, }, ],