[all-commits] [llvm/llvm-project] 41aa26: [docs] Register MLIR lexer for Sphinx docs

Reid Kleckner via All-commits all-commits at lists.llvm.org
Fri Jun 26 15:39:11 PDT 2026


  Branch: refs/heads/users/rnk/cir-doc-pygments
  Home:   https://github.com/llvm/llvm-project
  Commit: 41aa268cd0290c653cb05c1e7ded16d3da39a8d0
      https://github.com/llvm/llvm-project/commit/41aa268cd0290c653cb05c1e7ded16d3da39a8d0
  Author: Reid Kleckner <rkleckner at nvidia.com>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    M mlir/utils/pygments/mlir_lexer.py
    M utils/docs/llvm_sphinx/__init__.py
    A utils/docs/llvm_sphinx/ext/mlir_pygments.py

  Log Message:
  -----------
  [docs] Register MLIR lexer for Sphinx docs

Register the in-tree MLIR Pygments lexer from the shared llvm_sphinx configuration so all llvm-project Sphinx builds can highlight fenced mlir blocks.

Also teach the MLIR lexer to consume top-level whitespace. Without this, Sphinx reports a lexer warning after the lexer is registered, and docs-clang-html fails because Sphinx warnings are treated as errors.

This makes docs-clang-html build with CLANG_ENABLE_CIR=ON.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list