Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support code theme on individual directives #827

Merged
merged 4 commits into from
Jul 15, 2023

Conversation

jdknight
Copy link
Member

Provides support for individual code blocks to be configured with a custom Confluence theme. The translator will now process class hints on literal blocks for a confluence-theme-<theme> pattern. For example:

.. code-block:: python
    :class: confluence-theme-FadeToGrey

    def main():
        print 'Hello, world!'

    if __name__ == '__main__':
        main()

Adjust user-provided code block theme hints to be case-insensitive.

Signed-off-by: James Knight <[email protected]>
Provides support for individual code blocks to be configured with a
custom Confluence theme. The translator will now process class hints on
literal blocks for a `confluence-theme-<theme>` pattern.

Signed-off-by: James Knight <[email protected]>
@jdknight jdknight merged commit 99bcd51 into main Jul 15, 2023
27 checks passed
@jdknight jdknight deleted the support-code-theme-on-individual-directives branch July 15, 2023 17:41
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