-
Notifications
You must be signed in to change notification settings - Fork 1
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
Where are functions defined? Docstrings not found #265
Comments
the offending lines are Xranklin.jl/src/convert/markdown/rules/code.jl Lines 455 to 456 in e8ffc37
I suspect the could you try swapping this for |
Nope, doesn't work, but no rush |
Hmm :'( this:
works but there's likely something a bit subtle going on... might end up asking this one on Discourse, I don't understand well how docstrings are processed |
It's not just about docstrings, I also have the issue with modules |
hmm we're wading into tricky territory here in terms of how far Xranklin can go to make code execution inside a module look like the normal REPL, demoing pkg stuff is likely to be on the edge of that.. It looks like if the package is already in your dev path it should work though: julia> lc = Xranklin.ToyLocalContext()
julia> s = """
```>
using Pkg
Pkg.develop(path="/Users/tlienart/.julia/dev/FP2")
using FP2
FP2.subs("abc", 2:3)
```
"""
julia> html(s, lc) |> println
[ Info: ⏯️ evaluating cell auto_cell_1_1...
[ Info: ⏯️ evaluating cell auto_cell_1_2...
[ Info: ⏯️ evaluating cell auto_cell_1_3...
[ Info: ⏯️ evaluating cell auto_cell_1_4...
<pre><code class="julia-repl"><span class="sgr32"><span class="sgr1">julia></span></span> using Pkg
<span class="sgr32"><span class="sgr1">julia></span></span> Pkg.develop(path="/Users/tlienart/.julia/dev/FP2")
<span class="sgr32"><span class="sgr1"> Resolving</span></span> package versions...
<span class="sgr32"><span class="sgr1"> Updating</span></span> `~/.julia/dev/Xranklin/Project.toml`
<span class="sgr90">[c78977f6] </span><span class="sgr92">+ FP2 v0.1.0 `~/.julia/dev/FP2`</span>
<span class="sgr32"><span class="sgr1"> Updating</span></span> `~/.julia/dev/Xranklin/Manifest.toml`
<span class="sgr90">[67c07d97] </span><span class="sgr92">+ Automa v1.0.1</span>
<span class="sgr90">[c78977f6] </span><span class="sgr92">+ FP2 v0.1.0 `~/.julia/dev/FP2`</span>
<span class="sgr32"><span class="sgr1">julia></span></span> using FP2
<span class="sgr32"><span class="sgr1">julia></span></span> FP2.subs("abc", 2:3)
bc
</code></pre> maybe give me the full sequence of instructions here? if you take the users through a "create a package" step and then do as above it should work I think. But probably easier for me to try to reproduce this. |
The full sequence of instructions is here: https://github.com/modernjuliaworkflows/modernjuliaworkflows.github.io/blob/main/pages/sharing/sharing.md Honestly at this point it's an extremely niche problem so I wouldn't worry too much |
Source code:
Result:
The text was updated successfully, but these errors were encountered: