# Copyright 2021-2023 The Khronos Group Inc. # # SPDX-License-Identifier: Apache-2.0 # Khronos overrides for Rouge 'github' theme CSS for accessibility. # See (note that this code is evolving, works as of asciidoctor 2.0.12): # https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/syntax_highlighter/rouge.rb include ::Asciidoctor class ExtendedRougeSyntaxHighlighter < (Asciidoctor::SyntaxHighlighter.for 'rouge') register_for 'rouge' # Insert rouge stylesheet from super # Then replace many 'github' theme colors for accessibility compliance # It would be better to use rouge's stylesheet factory, if it has one def docinfo location, doc, opts overrides = %() # super can return either