Getting warning generated HTML from md file is too big

I am getting the following warning about two of my md files in my docs.

julia> servedocs()
[ Info: SetupBuildDirectory: setting up build directory.
[ Info: Doctest: running doctests.
[ Info: ExpandTemplates: expanding markdown templates.
[ Info: CrossReferences: building cross-references.
[ Info: CheckDocument: running document checks.
[ Info: Populate: populating indices.
[ Info: RenderDocument: rendering document.
[ Info: HTMLWriter: rendering HTML pages.
β”Œ Warning: Generated HTML over size_threshold_warn limit: ChapterFFlexure.md
β”‚     Generated file size: 188.83 (KiB)
β”‚     size_threshold_warn: 100.0 (KiB)
β”‚     size_threshold:      200.0 (KiB)
β”‚     HTML file:           ChapterFFlexure/index.html
β”” @ Documenter.HTMLWriter C:\Users\CMILLER\.julia\packages\Documenter\tbj1p\src\html\HTMLWriter.jl:1868
β”Œ Warning: Generated HTML over size_threshold_warn limit: Shapes.md
β”‚     Generated file size: 120.92 (KiB)
β”‚     size_threshold_warn: 100.0 (KiB)
β”‚     size_threshold:      200.0 (KiB)
β”‚     HTML file:           Shapes/index.html
β”” @ Documenter.HTMLWriter C:\Users\CMILLER\.julia\packages\Documenter\tbj1p\src\html\HTMLWriter.jl:1868

The size seems too big for what the page is. See Chapter F - Flexure Β· AISCSteel.jl. Is this too big? If so, then I just have to split it up into more documents?

1 Like

You can opt-out of the size check. See:

The warning is a sanity check for people accidentally including massive outputs.

2 Likes

No, you don’t have to… you could just increase the limits for the warning. Your documentation seems fine to me. The warning is just to prevent situations where pages get too large accidentally, and is somewhat arbitrary. As long as you’re setting things up deliberately, it should be fine (up to a point)

3 Likes

I think the safeguard is great to not accidentally have an ascii output of some binary file. To add to the previous answers, a concrete example how to raise the limits is

That way you can have a bit longer pages or even some longer lists, raise the limit carefully but still have a safeguard to not accidentally bloat your docs.

2 Likes