Conversation
website/package.json
Outdated
| "write-translations": "docusaurus-write-translations", | ||
| "version": "docusaurus-version", | ||
| "rename-version": "docusaurus-rename-version" | ||
| "examples": "docusaurus examples", |
There was a problem hiding this comment.
| "examples": "docusaurus examples", |
website/package.json
Outdated
| "examples": "docusaurus examples", | ||
| "start": "docusaurus start", | ||
| "build": "docusaurus build", | ||
| "publish-gh-pages": "docusaurus publish", |
There was a problem hiding this comment.
| "publish-gh-pages": "docusaurus publish", |
website/package.json
Outdated
| "start": "docusaurus start", | ||
| "build": "docusaurus build", | ||
| "publish-gh-pages": "docusaurus publish", | ||
| "write-translations": "docusaurus write-translations", |
There was a problem hiding this comment.
| "write-translations": "docusaurus write-translations", |
website/package.json
Outdated
| "build": "docusaurus build", | ||
| "publish-gh-pages": "docusaurus publish", | ||
| "write-translations": "docusaurus write-translations", | ||
| "version": "docusaurus version", |
There was a problem hiding this comment.
| "version": "docusaurus version", |
website/package.json
Outdated
| "publish-gh-pages": "docusaurus publish", | ||
| "write-translations": "docusaurus write-translations", | ||
| "version": "docusaurus version", | ||
| "rename-version": "docusaurus rename-version", |
There was a problem hiding this comment.
| "rename-version": "docusaurus rename-version", |
website/docusaurus.config.js
Outdated
|
|
||
| /* Custom fonts for website */ | ||
| /* | ||
| fonts: { |
There was a problem hiding this comment.
delete it. why make it commented when its unused
website/docusaurus.config.js
Outdated
| * LICENSE file in the root directory of this source tree. | ||
| */ | ||
|
|
||
| // See https://docusaurus.io/docs/site-config for all the possible |
There was a problem hiding this comment.
| // See https://docusaurus.io/docs/site-config for all the possible |
website/docusaurus.config.js
Outdated
| // }, | ||
|
|
||
| // Add custom scripts here that would be placed in <script> tags. | ||
| scripts: ["https://buttons.github.io/buttons.js"], |
There was a problem hiding this comment.
So github stars won't be coming,in v1 it was present in footer https://fbredex.com/
There was a problem hiding this comment.
Yep we don't plan to show it in the footer anymore. You may ignore that.
yangshun
left a comment
There was a problem hiding this comment.
The website looks great @ThakurKarthik! Thanks for deploying on your gh-pages so we can check it out. The only comments I have are regarding the Index page and CSS. Otherwise looks great!
| @@ -0,0 +1,129 @@ | |||
| /** | |||
There was a problem hiding this comment.
Please use 2 spaces (at the most, 4) for indentation. Recommend you install the Prettier plugin for your editor.
website/src/css/custom.css
Outdated
| @@ -59,13 +66,17 @@ | |||
| .button { | |||
There was a problem hiding this comment.
Remove these .button styles. Use the default by Docusaurus CSS. Refer to https://github.com/facebook/create-react-app/blob/master/docusaurus/website/src/pages/index.js as an example of the CSS classes available.
| @@ -0,0 +1,72 @@ | |||
| /** | |||
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
website/src/pages/faq.js
Outdated
| <div className="docMainWrapper wrapper"> | ||
| <div className="container padding-vert--lg padding-top--xl"> | ||
| <div className="post"> | ||
| <header className="postHeader"> |
There was a problem hiding this comment.
Use CSS modules approach. Refer to https://github.com/facebook/create-react-app/blob/master/docusaurus/website/src/pages/index.js
website/src/theme/Footer/index.js
Outdated
| @@ -0,0 +1,110 @@ | |||
| /** | |||
There was a problem hiding this comment.
Just use the default Footer, don't need to swizzle.
There was a problem hiding this comment.
unswizzling here just means to delete the Footer file right?
website/src/pages/index.js
Outdated
| } | ||
| ]; | ||
|
|
||
| class Button extends React.Component { |
There was a problem hiding this comment.
Don't need a Button component. Just do
import Link from '@docusaurus/Link`;
...
<Link className="button button--outline" href={withBaseUrl('...')} />Using our <Link> component will cause it to do a front end redirect instead of full-page redirect.
website/src/css/custom.css
Outdated
| /* your custom css */ | ||
|
|
||
| @font-face { | ||
| font-family: 'Lato'; |
There was a problem hiding this comment.
I don't think the Lato Google font is loaded at all...
There was a problem hiding this comment.
Yes I'd lean towards that. We won't need to write too much in custom.css as they apply globally. Page-specific CSS should be written in CSS modules.
There was a problem hiding this comment.
@yangshun please check for the updated build here https://thakurkarthik.github.io/redex/ .In my latest commit i have moved styles to local module.In the custom.css only some colors and fonts are present,for the fonts i am not that much aware if they are working or not.Can you please check for that and signal me accordingly.Thanks for the reviews !
There was a problem hiding this comment.
The fonts look different from those on the current fbredex.com...
|
@ThakurKarthik I think there are conflicts now. Could you resolve them? From Redex site could @int3 help? Or I can do the reviewing instead and preserve as much of v1 design and functionality as possible. |
|
@yangshun i haved merged with latest master now there should be no conflicts. |
|
I'm not too picky... would be nice to keep some of the old button/grey background styling, but I don't think it matters too much. I'm not a designer anyway :p If you can fix the fonts I'm happy to merge this |
|
Hey Jez, the font is not displaying correctly now because the font files
weren't loaded.
As a side note, as part of our standardizing our open source documentation
designs, we'd like to encourage projects to stick with the default theme
font, which is this case is the system font.
Examples of Docusaurus 2 sites with a consistent font:
https://v2.docusaurus.io
https://create-react-app.dev
https://cli.dev
https://hermesengine.dev
Are you agreeable with that? If so, we could remove the Lato font styles
from the CSS.
…On Wed, Oct 30, 2019, 7:30 PM Jez Ng ***@***.***> wrote:
I'm not too picky... would be nice to keep some of the old button/grey
background styling, but I don't think it matters too much. I'm not a
designer anyway :p
If you can fix the fonts I'm happy to merge this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#429?email_source=notifications&email_token=AAKBCHMAC2TQDKTSKYBQSNDQRFV53A5CNFSM4JBHFTG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECT2IGQ#issuecomment-547857434>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKBCHMZHHGCO4NOROFBJR3QRFV53ANCNFSM4JBHFTGQ>
.
|
|
Ah alright then. Standardizing the font makes sense. Thanks! |
|
@ThakurKarthik could you remove the font styling in the CSS file? Then I think it should be good. |
website/src/css/custom.css
Outdated
| --ifm-color-primary-lightest: rgb(248, 248, 248); | ||
| } | ||
|
|
||
| body { |
| --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); |
website/src/css/custom.css
Outdated
website/package.json
Outdated
| "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.
@ThakurKarthik can you please update Docusaurus to the latest version?
There was a problem hiding this comment.
I have updated them to newer 2.0.0-alpha.34 version
|
Is this pull request ready to merge now? Has all the feedback been incorporated? Are all the reviewers happy? |
|
Hey @justinjhendrick not sure if it the code is working anymore as docusaurus has gone through major changes i guess ! |
Hello @yangshun , @endiliey review this pr when you got time.
I was working on migrating docusaurus of this repo to new V2 version
Deployed at https://thakurkarthik.github.io/redex/ for testing.
This pr on successful merge takes the docusaurus version to new v2 alpha for fbredex
This PR belongs to #426 and facebook/docusaurus#1834
Here are some screenshots of the new site.
Landing Page
Docs Page
FAQ Page