Fix markdown files embedding in documentation #22
Conversation
3 similar comments
@rranelli Please do! Feel free to move the documentation inline within the source code files as well. That's the direction we're moving with concurrent-ruby. Thank you for taking care of this! PS: I've updated the overalls settings to it won't make all the unnecessary comments the way it's done on this PR. That should cut down on unnecessary noise. |
Alright, by using I have not embedded the big markdown files in the source though. I think they are better fit and easier to edit in a separate file. |
Thanks for changing the coveralls settings ! The way it is now is so much better. |
Fix markdown files embedding in documentation
Looks like rubydoc.info were not updated. Do you need to manually update it? (I never publish docs for anything =x) |
Yes, it needs manually updated. I've refreshed it so please let me know if everything looks OK: http://www.rubydoc.info/github/jdantonio/functional-ruby/master With concurrent-ruby we moved our docs to GitHub pages. This works much better than rubydoc.info. I've been meaning to make a similar change for this gem but haven't gotten around to it yet. :-( |
I see. Looks like it wouldn't be hard to set up with GitHub pages. Would you mind if I try to give it a go? From the looks of it, I could test the doc generation in my own fork. |
Actually, I just set it up and pushed the new docs. :-) |
Nice! Thanks again =) |
I would be glad to help =) I will keep you updated over there. Thanks! |
(there is a lot of trailling whitespace remotion. Sorry, my editor does this automatically)
I've noticed that the macro directives in the documentations are not being expanded.
For example, the documentation for the
PatternMatching
module here does not include the contents of thepattern_matching
macro defined in the md doc file.When I'm running
bundle exec yard
in my machine I get:I realized that the file
memo.md
did not contain the macro declaration@!macro [new] memoize
. I have added and syntax error in the yard output disappeared.The
.yardopts
file contained the line./doc/**/*.txt
that probably should've been./doc/**/*.md
.I have changed it to
./doc/**/*.md
but the problem continued the same.I tried to find information on how to declare macros in markdown files but couldn't find any.
Any other ideas?
Ps: I have also noticed that in concurrent-ruby the markdown files are actually directly included, not macro-expanded. I have tested this approach and it (obviously) worked out fine. Should I go for it?