diff --git a/docs/Project.toml b/docs/Project.toml index 26713e4f16..42e6b4f838 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,10 +1,12 @@ [deps] Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +DocumenterCodeBlocks = "b6400b83-267f-4b55-9fd8-bffc853bdfd8" JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" JSONSchema = "7d188eb4-7ad8-530c-ae41-71a32a6d4692" MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" [compat] Documenter = "1" +DocumenterCodeBlocks = "1" JSON = "1" JSONSchema = "1" diff --git a/docs/make.jl b/docs/make.jl index 0bd6f6f707..cdd8dc62c5 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -5,6 +5,7 @@ # in the LICENSE.md file or at https://opensource.org/licenses/MIT. import Documenter +import DocumenterCodeBlocks import MathOptInterface # Pass --fix` to rebuild the doctests. @@ -169,6 +170,7 @@ Documenter.DocMeta.setdocmeta!( checkdocs = :exports, doctest = _FIX ? :fix : true, pages = _PAGES, + plugins = [DocumenterCodeBlocks.CodeBlocks()], ) # ==============================================================================