-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration docusaurus 2 #429
base: main
Are you sure you want to change the base?
Changes from 6 commits
c8522f4
43d7991
0566d2b
ee05638
3cf0dad
7faa889
2953d1e
2215469
42ef9a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"editor.detectIndentation": false | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>app_</name> | ||
<comment>Project app_ created by Buildship.</comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.buildship.core.gradleprojectbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.buildship.core.gradleprojectnature</nature> | ||
</natures> | ||
</projectDescription> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
arguments= | ||
auto.sync=false | ||
build.scans.enabled=false | ||
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(5.6.1)) | ||
connection.project.dir= | ||
eclipse.preferences.version=1 | ||
gradle.user.home= | ||
java.home= | ||
jvm.arguments= | ||
offline.mode=false | ||
override.workspace.settings=true | ||
show.console.view=true | ||
show.executions.view=true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Sat Oct 26 20:11:40 IST 2019 | ||
gradle.version=5.6.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>Synth</name> | ||
<comment>Project Synth created by Buildship.</comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.buildship.core.gradleprojectbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.buildship.core.gradleprojectnature</nature> | ||
</natures> | ||
</projectDescription> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
arguments= | ||
auto.sync=false | ||
build.scans.enabled=false | ||
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(5.6.1)) | ||
connection.project.dir= | ||
eclipse.preferences.version=1 | ||
gradle.user.home= | ||
java.home= | ||
jvm.arguments= | ||
offline.mode=false | ||
override.workspace.settings=true | ||
show.console.view=true | ||
show.executions.view=true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
// 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", | ||
// You may provide arbitrary config keys to be used as needed by your | ||
// template. For example, if you need your repo's URL... | ||
// repoUrl: "https://github.com/facebook/redex", | ||
presets: [ | ||
[ | ||
"@docusaurus/preset-classic", | ||
{ | ||
docs: { | ||
// docs folder path relative to website dir. | ||
path: "../docs", | ||
// sidebars file relative to website dir. | ||
sidebarPath: require.resolve("./sidebars.json"), | ||
// Equivalent to `enableUpdateBy`. | ||
showLastUpdateAuthor: true, | ||
// Equivalent to `enableUpdateTime`. | ||
showLastUpdateTime: true | ||
}, | ||
theme: { | ||
customCss: require.resolve("./src/css/custom.css") | ||
} | ||
} | ||
] | ||
], | ||
themeConfig: { | ||
navbar: { | ||
title: "Redex", | ||
logo: { | ||
alt: "Redex Logo", | ||
src: "img/favicon.png" | ||
}, | ||
links: [ | ||
{ to: "docs/installation", label: "Docs", position: "right" }, | ||
{ to: "docs/faq", label: "FAQ", position: "right" }, | ||
// {to: 'blog', label: 'Blog'}, // put back when we create a blog folder and add our first blog | ||
{ | ||
href: | ||
"https://code.facebook.com/posts/1480969635539475/optimizing-android-bytecode-with-redex", | ||
label: "Birth", | ||
position: "right" | ||
} | ||
] | ||
}, | ||
footer: { | ||
style: "dark", | ||
logo: { | ||
alt: "Facebook Open Source Logo", | ||
src: "img/oss_logo.png" | ||
}, | ||
links: [ | ||
{ | ||
title: "Docs", | ||
items: [ | ||
{ | ||
label: "Getting Started", | ||
to: "docs/installation" | ||
}, | ||
{ | ||
label: "Configuring", | ||
to: "docs/configuring" | ||
}, | ||
{ | ||
label: "Using", | ||
to: "docs/usage" | ||
}, | ||
{ | ||
label: "FAQ", | ||
to: "docs/faq" | ||
} | ||
] | ||
}, | ||
{ | ||
title: "Social", | ||
items: [ | ||
{ | ||
label: "Github", | ||
href: "https://github.com/facebook/redex" | ||
} | ||
] | ||
} | ||
], | ||
// This copyright info is used in /core/Footer.js and blog RSS/Atom feeds. | ||
copyright: `Copyright © ${new Date().getFullYear()} Facebook Inc.` | ||
}, | ||
image: "img/og_image.png" | ||
} | ||
}; | ||
|
||
module.exports = siteConfig; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
{ | ||
"scripts": { | ||
"examples": "docusaurus-examples", | ||
"start": "docusaurus-start", | ||
"build": "docusaurus-build", | ||
"publish-gh-pages": "docusaurus-publish", | ||
"write-translations": "docusaurus-write-translations", | ||
"version": "docusaurus-version", | ||
"rename-version": "docusaurus-rename-version" | ||
"start": "docusaurus start", | ||
"build": "docusaurus build", | ||
"swizzle": "docusaurus swizzle", | ||
"deploy": "docusaurus deploy" | ||
|
||
}, | ||
"devDependencies": { | ||
"docusaurus": "^1.7.2" | ||
"@docusaurus/core": "^2.0.0-alpha.27", | ||
"@docusaurus/preset-classic": "^2.0.0-alpha.27", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ThakurKarthik can you please update Docusaurus to the latest version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have updated them to newer 2.0.0-alpha.34 version |
||
"classnames": "^2.2.6", | ||
"react": "^16.8.4", | ||
"react-dom": "^16.8.4" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* /src/css/custom.css | ||
* You can override the default Infima variables here. | ||
* Note: this is not a complete list of --ifm- variables. | ||
*/ | ||
:root { | ||
--ifm-color-primary: #75c7a4; | ||
--ifm-color-primary-dark: rgb(105, 173, 147); | ||
--ifm-color-primary-darker: rgb(99, 163, 139); | ||
--ifm-color-primary-darkest: rgb(82, 134, 115); | ||
--ifm-color-primary-light: rgb(138, 201, 178); | ||
--ifm-color-primary-lighter: rgb(158, 211, 191); | ||
--ifm-color-primary-lightest: rgb(186, 224, 210); | ||
--ifm-color-secondary: #f9f9f9; | ||
--ifm-color-primary-dark: rgb(216, 216, 216); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please just leave what's necessary. |
||
--ifm-color-primary-darker: rgb(204, 204, 204); | ||
--ifm-color-primary-darkest: rgb(168, 168, 168); | ||
--ifm-color-primary-light: rgb(242, 242, 242); | ||
--ifm-color-primary-lighter: rgb(245, 245, 245); | ||
--ifm-color-primary-lightest: rgb(248, 248, 248); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @yangshun should i remove fonts from website/static/css/custom.css too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes please There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @yangshun I have removed the fonts. |
||
|
||
body { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this whole class |
||
font-family: "Lato", "Helvetica Neue", Arial, sans-serif; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/** | ||
This comment was marked as resolved.
Sorry, something went wrong. |
||
* 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. | ||
*/ | ||
|
||
import React from "react"; | ||
import Layout from "@theme/Layout"; | ||
import withBaseUrl from "@docusaurus/withBaseUrl"; | ||
import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; | ||
import Link from "@docusaurus/Link"; | ||
|
||
function Help(props) { | ||
const context = useDocusaurusContext(); | ||
const { siteConfig = {} } = context; | ||
const supportLinks = [ | ||
{ | ||
content: "Ask questions about the documentation and project", | ||
title: "Join the community" | ||
}, | ||
{ | ||
content: "Find out what's new with this project", | ||
title: "Stay up to date" | ||
} | ||
]; | ||
return ( | ||
<Layout title={siteConfig.title} description={siteConfig.description}> | ||
<div className="docMainWrapper wrapper"> | ||
<div className="container padding-vert--lg padding-top--xl"> | ||
<div className="post"> | ||
<header className="postHeader"> | ||
<h1>Need help?</h1> | ||
</header> | ||
<p>This project is maintained by a dedicated group of people.</p> | ||
</div> | ||
<main> | ||
{supportLinks && supportLinks.length && ( | ||
<section> | ||
<div className="row padding-top--lg"> | ||
<div className="col col--4 text--break"> | ||
<h3>Browse Docs</h3> | ||
<p> | ||
Learn more using the{" "} | ||
<Link to={withBaseUrl("docs/installation")}> | ||
documentation on this site. | ||
</Link> | ||
</p> | ||
</div> | ||
{supportLinks.map((link, index) => ( | ||
<div key={index} className="col col--4 text--break"> | ||
<h3>{link.title}</h3> | ||
<p>{link.content}</p> | ||
</div> | ||
))} | ||
</div> | ||
</section> | ||
)} | ||
</main> | ||
</div> | ||
</div> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default Help; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use 2 spaces (at the most, 4) for indentation. Recommend you install the Prettier plugin for your editor.