-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support prerendering of code blocks.
Passing `prerender=true` to `Documenter.HTML` now renders syntax highlighting of code blocks when building the page rather than in the browser when the page is loaded. This requires a `node` (NodeJS) executable in PATH or that a path to an executable is passed as the `node` keyword argument. The `highlightjs` keyword argument can be used to give a (local) file path to a custrom hightlight.js library. Example configuration: using Documenter, NodeJS_16_jll makedocs(; format = Documenter.HTML( prerender = true, # enable prerendering node = NodeJS_16_jll.node(), # specify node executable (required if not available in PATH) # ... ) # ... ) This feature is marked as experimental for now.
- Loading branch information
1 parent
7cd120e
commit a974c49
Showing
2 changed files
with
110 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters