From a3a071a753173acf2c273f9ac4fccf8667be6f86 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Tue, 18 Aug 2026 14:35:10 +1200 Subject: [PATCH] [docs] set line_counter = :named in CodeBlocks --- docs/Project.toml | 2 +- docs/make.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index 42e6b4f838..7b3af91fa8 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -7,6 +7,6 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" [compat] Documenter = "1" -DocumenterCodeBlocks = "1" +DocumenterCodeBlocks = "1.3" JSON = "1" JSONSchema = "1" diff --git a/docs/make.jl b/docs/make.jl index cdd8dc62c5..2d48467a55 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -170,7 +170,7 @@ Documenter.DocMeta.setdocmeta!( checkdocs = :exports, doctest = _FIX ? :fix : true, pages = _PAGES, - plugins = [DocumenterCodeBlocks.CodeBlocks()], + plugins = [DocumenterCodeBlocks.CodeBlocks(; line_counter = :named)], ) # ==============================================================================