Skip to content

Commit

Permalink
fix: linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rockingrohit9639 committed Aug 3, 2022
1 parent a40d27b commit 0be7573
Show file tree
Hide file tree
Showing 7 changed files with 261 additions and 95 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
docusaurus
3 changes: 2 additions & 1 deletion docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "2.0.1"
"@docusaurus/module-type-aliases": "2.0.1",
"eslint": "^8.21.0"
},
"browserslist": {
"production": [
Expand Down
2 changes: 1 addition & 1 deletion docusaurus/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],

// But you can create a sidebar manually
/*
Expand Down
64 changes: 0 additions & 64 deletions docusaurus/src/components/HomepageFeatures/index.js

This file was deleted.

11 changes: 0 additions & 11 deletions docusaurus/src/components/HomepageFeatures/styles.module.css

This file was deleted.

14 changes: 6 additions & 8 deletions docusaurus/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';

import styles from './index.module.css';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
Expand All @@ -17,7 +16,8 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
to="/docs/intro"
>
View Documentation
</Link>
</div>
Expand All @@ -27,15 +27,13 @@ function HomepageHeader() {
}

export default function Home() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />">
description="Description will go into a meta tag in <head />"
>
<HomepageHeader />
{/* <main>
<HomepageFeatures />
</main> */}
</Layout>
);
}
Loading

0 comments on commit 0be7573

Please sign in to comment.