-
Notifications
You must be signed in to change notification settings - Fork 28
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
docco/pycco style side by side code and annotated comments #21
Comments
This is an interesting UE design. Thanks for the suggestion. |
Thank you for considering it for future. I had an itch and wanted to take a stab to see how it'd look with golds, so I did some quick hack to incorporate literate style source view.
There are some edge cases that are not handled yet. For example, a lot of time comments contain example code. Those currently looks broken in this structure. Also, Go directives are not handled separately from regular comments. Feature wise, markdown in comment is not handled yet. It might be useful if someone wants to annotate the code. If you think it can be merged with some tweaks, I can prepare a PR if you want. But I certainly understand it's not a priority now, so totally fine if you don't want that at this moment. I'll try to maintain the fork as long as I'm using this feature. |
Aha, you have made some tweaks on the Golds projects. Yes, I couldn't merge the PR now. It is quality unrelated. Markdown renderer is a good idea but it looks markdown is not used popularly for documents in Go world. Do you think it is okay to implement the whole feature mainly in JS at client side? |
Can we have a code view inspired by docco?
The implementation can be a theme or different view, whatever makes sense.
Key ideas:
Examples:
golds renders much more powerful view for code navigation than docco (and it's ports). If we have this additional feature, I believe it can be a powerful tool for code reading enthusiasts who also like to produce annotated source code (as artefacts) of popular/well-written codebases (like this or this, but much better).
The text was updated successfully, but these errors were encountered: