-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[core] Better Windows support for the API generation #12584
[core] Better Windows support for the API generation #12584
Conversation
Running a test, once this passes. I'll run |
This is for a personal note: The first build passed, after I updated the regex expression. Now will make a second commit to this branch with the updated docs in |
I have checked, all the files that were committed in the docs api folder are of LF type now. |
I think we should enforce |
@eps1lon As far as I remember, we have already tried that. It's a dead end. |
I think some parser is actually introducing CLRF as line-endings because it runs on windows. It's not actually detecting what line-ending is used. For example https://github.com/mui-org/material-ui/blob/905a96119e474731b8e7add6320d3484377bf242/docs/src/modules/utils/generateMarkdown.js#L76 We need to investigate how we can normalize the markdown generation across platforms. Otherwise this will always cause noisy diffs and CI fails. |
I tried searching it else-where as well, where ever |
That won't be enough I think. We also need to be able to tell I think the best option is to let a maintainer run Is adding a linux environment for development not an option for @adeelibr ? |
@eps1lon I think for now maybe the maintainer can run Your thoughts @oliviertassinari ? |
8560ecb
to
aeabf26
Compare
I have tried to quickly set up a Windows environment with no luck. I wish the Windows support story was better than that. |
So what's the next step that I should take. @oliviertassinari Since my other PR #12485 is now very messy with a lot of docs merges, should I delete that one & create a new one. With just the changes that are required there.. |
@adeelibr I'm merging this pull request as it's a good step forward.
I would say fixing the Windows support would be awesome.
No need, you can push force on it, erasing the history. |
@oliviertassinari if it's okay, can i make an extra experimental branch for this Windows support feature for docs generation to experiment, in order to check if the build pipeline works with those changes of mine or not. Would that be okay? |
Would adding another property in
|
@adeelibr The problem has been fixed as far as I know. I'm not sure eol:lf will help as I would expect windows user's editor to still use crlf. |
AFAIK IntelliJ copies the first line ending it sees in the file but I don’t see a need atm for setting a line ending |
This is to convert CRLF to LF format when you run
yarn docs:api
so that the CircleCI pipeline can work smoothly.