-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
No option --skip-image-compression #1427
Comments
hmmm... seems to be there.
Looking at https://docusaurus.io/docs/en/commands#using-arguments What happens if you try:
|
The same, I had tried that. The option doesn't even seem to be recognized:
|
Summary: Docusaurus runs image compression under the hood, which messes up the botorch logo lockup svg. It used to be possible to skip this compression but apparently b/c of a bug in docusaurus that's not possible on recent versions: facebook/docusaurus#1427 We'll have to hack this until that is fixed. Pull Request resolved: #128 Reviewed By: ldworkin Differential Revision: D15148030 Pulled By: Balandat fbshipit-source-id: 619eecba6c28c105499a7c9a0368977026736f2b
I created that feature and I can check why it stopped working. I am also interested in knowing why the compressor corrupt the photo, that shouldn't happen |
Thanks @ahmadalfy! It was nice meeting you in person today as well 😄 |
@ahmadalfy I now think the compressor did not corrupt the image. I ran into a really weird thing when just copying the svg to a new file messed up the rendering. There must be something really fishy going on with that image. |
@Balandat do you want to share the image here ? Maybe someone might be able to check that image/ give some suggestion on that. Nevertheless, it's still true that this |
I think the skipNextRelease PR broke this. Basically all of our command went missing. |
Can this please be released? For me, all SVGs are broken due to minification and I'm not able to disable it. |
1.10.0 |
Let me know if it doesn't work for you. I sent that fix. Need to know if it's working |
Yup, works fine! |
🐛 Bug Report
Docusaurus seems to have lost its
--skip-image-compression
option.Filing this as a bug report because
Have you read the Contributing Guidelines on issues?
Yep
To Reproduce
yarn build --skip-image-compression
My
package.json
:Expected behavior
Image compression steps should be skipped
Actual Behavior
Errors out:
error: unknown option
--skip-image-compression'`The text was updated successfully, but these errors were encountered: