Comments (7)
awesome thanks! if @yangcht you could also give a shot to #1062 and confirm it fixes your issue, then we're good to go and I'll get that 🚢 asap 😄
from franklin.jl.
Hey, sorry about that 🙃
I've pushed a fix that simplifies the TOC code with an added test of a more complicated TOC example.
@ziotom78 your TOC now works as expected:
from franklin.jl.
Hi @tlienart, I just did a test with #1062 and it works.
from franklin.jl.
Hi @mossr, I have been using the \toc function. It is fantastic. However, since the last update, it has stopped working and giving me errors like the following. Do you have any idea how to fix it?
I get the same error using Franklin.jl 0.10.94 and Julia 1.9.1, but the line numbers are slightly different:
julia> using Franklin
julia> serve()
Activating project at `~/Documents/corsi/laboratorio_calcolo/tnds-notebooks`
→ Initial full pass...
┌ Franklin Warning: in <lezione10.md>
│ Encountered an issue processing 'lezione10.md' in lcolo/tnds-notebooks.
│ Verify, then re-start the Franklin server.
│ The error is displayed below:
│ ArgumentError("invalid Array dimensions")
└
ERROR: ArgumentError: invalid Array dimensions
Stacktrace:
[1] Array
@ ./boot.jl:477 [inlined]
[2] Array
@ ./boot.jl:486 [inlined]
[3] fill
@ ./array.jl:532 [inlined]
[4] fill(v::Nothing, dims::Int64)
@ Base ./array.jl:530
[5] hfun_toc(params::Vector{String})
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/converter/html/functions.jl:244
[6] top-level scope
@ none:1
[7] eval
@ ./boot.jl:370 [inlined]
[8] eval
@ ~/.julia/packages/Franklin/UskEZ/src/Franklin.jl:1 [inlined]
[9] convert_html_fblock(β::Franklin.HFun)
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/converter/html/functions.jl:18
[10] process_html_qblocks(hs::String, qblocks::Vector{Franklin.AbstractBlock}, head::Int64, tail::Int64)
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/converter/html/html.jl:122
[11] process_html_qblocks(hs::String, qblocks::Vector{Franklin.AbstractBlock})
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/converter/html/html.jl:102
[12] convert_html(hs::String)
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/converter/html/html.jl:22
[13] map
@ ./tuple.jl:275 [inlined]
[14] map
@ ./tuple.jl:276 [inlined]
[15] write_page(output_path::String, content::String; head::String, pgfoot::String, foot::String)
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/manager/write_page.jl:108
[16] write_page
@ ~/.julia/packages/Franklin/UskEZ/src/manager/write_page.jl:75 [inlined]
[17] convert_and_write(root::String, file::String, head::String, pgfoot::String, foot::String, output_path::String)
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/manager/write_page.jl:215
[18] process_file_err(case::Symbol, fpair::Pair{String, String}, head::String, pgfoot::String, foot::String, t::Float64)
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/manager/file_utils.jl:153
[19] process_file(::Symbol, ::Pair{String, String}, ::String, ::Vararg{Any})
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/manager/file_utils.jl:104
[20] fd_fullpass(watched_files::NamedTuple{(:other, :infra, :md, :html, :literate), NTuple{5, Dict{Pair{String, String}, Float64}}}, join_to_prepath::String)
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/manager/franklin.jl:265
[21] serve(; clear::Bool, verb::Bool, port::Int64, single::Bool, prerender::Bool, nomess::Bool, is_final_pass::Bool, no_fail_prerender::Bool, eval_all::Bool, silent::Bool, cleanup::Bool, on_write::Franklin.var"#268#271", log::Bool, host::String, show_warnings::Bool, fail_on_warning::Bool, launch::Bool, no_set_paths::Bool, join_to_prepath::String)
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/manager/franklin.jl:126
[22] serve()
@ Franklin ~/.julia/packages/Franklin/UskEZ/src/manager/franklin.jl:49
[23] top-level scope
@ REPL[2]:1
I am having problems running Franklin.jl on this repository after having run Pkg.update()
: https://github.com/ziotom78/tnds-notebooks.
from franklin.jl.
for anyone stumbling against this, pin Franklin to 0.10.93
( ] pin [email protected]
) while we investigate (the only change between 93 and 94 is this PR which intended to improve the behaviour of \toc
). My bad for not testing this more but hopefully we can get out of this with more robust tests.
@ziotom78 and @yangcht can you guys point to a specific source file that throws this error please?
from franklin.jl.
Hi @tlienart , sure! This one: lezione07.md. (To trigger the error, you have to clone the repository and then run Pkg.update()
.)
from franklin.jl.
Released in 0.10.95. Note that CI fails here because of some compat requirement thing that I'm trying to figure out but it shouldn't cause issues elsewhere. https://discourse.julialang.org/t/compat-bounds-for-stdlib-and-empty-intersection-issue-on-ci/105898
from franklin.jl.
Related Issues (20)
- Pagevars are not parsed correctly ? HOT 4
- Build site in another folder? HOT 4
- XML prolog lost from RSS template HOT 2
- Tag pages don't urlencode their crosslinks
- FR: Button to copy code blocks to clipboard HOT 2
- May insert variable value into a HTML tag attribute? HOT 2
- Does Franklin support Pandoc and MathJax HOT 4
- Deploying with github not working after first commit, getting "there is nothing to commit"
- Option to exclude sidebar contents in lunr search
- Using `python3` as the language of a multiline codeblock results in an error HOT 3
- Demos page leads to 404 HOT 6
- insert not working when using the GitHub actions HOT 1
- Table of contents: level 4 headings do not consistently stay indented under the previous level 3 heading HOT 1
- DataScienceTutorials.jl deployment HOT 1
- Pagevariables not always available? HOT 8
- How to add total words and time for reading in a post HOT 1
- Franklin websites fail to being parsed by openring
- Demos Page Shows 404 Error HOT 1
- How to modify footnote styling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from franklin.jl.