diff --git a/website/core/Footer.js b/website/core/Footer.js deleted file mode 100644 index 2eba00354..000000000 --- a/website/core/Footer.js +++ /dev/null @@ -1,116 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const React = require('react') - -const Footer = ({ config }) => { - const docUrl = (doc, language) => { - const baseUrl = config.baseUrl - return `${baseUrl}${language ? `${language}/` : ''}${doc}` - } - - const pageUrl = (doc, language) => { - const baseUrl = config.baseUrl - return baseUrl + (language ? `${language}/` : '') + doc - } - return ( - - ) -} - -module.exports = Footer diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 21fe21904..4db7170d1 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -27,6 +27,7 @@ const siteConfig = { ] ], title: 'React Redux', // Title for your website. + onBrokenLinks: 'throw', tagline: 'Official React bindings for Redux', url: 'https://react-redux.js.org', // Your website URL baseUrl: '/', diff --git a/website/package.json b/website/package.json index a21cf6761..355d8b28e 100644 --- a/website/package.json +++ b/website/package.json @@ -1,17 +1,16 @@ { "scripts": { + "docusaurus": "docusaurus", "start": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", - "publish-gh-pages": "docusaurus-publish", - "write-translations": "docusaurus-write-translations", - "version": "docusaurus-version", - "rename-version": "docusaurus-rename-version" + "version": "docusaurus docs:version", + "serve": "docusaurus serve" }, "devDependencies": { - "@docusaurus/core": "^2.0.0-alpha.65", - "@docusaurus/preset-classic": "^2.0.0-alpha.65", + "@docusaurus/core": "2.0.0-alpha.65", + "@docusaurus/preset-classic": "2.0.0-alpha.65", "classnames": "^2.2.6", "react": "^16.10.2", "react-dom": "^16.10.2" diff --git a/website/src/pages/404.js b/website/src/pages/404.js deleted file mode 100644 index 4755399a7..000000000 --- a/website/src/pages/404.js +++ /dev/null @@ -1,42 +0,0 @@ -const React = require("react"); -const siteConfig = require(`${process.cwd()}/siteConfig.js`); - -class ErrorPage extends React.Component { - getTrackingScript() { - if (!siteConfig.gaTrackingId) { - return null; - } - - return {__html:` - ga('create', "${siteConfig.gaTrackingId}"); - ga('send', { - hitType: 'event', - eventCategory: '404 Response', - eventAction: window.location.href, - eventLabel: document.referrer - });` - } - } - - render() { - const trackingScript = this.getTrackingScript(); - - return ( -
- {trackingScript &&