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
Example of how to use hfun, retrieve & display docstrings a-la Documenter #474
Comments
Would be nice to add this to the document. |
Where is hfun described in the document? This page is empty https://franklinjl.org/syntax/utils/ |
Yes this is "todo" there is info there: https://github.com/tlienart/Franklin.jl/blob/master/NEWS.md |
Once I get
Is there anyway to actually parse it with Franklin as if it were written in a plain md file? Basically I have an example in the docstring that I want to run and show the result on a web page. |
you can use |
@shashi Thanks I tried it like this
It does not work though. Do you have a working example. (The code snippet is from you.) |
Please use I need to show good examples of this and sorry this wasn’t done yet and that the experience is not very smooth yet... I just haven’t had the time :/ |
@tlienart Does this mean we can use Franklin to generate the docs via docstrings? |
@VarLad yes, though there is no specific function to help you do this. Basically whatever logic you can think of that can be coded in Julia and outputs HTML is game. So in particular you could even call documenter's internal functions if that was helpful to your purpose. This has been done before (I need to find the link again, it's one of the Julia symbolics packages) but, again, this is a path where you have to code stuff yourself. Now let's say you find a path that you like a lot and think that other users could make use of it, we could either bake that into Franklin or you could create a package that people could call that would define a few useful "hfuns" that people can import :) I hope this makes sense! |
(example worked through with @shashi )
What they actually use: https://github.com/JuliaSymbolics/SymbolicUtils.jl/blob/website/utils.jl
How it looks: https://juliasymbolics.github.io/SymbolicUtils.jl/api/
The text was updated successfully, but these errors were encountered: