-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Put a link to the github source for each component in the docs #428
Comments
Agreed! For consistency sake we should have the url be to the latest tagged release. Since we generate the static docs pages during the now automated release process after the version bump that should work fine. We will just need some mechanics to generate that link based on that version. Shouldn't be difficult though. |
Hi guys, I start a project to auto generate a doc for react, https://github.com/morlay/react-doc. Generated doc json: https://github.com/morlay/react-doc/blob/gh-pages/result.json Thanks. ( Example and some code for UI is copied from react-bootstrap :-) |
It will add too many maintanance burden. The latest FormControls components refactoring made it plain #825 that problems will arize. (the probability of realizing this issue in reality is 'wontfix') |
I hadn't seen this issue since I was really busy with school at the time. I believe this could be automated in a way that makes it maintainable. |
Then you can prove it by starting from a small (but having more priority now) step |
well we now have some infrastructure for automating some documentation. It wouldn't be two hard to have the I think if something makes the docs better, it should be seriously considered, sure it increases maintenance burden, but that, to me, is just part of running a good project. |
We are working on getting through the backlogged tickets like this, but are short on time. |
Hi, could someone sum up the work that has to be done here? If I understand this well you want to add links automatically. Is there some docs about the docs generation process? I only found the docs section in CONTRIBUTING.md. |
I don't think we've explicitly documented the docs generation process. The code is in https://github.com/react-bootstrap/react-bootstrap/blob/master/docs/build.js. The best hook is to probably add some sort of link when generating props tables. |
Fixed in #2980 |
Just a suggestion. The quickest way to understand what options a component takes is to just look at the code for that component. A link in the docs to the jsx code in GitHub might be nice.
The text was updated successfully, but these errors were encountered: