Skip to content

Render code blocks with DocumenterCodeBlocks - #37

Merged
maleadt merged 1 commit into
mainfrom
tb/codeblocks
Oct 27, 2026
Merged

maleadt merged 1 commit into
mainfrom
tb/codeblocks

Conversation

@maleadt

@maleadt maleadt commented Oct 25, 2026

Copy link
Copy Markdown
Member

Adds the DocumenterCodeBlocks.jl plugin to the documentation build, as done in JuliaGPU/KernelAbstractions.jl#917. Julia code blocks are now highlighted at build time, get linkable line numbers, and link identifiers to their docstrings with hover tooltips.

The plugin relies on Documenter internals, so a future Documenter release may need a matching DocumenterCodeBlocks update.

The plugin highlights Julia code at build time, adds linkable line numbers,
and links identifiers in code blocks to their docstrings with hover tooltips.
The configuration matches the one in KernelAbstractions.jl.
@github-actions

Copy link
Copy Markdown

Documentation preview: https://juliagpu.github.io/GPUToolbox.jl/previews/PR37/

@maleadt
maleadt merged commit 46255f5 into main Oct 27, 2026
10 checks passed
@maleadt
maleadt deleted the tb/codeblocks branch October 27, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant