-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Markdown output #169
base: master
Are you sure you want to change the base?
Markdown output #169
Conversation
Made a number of functions and procedures protected and virtual to use in the subclass. Use default extension for index files.
This looks great! I will try to review it ASAP. Initial comments:
Proper code review is coming! For now these are just quick comments :) Thank you! |
Is it really necessary to inherit from HTML Gen? Probably it will be more logical to extract some common parts to a new base class? |
Thanks for the warm comments. My answers below:
Markdown format can take HTML. There are many things that PasDoc generates that cannot be done in vanilla markdown (tables with paragraphs inside, for instance or links in source code). If I don't derive the code from the HTML generator I'll need a separate instance to call in such situations.
Thanks for the heads up. I'll look for it and post questions about it, hopefully this week.
This is a bug. I can go fix it and update this PR (unless you have already started the review, then I can include the bug fix with other changes). |
I hear you. I also realize I did not answer @michaliskambi question:
There are a few "heavy weight" methods in Refactoring those methods to have their procedures outside them will allow for a quality base class. But the code will be less easy to read and bugs could be introduced. |
Sorry for falling silent around Christmas time, there was a lot of things to do (on computer and in the Real World) that kept me busy :) I'd suggest:
|
This is PR allows PasDoc to generate Markdown output.
Markdown is supported natively by GitHub which makes reading the generated documentation visually pleasing, see the test cases in https://github.com/DrDub/pasdoc/tree/master/tests/testcases_output/markdown
Also, now that PasDoc supports Markdown in the comments, it can help transform complex comments into Markdown.
This PR has very small changes to PasDoc_GenHtml to re-use functionality.
It might be possible to further re-organize GenHtml to shrink GenMarkdown considerably but I don't feel comfortable doing that without extra consultation.