Skip to content
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

docs(v2): add a note for images not rendered on dev server #4164

Merged
merged 2 commits into from
Feb 3, 2021

Conversation

yuval-hazaz
Copy link
Contributor

Add a note that images are not rendered on the development server

Motivation

I spent more than an hour to finally find out that the images are not rendered on the development server. Although there is a message in the description saying "in the production builds." anyone can miss it easily.

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

Add a note that images are not rendered on the development server
@facebook-github-bot
Copy link
Contributor

Hi @yuval-hazaz!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@netlify
Copy link

netlify bot commented Feb 3, 2021

[V1] Deploy preview success

Built with commit 8786a33

https://deploy-preview-4164--docusaurus-1.netlify.app

@github-actions
Copy link

github-actions bot commented Feb 3, 2021

Size Change: 0 B

Total Size: 156 kB

ℹ️ View Unchanged
Filename Size Change
website/build/assets/css/styles.********.css 17.7 kB 0 B
website/build/assets/js/main.********.js 109 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 21.7 kB 0 B
website/build/docs/introduction/index.html 180 B 0 B
website/build/index.html 6.94 kB 0 B

compressed-size-action

@netlify
Copy link

netlify bot commented Feb 3, 2021

Deploy preview for docusaurus-2 ready!

Built with commit 8786a33

https://deploy-preview-4164--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Feb 3, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 65
🟢 Accessibility 99
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-4164--docusaurus-2.netlify.app/classic/

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Feb 3, 2021
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@slorber
Copy link
Collaborator

slorber commented Feb 3, 2021

Hi,

Should we really say that images do not render in the dev server?

In practice, they do render, it's just you get the low-quality image placeholder.

See for example on Docusaurus homepage in dev:

image

@yuval-hazaz
Copy link
Contributor Author

e for example on Docusaurus homepage in de

When the image is 100px originally and it is downsized to 15px you probably can understand that the image is there...
When the original image is more than 1000px and you get a white 15px box - you cannot really understand that this is a small preview...

in any case, any note with a more accurate explanation will also be great... just thinking of the next developer that will waste hours on finding out what is wrong.

@slorber
Copy link
Collaborator

slorber commented Feb 3, 2021

I don't argue that we should improve our doc and ensure users don't loose any time, just saying that the doc you want to add does not seem 100% accurate to me, so I just edited your words and will merge.

We try to have good docs. FYI I just discovered this behavior that I was not even aware of (more context: https://v2.docusaurus.io/blog/2020/01/07/tribute-to-endi)

@slorber slorber changed the title docs: add a note for images not rendered on dev server docs(v2): add a note for images not rendered on dev server Feb 3, 2021
@slorber slorber merged commit 24b1695 into facebook:master Feb 3, 2021
@slorber slorber added the pr: documentation This PR works on the website or other text documents in the repo. label Feb 3, 2021
@guyca
Copy link

guyca commented Feb 11, 2021

OMG I just spent half a day trying to figure this one out until I stumbled upon this thread 😅

@slorber
Copy link
Collaborator

slorber commented Feb 11, 2021

sorry about that 😓

@guyca
Copy link

guyca commented Feb 11, 2021

haha no worries, all good. Once I'm done, RNN will have a shiny new showcase section just like the one Docusaurus has! :D

@lex111 lex111 added this to the v2.0.0-alpha.71 milestone Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: documentation This PR works on the website or other text documents in the repo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants