From c8522f48fbebdfdaa7bbec4c26c309fd5289047c Mon Sep 17 00:00:00 2001 From: Thakur Karthik Date: Tue, 15 Oct 2019 00:03:43 +0530 Subject: [PATCH 1/8] install docusaurus v2 and edited docusaurus.config.js --- website/.gitignore | 16 +++ website/core/Footer.js | 112 ----------------- website/docusaurus.config.js | 105 ++++++++++++++++ website/package.json | 20 ++-- website/pages/en/index.js | 131 -------------------- website/siteConfig.js | 89 -------------- website/{static => src}/css/custom.css | 60 +++------- website/{pages/en => src/pages}/faq.js | 2 +- website/src/pages/file1.js | 108 +++++++++++++++++ website/src/pages/file2.js | 130 ++++++++++++++++++++ website/src/pages/index.js | 159 +++++++++++++++++++++++++ website/src/pages/index.module.css | 44 +++++++ website/static/CNAME | 1 + 13 files changed, 592 insertions(+), 385 deletions(-) create mode 100644 website/.gitignore delete mode 100644 website/core/Footer.js create mode 100644 website/docusaurus.config.js delete mode 100755 website/pages/en/index.js delete mode 100644 website/siteConfig.js rename website/{static => src}/css/custom.css (62%) rename website/{pages/en => src/pages}/faq.js (96%) mode change 100755 => 100644 create mode 100644 website/src/pages/file1.js create mode 100644 website/src/pages/file2.js create mode 100644 website/src/pages/index.js create mode 100644 website/src/pages/index.module.css create mode 100644 website/static/CNAME diff --git a/website/.gitignore b/website/.gitignore new file mode 100644 index 0000000000..df5cb509b3 --- /dev/null +++ b/website/.gitignore @@ -0,0 +1,16 @@ +# dependencies +/node_modules +# production +/build +# generated files +.docusaurus +.cache-loader +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local +npm-debug.log* +yarn-debug.log* +yarn-error.log* \ No newline at end of file diff --git a/website/core/Footer.js b/website/core/Footer.js deleted file mode 100644 index bb01710728..0000000000 --- a/website/core/Footer.js +++ /dev/null @@ -1,112 +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 PropTypes = require('prop-types'); -const React = require('react'); - -function SocialFooter(props) { - const repoUrl = `https://github.com/${props.config.organizationName}/${ - props.config.projectName - }`; - return ( -
-
Social
-
- - {props.config.projectName} - -
-
- ); -} - -SocialFooter.propTypes = { - config: PropTypes.object, -}; - -class Footer extends React.Component { - render() { - const docsPart = `${ - this.props.config.docsUrl ? `${this.props.config.docsUrl}/` : '' - }`; - return ( - - ); - } -} - -module.exports = Footer; diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js new file mode 100644 index 0000000000..948d7bd44b --- /dev/null +++ b/website/docusaurus.config.js @@ -0,0 +1,105 @@ +/** + * 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. + */ + +// See https://docusaurus.io/docs/site-config for all the possible +// site configuration options. + +const siteConfig = { + title: "Redex", // Title for your website. + tagline: "An Android Bytecode Optimizer", + url: "https://fbredex.com", + baseUrl: "/", + + // Used for publishing and more + organizationName: "facebook", + projectName: "redex", + + favicon: "img/favicon.png", + + /* Colors for website */ + // colors: { + // primaryColor: '#75c7a4', + // secondaryColor: '#f9f9f9', + // }, + + /* Custom fonts for website */ + /* + fonts: { + myFont: [ + "Times New Roman", + "Serif" + ], + myOtherFont: [ + "-apple-system", + "system-ui" + ] + }, + */ + + // highlight: { + // // Highlight.js theme to use for syntax highlighting in code blocks. + // theme: "default" + // }, + + // Add custom scripts here that would be placed in