Fixed lint issues

This commit is contained in:
bisht-richa 2022-07-18 17:07:04 +02:00
parent 48a1995e5d
commit 2d6a28a58b
3 changed files with 23 additions and 28 deletions

View File

@ -1,3 +1 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
export const presets = [require.resolve('@docusaurus/core/lib/babel/preset')];

View File

@ -6,27 +6,26 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Rancher DevKit',
tagline: 'Rancher development kit',
url: 'https://bisht-richa.github.io',
baseUrl: '/dashboard/',
onBrokenLinks: 'throw',
title: 'Rancher DevKit',
tagline: 'Rancher development kit',
url: 'https://bisht-richa.github.io',
baseUrl: '/dashboard/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
trailingSlash: false,
favicon: 'img/favicon.ico',
trailingSlash: false,
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'bisht-richa', // Usually your GitHub org/user name.
projectName: 'dashboard', // Usually your repo name.
projectName: 'dashboard', // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
locales: ['en'],
},
presets: [
@ -35,16 +34,14 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
blog: false,
theme: {customCss: require.resolve('./src/css/custom.css'),},
}),
],
],
@ -59,23 +56,23 @@ const config = {
},
items: [
{
type: 'doc',
docId: 'introduction',
type: 'doc',
docId: 'introduction',
position: 'left',
label: 'DevKit',
label: 'DevKit',
},
],
},
footer: {
style: 'dark',
links: [],
copyright: `Copyright © ${new Date().getFullYear()} Rancher. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks.`,
style: 'dark',
links: [],
copyright: `Copyright © ${ new Date().getFullYear() } Rancher. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks.`,
},
prism: {
theme: lightCodeTheme,
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;
module.exports = config;

View File

@ -28,4 +28,4 @@ const sidebars = {
*/
};
module.exports = sidebars;
export default sidebars;