-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Migrate away from GitBook - possibly to Docusaurus #7267
Comments
Is there a later version of GitBook? I thought the open source version is no longer maintained and they're only maintaining a paid hosted version We had attempted to migrate to Vuepress (#5847), but ran into an issue that we're still waiting for Vuepress to fix more than a year later :-/ I'd like to get off of GitBook because it's pulling in tons of dependencies with security issues I would be open to migrating to Docusaurus. Any chance you'd like to take a stab at it? Some features we have on the site right now that we'd want to try to maintain:
|
As GitBook is trying to turn commercial, migration is a must Docusaurus 2 is a preferred option.
|
Sure that sounds fine. However, I'm not sure how much time any of the existing maintainers would have to attempt it. Is it something you'd like to try working on? |
I gave it a try here: https://github.com/benmccann/Chart.js/tree/docusaurus I haven't figured out yet how to put a Chart in the docs. We'll also need to figure out how to include the newly built Chart.min.js in the docs. And then how to deploy the docs |
I couldn't get it to work. I tried that here: benmccann@e8e44d4 Let me know if you have any ideas. It'd be great if you could check out the code and figure out what's wrong |
That's how it is in the docs currently and I just left it the same. The problem is that it fails to compile if |
This comment has been minimized.
This comment has been minimized.
The reason I was using a class component instead of a function component is because I wanted to create the DOM element in |
You could use useEffect for that👌 useEffect(() => {
//Code which was inside componentWillMount
},[]) |
That worked! Thank you! I was not familiar with these hooks Working code is here: https://github.com/benmccann/Chart.js/tree/docusaurus Now I just have to figure out deployment |
We have the docs on GitHub Pages: https://github.com/chartjs/chartjs.github.io |
Thanks for providing that. I shared it with the other maintainers and it was helpful so that they could play around with it. They found a bug when viewed on mobile. The Docusaurus team fixed the bug for us, but now I am waiting for a new release of Docusaurus |
Also in dark mode, some chart legends are black not white |
Yeah, I pushed a change to disable dark mode on my branch |
Why disable? just fix the text color in dark mode |
A PR for that would be welcome :-) I'm too lazy |
Ok, we got it deployed and hooked into our release process: https://www.chartjs.org/docs/next/ @nainardev do you mind taking down the one at https://chartjs.nainar.now.sh/ now so Google doesn't accidentally find it and penalize us for duplicate content or send people to the wrong place? Thanks for the suggestion on Docusaurus and the help! |
Deleted |
No description provided.
The text was updated successfully, but these errors were encountered: