diff --git a/.env.example b/.env.example deleted file mode 100644 index a02f01f..0000000 --- a/.env.example +++ /dev/null @@ -1,2 +0,0 @@ -AUTHORIZATION_CLIENT_ID=github-client-id -AUTHORIZATION_TOKEN_URL=http://localhost:9999/authenticate/ diff --git a/.gitignore b/.gitignore index 074ae97..b2d6de3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,11 +7,9 @@ # Generated files .docusaurus .cache-loader -.eslintcache # Misc .DS_Store -.env .env.local .env.development.local .env.test.local @@ -20,11 +18,3 @@ npm-debug.log* yarn-debug.log* yarn-error.log* - -# Yarn -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/sdks -!.yarn/versions diff --git a/docusaurus.config.js b/docusaurus.config.js index 951313d..ab79c11 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,8 +1,6 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path'); // eslint-disable-next-line @typescript-eslint/no-var-requires const lightCodeTheme = require('prism-react-renderer/themes/github'); // eslint-disable-next-line @typescript-eslint/no-var-requires @@ -20,15 +18,7 @@ const config = { favicon: 'img/favicon.ico', organizationName: 'jlvandenhout', // Usually your GitHub org/user name. projectName: 'docusaurus-plugin-docs-editor-preview', // Usually your repo name. - plugins: [ - [ - path.resolve(__dirname, './../lib'), - { - authorizationClientId: process.env.AUTHORIZATION_CLIENT_ID, - authorizationTokenUrl: process.env.AUTHORIZATION_TOKEN_URL, - }, - ], - ], + presets: [ [ 'classic', diff --git a/package.json b/package.json index f062aed..e40db57 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "preview", + "name": "website", "version": "0.0.0", "private": true, "scripts": { "docusaurus": "docusaurus", - "start": "env-cmd docusaurus start", + "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", @@ -12,33 +12,20 @@ "serve": "docusaurus serve", "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", - "check": "prettier --check . && eslint --cache . && tsc", - "fix": "prettier --write . && eslint --cache --fix .", - "postinstall": "husky install" + "typecheck": "tsc" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.15", - "@docusaurus/preset-classic": "2.0.0-beta.15", - "@mdx-js/react": "^1.6.21", + "@docusaurus/core": "2.0.0-beta.16", + "@docusaurus/preset-classic": "2.0.0-beta.16", + "@mdx-js/react": "^1.6.22", "clsx": "^1.1.1", "prism-react-renderer": "^1.2.1", - "react": "^17.0.2", - "react-dom": "^17.0.2" + "react": "^17.0.1", + "react-dom": "^17.0.1" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.15", + "@docusaurus/module-type-aliases": "2.0.0-beta.16", "@tsconfig/docusaurus": "^1.0.4", - "@types/eslint": "^8", - "@types/prettier": "^2", - "@typescript-eslint/eslint-plugin": "^5.12.0", - "@typescript-eslint/parser": "^5.12.0", - "env-cmd": "^10.1.0", - "eslint": "^8.9.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-react": "^7.28.0", - "husky": ">=6", - "lint-staged": ">=10", - "prettier": "^2.5.1", "typescript": "^4.5.2" }, "browserslist": { @@ -52,10 +39,5 @@ "last 1 firefox version", "last 1 safari version" ] - }, - "packageManager": "yarn@3.1.1", - "lint-staged": { - "*.{js,jsx,ts,tsx,css,less,md,mdx,json}": "prettier --write", - "*.{js,jsx,ts,tsx}": "eslint --cache --fix" } } diff --git a/src/components/HomepageFeatures.tsx b/src/components/HomepageFeatures/index.tsx similarity index 80% rename from src/components/HomepageFeatures.tsx rename to src/components/HomepageFeatures/index.tsx index 2021e8c..b23b962 100644 --- a/src/components/HomepageFeatures.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -1,7 +1,6 @@ -import useBaseUrl from '@docusaurus/useBaseUrl'; import React from 'react'; import clsx from 'clsx'; -import styles from './HomepageFeatures.module.css'; +import styles from './styles.module.css'; type FeatureItem = { title: string; @@ -12,7 +11,7 @@ type FeatureItem = { const FeatureList: FeatureItem[] = [ { title: 'Easy to Use', - image: '/img/undraw_docusaurus_mountain.svg', + image: require('@site/src/static/img/undraw_docusaurus_mountain.svg'), description: ( <> Docusaurus was designed from the ground up to be easily installed and @@ -22,7 +21,7 @@ const FeatureList: FeatureItem[] = [ }, { title: 'Focus on What Matters', - image: '/img/undraw_docusaurus_tree.svg', + image: require('@site/src/static/img/undraw_docusaurus_tree.svg'), description: ( <> Docusaurus lets you focus on your docs, and we'll do the chores. Go @@ -32,7 +31,7 @@ const FeatureList: FeatureItem[] = [ }, { title: 'Powered by React', - image: '/img/undraw_docusaurus_react.svg', + image: require('@site/src/static/img/undraw_docusaurus_react.svg'), description: ( <> Extend or customize your website layout by reusing React. Docusaurus can @@ -46,11 +45,7 @@ function Feature({ title, image, description }: FeatureItem) { return (